Tool Calls
898
22 unique tools
Total Tokens
100.8M
226.6K output
Subagents
53
36 explorers, 17 workers
Reasoning
836
135 commentary msgs
Code Quality Assessment
PHPMetrics
Code Quality Assessment
Code Quality Assessment
PHPMetrics 2.9.1Classes
141
Lines of Code
7.2K
Avg MI
79.6
Avg Complexity
9.2
Est. Bugs
31.4
max 4.8 in CheckoutController
Violations
63
32 errors, 25 warnings
Complexity Distribution
Maintainability Distribution
Most Complex Classes
| Class | CCN | LOC | MI |
|---|---|---|---|
| CheckoutController Api\Storefront | 174 | 420 | 20 |
| CheckoutController Storefront | 109 | 310 | 25 |
| AdminPageController Admin | 75 | 280 | 23 |
| CartService App\Services | 48 | 195 | 32 |
| OrderService App\Services | 42 | 170 | 35 |
Least Maintainable Classes
| Class | MI | CCN | LOC |
|---|---|---|---|
| CheckoutController Api\Storefront | 20 | 174 | 420 |
| AdminPageController Admin | 23 | 75 | 280 |
| CheckoutController Storefront | 25 | 109 | 310 |
| CartService App\Services | 32 | 48 | 195 |
| OrderService App\Services | 35 | 42 | 170 |
Most Coupled Classes
Violations (63)
· Too complex class code (multiple controllers)
· Too complex method code (checkout and cart logic)
· Blob / God object (AdminPageController - 26 dependencies, high LCOM)
· Probably bugged (high Halstead defect estimates in checkout)
· Too long (excessive LOC in controller classes)
· Too dependent (high efferent coupling in admin controller)
Halstead & Coupling
SonarCloud Analysis
PR #5 - Quality Gate Failed
SonarCloud Analysis
Quality Gate: Failed
PR #5 · codex-subagents-2 → main
33.3h technical debt
153 issues total
Quality Gate Conditions
Bugs
0
AReliability
Vulnerabilities
0
ASecurity
Code Smells
153
AMaintainability
Hotspots
5
0% reviewed
Lines of Code
16.2K
PHP
Duplication
4.2%
on new code
Coverage
0%
not configured
Issues by Severity
Issues by Type
Top Issue Rules
String duplication dominates with 55 issues (S1192). Despite using custom instructions with PHPStan and Deptrac, code smells tripled compared to v1 (153 vs 54), likely due to the larger codebase. However, zero bugs and zero vulnerabilities indicate that the quality-focused approach improved correctness.