Orchestrator Tool Calls
187
9 unique tools
Sub-agent Tool Calls
704
ApplyPatch / Read / Write
Sub-agents
5
model-pinned Task agents
Estimated Cost
$41.10
84.0M tokens
Tool Usage per Sub-agent
5 agents
Tool Usage per Sub-agent
Code Quality Assessment
PHPMetrics
Code Quality Assessment
Code Quality Assessment
PHPMetrics 2.9.1Classes
155
Lines of Code
4.4K
Avg MI
79.9
Avg Complexity
3.6
Est. Bugs
11.2
max 0.7 in Show
Violations
0
0 errors, 0 warnings
Complexity Distribution
Maintainability Distribution
Most Complex Classes
DiscountService
App\Services
Show
App\Livewire\Storefront\Checkout
ProductService
App\Services
RefundService
App\Services
ShippingCalculator
App\Services
Least Maintainable
OrderService
CCN 18 · 59 LOC
PricingEngine
CCN 17 · 53 LOC
CartService
CCN 17 · 93 LOC
SearchService
CCN 6 · 46 LOC
ResolveStore
CCN 8 · 49 LOC
Most Coupled Classes
Order
19Store
18User
18CheckoutService
17Product
16Max Efferent
15
Max LCOM
5
Notes
- •PHPMetrics flags 0 rule violations across 155 classes, with a healthy average MI of 79.9 - the class-level metrics are clean and low-complexity.
- •SonarCloud tells a different story: 68 unresolved issues on PR #26 (10 critical, 52 major, 6 minor) = 3 bugs, 7 vulnerabilities, and 58 code smells. The quality gate FAILED on new-code reliability (C) and security (C).
- •All 7 vulnerabilities are the same rule (php:S2245) - a non-cryptographic pseudorandom generator used where secure randomness is expected - which alone produces the C security rating. Separately, QA found a runtime information disclosure: a handle-collision on admin page-create throws an unhandled exception rendered as a raw Laravel debug page, leaking the stack trace, SQL, and session cookies.
- •4.4K class-LOC (9.0K ncloc) across 155 classes - one of the leanest codebases on this spec, built in 71 minutes by a Grok orchestrator plus GPT-5.6-sol and Claude Sonnet 5 sub-agents.
SonarCloud Analysis
PR #26 - Quality Gate Failed
SonarCloud Analysis
Quality Gate: Failed
PR #26 · 2026-07-18-cursor-grok-4-5 → main
5.8h technical debt
68 issues total
Quality Gate Conditions
Bugs
3
CReliability
Vulnerabilities
7
CSecurity
Code Smells
58
AMaintainability
Hotspots
0
100% reviewed
Lines of Code
9.0K
PHP
Duplication
0.6%
of all code
Coverage
0%
not configured
Issues by Severity
Issues by Type
Top Issue Rules
Quality gate failed on two of five conditions: Reliability (C) and Security (C) on new code. Duplication (0.7%) and hotspot review (100%) both pass comfortably. The single biggest rule is missing table header id/scope attributes (39 hits) across admin data tables, followed by cognitive-complexity warnings concentrated almost entirely in one class, App\Services\ProductService (CCN 107) - the same class PHPMetrics independently flags as the codebase's worst offender.