Free Engineering Workbench calculator
Code complexity hotspots
Track how much code is too complex to change safely, and where it overlaps with frequent change.
Quality & testingHow it's worked out
- Shares = items over threshold ÷ all items
- Counts from a static analysis tool; hotspots from version history
NoteMcCabe suggested 10 as an upper limit for a function. Fix hotspots first: complex files that rarely change cost little.
Source: McCabe (1976) cyclomatic complexity; Tornhill, Your Code as a Crime Scene (hotspots)
Need help acting on this number?
VVnT SeQuor's Digital Testing & Automation practice helps teams turn this metric into a plan.