Technical Debt Metrics Vocabulary
5 exercises — master the English vocabulary engineers and managers use when discussing technical debt: debt ratio, the interest metaphor, backlog prioritisation, debt types, and compounding.
0 / 5 completed
1 / 5
In an architecture review, a tech lead says: "The SonarQube report shows our technical debt ratio is 18%. That means it will take roughly 18% of the original development investment to clean this codebase up to a maintainable baseline. We're in the 'C' band — we should be targeting 'A'." What does a debt ratio of 18% mean operationally, and what is the 'A' band target?
The SQALE debt ratio expresses the total cleanup cost of a codebase as a proportion of its estimated development cost — turning an abstract quality score into an engineering-time estimate that leadership can understand and budget for.
SQALE maintainability rating:
Path from C to A — highest-leverage actions:
① Remove duplicated code blocks (SonarQube often assigns 30–60 min per duplication violation)
② Reduce cognitive complexity in the highest-scoring functions
③ Fix naming violations and magic numbers (fast wins; many small issues add up)
④ Set a new-debt quality gate: prevent the ratio from increasing while old debt is paid down
Reporting language:
• "At 18% debt ratio, we're about 180 developer-days of remediation work from a clean codebase."
• "Our target is the A band — below 5% — which would require approximately 130 days of focused remediation."
• "If we allocate 10% of each sprint to debt remediation, we can reach the A band in about 18 months."
Key vocabulary:
• Debt ratio — remediation cost ÷ estimated development cost, as a percentage
• SQALE rating — SonarQube's A–E maintainability grade derived from debt ratio
• Remediation cost — the estimated developer time needed to fix a specific code issue
• Debt band — a named category of debt ratio ranges (A through E) with associated risk levels
SQALE maintainability rating:
| Rating | Debt ratio | What it means |
|---|---|---|
| A | ≤ 5% | Maintainability in excellent shape |
| B | 6–10% | Small debt — manageable with routine hygiene |
| C | 11–20% | Significant debt — proactive remediation needed |
| D | 21–50% | High debt — serious maintenance burden |
| E | > 50% | Extreme debt — potentially untestable/unmaintainable |
Path from C to A — highest-leverage actions:
① Remove duplicated code blocks (SonarQube often assigns 30–60 min per duplication violation)
② Reduce cognitive complexity in the highest-scoring functions
③ Fix naming violations and magic numbers (fast wins; many small issues add up)
④ Set a new-debt quality gate: prevent the ratio from increasing while old debt is paid down
Reporting language:
• "At 18% debt ratio, we're about 180 developer-days of remediation work from a clean codebase."
• "Our target is the A band — below 5% — which would require approximately 130 days of focused remediation."
• "If we allocate 10% of each sprint to debt remediation, we can reach the A band in about 18 months."
Key vocabulary:
• Debt ratio — remediation cost ÷ estimated development cost, as a percentage
• SQALE rating — SonarQube's A–E maintainability grade derived from debt ratio
• Remediation cost — the estimated developer time needed to fix a specific code issue
• Debt band — a named category of debt ratio ranges (A through E) with associated risk levels