#10 Claude Code Opus 4.7 xHigh

Quality

2026-04-16-claude-code-opus-4-7-xhigh · v2.1.114

Files Created

322

328 unique

Total Tool Calls

8872

across 37 agents

Active Agents

36

contributing code

Estimated Cost

$157.31

8476 API requests

Codebase Output

328 files

Files by Directory

resources/views
50
app/Livewire
41
database/migrations
40
tests/Feature
39
app/Models
35
database/factories
35
app/Enums
29
app/Services
18
app/Exceptions
7
app/Jobs
6
app/Events
5
app/ValueObjects
4
tests/Unit
3
app/Http
2
app/Support
1

Files per Agent (top 12)

agent-a2b4739e66c60c73c
142w 15e
agent-adb1484ad3b4c988a
142w 15e
agent-a0147ed7e42c7277f
66w 12e
agent-a4e89216345ccf610
63w 5e
agent-aa949c68dfdcad1b3
63w 5e
agent-a5a4a3c302164d8f2
63w 5e
agent-a051110bf55ced797
55w 6e
agent-a137fdde576fba49e
55w 1e
agent-a40e9d045690fa15a
52w 4e
agent-a330b048c98e3f4ad
55w 1e
agent-af9a878219a4d6c69
52w 4e
agent-a8ab2e1be9b860363
43w 2e

Code Quality Assessment

PHPMetrics

Code Quality Assessment

PHPMetrics 2.9.1

Classes

151

Lines of Code

5.0K

Avg MI

75.2

Avg Complexity

4.9

Est. Bugs

13.9

Violations

0

0 errors

Complexity Distribution

Low (CCN <= 5)
115 (76.2%)
Medium (6-10)
14 (9.3%)
High (> 10)
22 (14.6%)

Maintainability Distribution

Excellent (>= 85)
22 (14.6%)
Good (70-84)
58 (38.4%)
Moderate (55-69)
49 (32.5%)
Low (< 55)
22 (14.6%)

Most Complex Classes

ClassCCNLOCMI
DiscountService
App\Services
41136
47
ShippingCalculator
App\Services
40108
43
OrderService
App\Services
39165
33
SearchService
App\Services
27129
54
ProductService
App\Services
2478
56

Least Maintainable Classes

ClassMICCNLOC
CartService
App\Services
27
21155
OrderService
App\Services
33
39165
Index
App\Livewire\Storefront\Account\Addresses
37
17124
Show
App\Livewire\Storefront\Cart
39
20107
CartController
App\Http\Controllers\Api\Storefront
41
561

Most Coupled Classes

Order
21
OrderService
21
Store
19
User
19
Cart
15

Coupling Metrics

Avg Afferent (incoming)1.27
Avg Efferent (outgoing)3.14
Avg Instability0.78
Avg LCOM1.93
Max LCOM6

Halstead Metrics

Avg Volume276.8
Avg Difficulty4.86
Avg Bugs/Class0.092
Total Est. Bugs13.9
Comment Ratio5.93%
Avg LOC/Class33.4

SonarCloud Analysis

PR #17 - Quality Gate Failed
FAIL

Quality Gate: Failed

PR #17 · 2026-04-16-claude-code-opus-4-7-xhighmain

3.6h technical debt

42 issues total

View on SonarCloud

Bugs

1

B

Reliability

Vulnerabilities

0

A

Security

Code Smells

41

A

Maintainability

Hotspots

1

To review

Lines of Code

10.0K

PHP

Duplication

1.4%

on new code

Coverage

0%

not configured

Issues by Severity

Critical
5
Major
10
Minor
27
Total42

Security Hotspots (1)

Others
LOW1

Subresource Integrity (Web:S5725) - external asset loaded without integrity hash in resources/views/components/layouts/storefront.blade.php:13

Top Issue Rules

Property Naming (snake_case)php:S116
25
MINOR
Cognitive Complexityphp:S3776
4
CRITICAL
Dialog Role AccessibilityWeb:S6819
3
MAJOR
Excessive Return Statementsphp:S1142
3
MAJOR
Duplicate String Literalsphp:S1192
1
CRITICAL
Generic Exceptionsphp:S112
1
MAJOR
Inconsistent Returnphp:S3801
1
MAJOR
Unused Parametersphp:S1172
1
MAJOR
Collapsible ifphp:S1066
1
MAJOR
Missing iframe titleWeb:FrameWithoutTitleCheck
1
MINOR
Useless Catchphp:S2737
1
MINOR

42 issues in total, dominated by a single style rule (25 snake_case property names on models). Cognitive complexity and excessive returns cluster in OrderService and DiscountService. Duplication sits at 1.4%, well under the gate, but reliability drops to B because of one missing iframe title and the gate fails on an unreviewed subresource-integrity hotspot.