Skip to content

Sample work · Code & Bugs

Tech Debt Audit: a register by impact over effort, documented with reduction

A demo codebase with an overly long function, deep nesting, many parameters, copied blocks, and open tags. The register sorts by impact over effort; after reducing the top items, the number decreases measurably.

Sample work (demo), not a client job. Built as a trial task with invented example data; the check figures below come from the automatic test run and are not polished.

What was built

  • Six types measured with ast, not estimated
  • Register prioritized by what yields the most and costs the least
  • After-version with fewer items
  • Codebase invented

Download codebasis-vorher.py Download codebasis-nachher.py

How it was checked

Automatic test run on 2026-10-31, taken from the log (test data invented, figures measured):

  • Demo codebase: 10 debt items in 6 types as a register by impact over effort, 0 after reduction
  • Clean code with no findings
  • 9 checks

Limits

What this sample does not cover, so nobody expects more:

  • Measures the form of the code, not the correctness
  • Limit values are guidelines; impact and effort are estimates, not hours
  • Refactoring only occurs when tests are in place and the client approves the refactoring

Something like this for your business?

Describe briefly what you need. You get a fixed price before I start; nothing happens without your yes.

To the workshop