Technical Debt Measurement Language
5 exercises — master the vocabulary of technical debt measurement: debt ratio, SQALE method, hotspots, SonarQube security classifications, and stakeholder communication.
0 / 5 completed
Technical debt vocabulary quick reference
- Technical debt ratio — remediation effort ÷ rebuild cost × 100; SQALE: A ≤5%, B 6–10%, C 11–20%, D 21–50%, E >50%
- Code smell — a code characteristic indicating a deeper problem, without itself being a bug
- SonarQube vulnerability — definitively exploitable security defect; requires immediate fix
- SonarQube hotspot — security-sensitive code requiring manual review to classify
- Hotspot (debt context) — high complexity + high churn = highest bug density risk (Tornhill)
- SQALE — Software Quality Assessment based on Lifecycle Expectations; underpins SonarQube debt calculation
- Churn — how frequently a file is modified; combined with complexity to identify hotspots
1 / 5
A SonarQube dashboard shows a project with a technical debt ratio of 8%. A new engineer asks: "What is the technical debt ratio and how is it calculated?"
The technical debt ratio is the primary objective metric for quantifying and communicating the scale of accumulated code quality issues to both engineering and business stakeholders.
Formula:
Technical Debt Ratio = (Remediation effort / Development cost) × 100
• Remediation effort — the total time SonarQube estimates is needed to fix all code smells and rule violations (e.g. 340 developer-hours)
• Development cost — the estimated cost to rebuild the codebase from scratch (calculated from LOC using a standard productivity rate, e.g. 30 minutes per line)
SQALE grade thresholds:
Key vocabulary:
• Technical debt ratio — remediation effort as a percentage of rebuild cost; the SQALE method's primary metric
• SQALE — Software Quality Assessment based on Lifecycle Expectations; the methodology underlying SonarQube debt calculation
• Code smell — a characteristic of source code that indicates a deeper problem without being a bug itself
Formula:
Technical Debt Ratio = (Remediation effort / Development cost) × 100
• Remediation effort — the total time SonarQube estimates is needed to fix all code smells and rule violations (e.g. 340 developer-hours)
• Development cost — the estimated cost to rebuild the codebase from scratch (calculated from LOC using a standard productivity rate, e.g. 30 minutes per line)
SQALE grade thresholds:
| Grade | Debt Ratio | Interpretation |
|---|---|---|
| A | ≤5% | Excellent — low debt, easy to maintain |
| B | 6–10% | Good — managed debt, monitor trends |
| C | 11–20% | Acceptable — address during refactoring sprints |
| D | 21–50% | Concerning — slowing down delivery significantly |
| E | >50% | Severely indebted — major remediation required |
Key vocabulary:
• Technical debt ratio — remediation effort as a percentage of rebuild cost; the SQALE method's primary metric
• SQALE — Software Quality Assessment based on Lifecycle Expectations; the methodology underlying SonarQube debt calculation
• Code smell — a characteristic of source code that indicates a deeper problem without being a bug itself