#01 Claude Code Team Mode

Quality

agent-claude-team · v2.1.39

Files Created

384

388 unique

Total Tool Calls

2460

across 32 agents

Active Agents

31

contributing code

Estimated Cost

$73.44

1258 API requests

Codebase Output

388 files

Files by Directory

resources/views
56
app/Livewire
48
database/migrations
45
app/Models
44
tests/Feature
43
database/factories
35
app/Enums
27
database/seeders
19
app/Services
17
app/Http
14
app/Policies
10
app/Jobs
6
app/Events
5
app/ValueObjects
4
app/Exceptions
3

Files per Agent (top 12)

Build admin remaining sections
63w 2e
phase1-factories-seeders
53w 1e
api-routes-customer
33w 0e
phase2-5-services
32w 1e
admin-panel-full
22w 3e
storefront-layout-components
25w 0e
Build admin Orders and Customers
12w 1e
Build admin Products CRUD
9w 3e
Build admin Dashboard component
11w 1e
Build AnalyticsService and job
6w 5e
Build SearchService with FTS5
6w 2e
Build storefront components
3w 0e

Code Quality Assessment

PHPMetrics

Code Quality Assessment

PHPMetrics 2.9.1

Classes

170

Lines of Code

6.1K

Avg MI

79.7

Avg Complexity

4.6

Est. Bugs

18.1

Violations

36

11 errors

Complexity Distribution

Low (CCN <= 5)
136 (80%)
Medium (6-10)
13 (7.6%)
High (> 10)
21 (12.4%)

Maintainability Distribution

Excellent (>= 85)
64 (37.6%)
Good (70-84)
41 (24.1%)
Moderate (55-69)
31 (18.2%)
Low (< 55)
34 (20%)

Most Complex Classes

ClassCCNLOCMI
CheckoutService
App\Services
41174
48
ShippingCalculator
App\Services
38106
57
DiscountService
App\Services
37126
47
CheckoutController
Api\Storefront\V1
33129
39
SearchService
App\Services
26181
69

Least Maintainable Classes

ClassMICCNLOC
CartService
App\Services
28
23127
AggregateAnalytics
App\Jobs
38
1461
CheckoutController
Api\Storefront\V1
39
33129
ResolveStore
App\Http\Middleware
42
1055
CartController
Api\Storefront\V1
43
1282

Most Coupled Classes

CheckoutService
15
CheckoutController
14
AppServiceProvider
9
RefundService
9
Admin\Dashboard
8

Coupling Metrics

Avg Afferent (incoming)1.22
Avg Efferent (outgoing)3.08
Avg Instability0.78
Avg LCOM1.88
Max LCOM5

Halstead Metrics

Avg Volume319.8
Avg Difficulty4.59
Avg Bugs/Class0.107
Total Est. Bugs18.1
Comment Ratio11.14%
Avg LOC/Class35.9

SonarCloud Analysis

PR #2 - Quality Gate Failed
FAIL

Quality Gate: Failed

PR #2 · claude-code-teammain

22.3h technical debt

170 issues total

View on SonarCloud

Bugs

2

C

Reliability

Vulnerabilities

0

A

Security

Code Smells

168

A

Maintainability

Hotspots

33

To review

Lines of Code

18.6K

PHP

Duplication

2.9%

on new code

Coverage

0%

not configured

Issues by Severity

Critical
10
Major
23
Minor
137
Total170

Security Hotspots (33)

Weak Cryptography
MEDIUM18

Pseudorandom number generator in AnalyticsSeeder.php

Insecure Protocol (HTTP)
LOW15

Hardcoded HTTP URLs in test files

Top Issue Rules

Cognitive ComplexityS3776
2
CRITICAL
Duplicate String LiteralsS1192
8
CRITICAL
Unused Local VariablesS1481
60
MINOR
Field Naming ConventionS116
40
MINOR
Excessive Return StatementsS1142
10
MAJOR
Unused Function ParametersS1172
5
MAJOR
Duplicate Method ImplementationsS4144
3
MAJOR
Nested Ternary OperationsS3358
3
MAJOR

Highest complexity: RefundService (65) and CheckoutService (43) exceed the 15-point cognitive complexity threshold. 137 minor issues are primarily unused variables in test files and snake_case naming conventions.