Free Engineering Workbench calculator

Code complexity hotspots

Track how much code is too complex to change safely, and where it overlaps with frequent change.

Open Code complexity hotspots in the live, interactive calculator — type your numbers, see the result instantly.

Open live calculator →
Quality & testing

How 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.

Talk to us →

Related calculators