Loading...
Loading...
Test coverage, code quality, defect metrics, and QA KPIs
npx skill4agent add davincidreams/agent-team-plugins quality-metricsCritical Business Logic: 90-100%
Core Application Code: 80-90%
Utility/Helper Code: 70-80%
Configuration/Setup Code: 50-70%Complexity Levels:
1-10: Simple, low risk
11-20: Moderate complexity, medium risk
21-50: High complexity, high risk
50+: Very high complexity, very high riskMaintainability Levels:
85-100: Highly maintainable
70-84: Moderately maintainable
50-69: Difficult to maintain
0-49: Very difficult to maintainTechnical Debt Ratio = Cost to Fix Issues / Cost to Develop New Features
Target: < 5%Defect Density = Total Defects / Size Metric (KLOC, FP)
Target: < 1 defect per KLOCDRE = (Defects Found Before Release / Total Defects) × 100
Target: > 90%Defect Leakage = (Defects Found After Release / Total Defects) × 100
Target: < 10%Defect Age = Detection Date - Introduction Date
Resolution Time = Resolution Date - Detection Date
Target: < 7 days for critical defectsCode Quality Gate:
- Code coverage ≥ 80%
- No critical or high severity defects
- Cyclomatic complexity ≤ 10
- No security vulnerabilities
- All tests passing
Performance Gate:
- p95 response time < 500ms
- Error rate < 0.1%
- Throughput ≥ 1000 RPS
- CPU utilization < 70%
Security Gate:
- No high/critical vulnerabilities
- OWASP Top 10 compliance
- Dependency scan clean
- Authentication/authorization testedQuality Dashboard:
┌─────────────────────────────────────────┐
│ Overall Quality Score: 87/100 │
├─────────────────────────────────────────┤
│ Test Coverage: 85% │
│ ├─ Line: 87% │
│ ├─ Branch: 82% │
│ └─ Function: 90% │
├─────────────────────────────────────────┤
│ Code Quality: 82/100 │
│ ├─ Complexity: 8.2 avg │
│ ├─ Duplication: 3.1% │
│ └─ Maintainability: 78 │
├─────────────────────────────────────────┤
│ Defects: 12 open │
│ ├─ Critical: 1 │
│ ├─ High: 3 │
│ ├─ Medium: 5 │
│ └─ Low: 3 │
├─────────────────────────────────────────┤
│ Performance: 92/100 │
│ ├─ p95 Response: 420ms │
│ ├─ Throughput: 1250 RPS │
│ └─ Error Rate: 0.05% │
└─────────────────────────────────────────┘