Main Thread Tool Calls
688
32 unique tools
Sub-agent Tool Calls
2.8K
Bash / Edit / Playwright MCP
Sub-agents
24
19 Agent + 5 AgentSwarm
Estimated Cost
$190.38
485.6M tokens
Tool Usage per Sub-agent
24 agents
Tool Usage per Sub-agent
Code Quality Assessment
PHPMetrics
Code Quality Assessment
Code Quality Assessment
PHPMetrics 2.9.1Classes
226
Lines of Code
12.9K
Avg MI
96.4
Avg Complexity
6.3
Est. Bugs
36.3
max 2.4 in Form
Violations
0
0 errors, 0 warnings
Complexity Distribution
Maintainability Distribution
Most Complex Classes
Form
App\Livewire\Admin\Products
CheckoutService
App\Services
ProductService
App\Services
OrderService
App\Services
SearchService
App\Services
Least Maintainable
Form
CCN 80 · 453 LOC
ProductPolicy
CCN 3 · 35 LOC
ThemePolicy
CCN 3 · 31 LOC
OrderPolicy
CCN 2 · 30 LOC
Shipping
CCN 31 · 274 LOC
Most Coupled Classes
Order
31CheckoutService
30Store
28Product
27User
21Max Efferent
30
Max LCOM
6
Notes
- •PHPMetrics flags 0 rule violations across 226 classes, with a strong average MI of 96.4 - second-highest on the page behind #13's 104.5 - despite 12.9K class-LOC that's the largest on the page outside #12's goal-mode run.
- •SonarCloud tells a different story: 105 unresolved issues on PR #27 (15 critical, 76 major, 14 minor) = 2 bugs, 0 vulnerabilities, and 103 code smells. The quality gate FAILED on new-code reliability (C) alone; security and maintainability both passed (A).
- •The two BUG-type issues are both accessibility-adjacent: a missing input id/label pair in the admin theme editor, and a storefront order-history table missing column headers.
- •12.9K class-LOC (18.7K ncloc) across 226 classes - the largest codebase in this comparison after #12's goal-mode run, built over 20h 21m of active work spread across a week of repeated quota stalls.
SonarCloud Analysis
PR #27 - Quality Gate Failed
SonarCloud Analysis
SonarCloud Analysis
PR #27 · 2026-07-19-kimi-code-k3 → mainReliability on New Code
Security on New Code
Maintainability on New Code
Duplicated Lines on New Code
Security Hotspots Reviewed
Bugs
2
Vulnerabilities
0
Code Smells
103
Security Hotspots
0
Lines of Code
18.7K
Duplication
2.3%
Tech Debt
16h
934 min
Reliability
C
new code
Security
A
new code
Maintainability
A
new code
Issues by Severity (105 total)
103 of the 105 issues are code smells rather than bugs or vulnerabilities - the gate fails purely on the reliability rating (C), driven by the 2 BUG-type findings: a missing input/label pairing in the admin theme editor and a storefront order-history table with no column headers, both accessibility defects rather than functional breakage.
Top Issue Rules
Unused function parameters should be removed
Mostly unused $request/$id parameters left over from the phase-by-phase Livewire component scaffolding across admin CRUD forms.
DOM elements should use the "autocomplete" attribute correctly
Storefront and admin auth/checkout forms are missing autocomplete hints on email, name, and address fields.
String literals should not be duplicated
Repeated status strings and validation messages across the 24 sub-agent phases, never centralized into constants or enums.
Prefer tag over ARIA role
Flux UI components use role="button"/role="link" on generic elements instead of native <button>/<a>.
Field names should comply with a naming convention
Snake_case properties leaking in from Eloquent attribute casts and DTOs.
Generic exceptions (e.g. RuntimeException, Exception) should not be thrown
Service-layer guard clauses throw bare RuntimeException instead of a domain-specific exception hierarchy.
Functions should not contain too many return statements
Concentrated in the admin Products Form component - the same class that tops the PHPMetrics complexity table (CCN 80).
Images should have a non-redundant alternate description
Product-image alt text repeats the product title already present as adjacent visible text.
Two methods should not have the same implementation
Near-duplicate authorization checks across sibling admin policies, one per resource type.
Ternary operators should not be nested
Nested status-label ternaries in order/fulfillment badge rendering.
The issue mix is almost entirely maintainability code smells (unused parameters, duplicated strings, missing ARIA/autocomplete attributes) rather than correctness bugs - consistent with a 24-way phase pipeline where each sub-agent scaffolded its own forms independently without a shared constants/exception layer.