#09 Claude Code Opus 4.7

Quality

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

Files Created

0

0 unique

Total Tool Calls

355

across 2 agents

Active Agents

1

contributing code

Estimated Cost

$22.63

102 API requests

Codebase Output

0 files

Files by Directory

Files per Agent (top 12)

Code Quality Assessment

PHPMetrics

Code Quality Assessment

PHPMetrics 2.9.1

Classes

105

Lines of Code

2.7K

Avg MI

75.3

Avg Complexity

2.8

Est. Bugs

5.4

Violations

0

0 errors

Complexity Distribution

Low (CCN <= 5)
89 (84.8%)
Medium (6-10)
12 (11.4%)
High (> 10)
4 (3.8%)

Maintainability Distribution

Excellent (>= 85)
22 (21%)
Good (70-84)
34 (32.4%)
Moderate (55-69)
35 (33.3%)
Low (< 55)
14 (13.3%)

Most Complex Classes

ClassCCNLOCMI
Index
App\Livewire\Storefront\Checkout
21111
52
Form
App\Livewire\Admin\Products
1958
56
OrderService
App\Services\Orders
1961
37
ResolveStore
App\Http\Middleware
1465
39
TwoFactor
App\Livewire\Settings
9116
74

Least Maintainable Classes

ClassMICCNLOC
OrderService
App\Services\Orders
37
1961
ResolveStore
App\Http\Middleware
39
1465
CartService
App\Services\Cart
42
458
InventoryService
App\Services\Inventory
45
352
PricingService
App\Services\Pricing
46
839

Most Coupled Classes

OrderService
14
Store
12
AppServiceProvider
11
Product
11
Order
11

Coupling Metrics

Avg Afferent (incoming)0.96
Avg Efferent (outgoing)2.82
Avg Instability0.80
Avg LCOM1.89
Max LCOM6

Halstead Metrics

Avg Volume153.9
Avg Difficulty3.36
Avg Bugs/Class0.052
Total Est. Bugs5.4
Comment Ratio7.54%
Avg LOC/Class25.4

SonarCloud Analysis

PR #15 - Quality Gate Failed
FAIL

Quality Gate: Failed

PR #15 · 2026-04-16-claude-code-opus-4-7main

2.6h technical debt

13 issues total

View on SonarCloud

Bugs

0

A

Reliability

Vulnerabilities

0

A

Security

Code Smells

13

A

Maintainability

Hotspots

3

To review

Lines of Code

5.7K

PHP

Duplication

0.6%

on new code

Coverage

0%

not configured

Issues by Severity

Critical
4
Major
9
Minor
0
Total13

Security Hotspots (3)

Security Review
LOW3

3 low-probability hotspots flagged in the PR diff for manual review

Top Issue Rules

Cognitive ComplexityS3776
3
CRITICAL
Excessive Return StatementsS1142
2
MAJOR
Redundant alt WordingWeb:S6851
2
MAJOR
Generic ExceptionsS112
1
MAJOR
Nested TernaryS3358
1
MAJOR
Unused Function ParametersS1172
1
MAJOR
Function Too LongS138
1
MAJOR
Duplicate String LiteralsS1192
1
CRITICAL
Form Label MissingWeb:S6853
1
MAJOR

Small issue list (13 total) led by cognitive-complexity and long-function violations. Duplication density is just 0.6%, well under the 3% gate. Quality gate fails only because the 3 new security hotspots remain unreviewed; all quality-rating conditions are green.