Technical Debt Analysis: Your Software Is Quietly Getting More Expensive

"We wanted to add a small button, and our developer said it would take two weeks." When we hear that sentence, the diagnosis is usually already clear: you're paying interest on technical debt. Technical debt is the price paid tomorrow for the shortcuts taken today to move fast, and just like financial debt, if it isn't managed, the interest overtakes the principal. In this post, we look at the symptoms of debt, where it comes from, how it's measured, and how to build a sensible repayment plan, all from a manager's point of view.

Symptoms of technical debt

If you're a manager, you can't see the code, but you can see the symptoms:

  • Simple changes take longer with every passing month; what used to be a day's work now takes a week.
  • Every new feature breaks some seemingly unrelated old feature.
  • The team is piling up black-box modules it describes as "let's not touch that, it works."
  • You hire a new developer, and it takes months for them to become productive.
  • Shipping a release is a fearful ritual: midnight, everyone on edge, rollback plan in hand.

You can't manage debt without measuring it

Over 16 years we have taken over dozens of projects, and our first step is always the same: inventory and measurement. We use static analysis tools (PHPStan on the PHP side, plus code style and complexity metrics) to take a snapshot of the code: which modules are how complex, where test coverage is zero, which dependencies are how many years behind. Then we combine this technical snapshot with the business side: which module receives the most changes? Because the cost of debt is the size of the debt multiplied by how often that code is touched. Ugly code that nobody touches is cheap; mediocre code that gets touched every week is expensive.

Where does debt come from?

"Badly written code" isn't the only source of technical debt; there are at least three others. The first is deliberate business decisions: the shortcut taken to make a trade show deadline was the right call that day; the problem is never going back to pay it off. The second is lack of knowledge: the team didn't know any better at the time; software development is a craft you keep learning, and yesterday's "best practice" can be today's anti-pattern. The third is environmental aging: even if you do nothing at all, your dependencies age, framework versions reach end of life, and security patches stop; the debt grows on its own while the code stays the same. This distinction matters in practice because the treatments differ: the first is managed through process discipline, the second through training and code review, and the third through a regular dependency update routine. Diagnosing the source instead of hunting for someone to blame both protects team morale and points to the right investment.

Three sources of technical debt beyond bad code, and how each one is managed.
A different source calls for a different treatment.

Repayment strategy: installments, not a big bang

"Let's rewrite everything from scratch" is tempting and is usually a disaster; it halts the work that's running, and two years later a new system is born carrying the same debt. Our recommendation is to pay in installments: a set percentage of each sprint's capacity (typically 15-20%) is reserved for reducing debt. The order of priority is clear as well: first debt that carries security risk, then the most frequently touched modules, then the areas that eat up the most developer productivity. Moving old modules one by one to a modern structure with the strangler fig pattern is almost always safer than a big-bang rewrite.

Technical debt repayment plan: reserving a share of each sprint, setting priorities, and migrating gradually with the strangler fig pattern.
Installments instead of a big bang.

Summary for decision-makers

Technical debt isn't a developer whim; it's a balance sheet item. Ignore it and it won't go away; it gets billed to your delivery times, your staff turnover, and your customer satisfaction. At Rich Design, we carry out independent technical debt analyses of your existing software and deliver a prioritized roadmap written in management language. If you're curious about the true state of your software, let's schedule an analysis meeting.