Cloudstruct

Guides

Inherited undocumented code? What a takeover audit covers.

A takeover audit tells you what you actually own before you change anything. It inventories the code, its dependencies, the hosting, the data, how changes get deployed, and who has access, then ranks the risks so you know what to fix first. A good one ends in writing and answers a practical question: can this system be kept running safely, and if so, what does that take?

Updated

Why audit before anyone touches the code?

Undocumented systems usually work because of things nobody wrote down: a scheduled task on one server, a setting in a config file, a password that only one person knows. Change the wrong thing first and you find out what it was holding up the hard way.

An audit gives you a map before the first change. It also gives you something independent to compare quotes against, whoever ends up doing the work.

What does a takeover audit look at?

Seven areas, in roughly this order:

  • The code. Where the real source lives, whether it matches what is running in production, which languages and frameworks it uses, and which parts are fragile or duplicated.
  • Dependencies. Framework versions, packages and libraries, and the third-party services it calls, such as payments and email. Anything out of support or no longer receiving security fixes gets flagged.
  • Hosting. Which servers, cloud accounts, and domains the system runs on, who pays for them, and what else shares the same machine. Old shared servers often host sites nobody uses anymore.
  • Security. Patch levels on the operating system, web server, and database, how passwords and secrets are stored, HTTPS everywhere it should be, and any obvious holes such as admin pages open to the internet.
  • Data. Where the databases are, how large they are, whether backups exist, and whether anyone has ever restored one. An untested backup is a hope, not a backup.
  • The deploy process. How a change gets from a developer’s machine to production. In many inherited systems the honest answer is “someone copies files to the server”, which is worth knowing before you rely on it.
  • Who has access. Every account with admin rights to the code, hosting, domains, and databases, including former developers and agencies. Access should end up in accounts your business owns.

What are the warning signs?

None of these means the system is doomed. Each is a reason to look closer before you invest in it:

  • Nobody can say which version of the code is running in production.
  • The hosting, domain, or source code sits in a former developer’s personal account.
  • The framework or database version is past its vendor’s end of support.
  • Backups have never been restored, or nobody knows where they go.
  • Small changes take weeks because people are afraid of breaking something.
  • Errors surface when customers report them, not from monitoring.
  • Passwords are shared over email or kept in a spreadsheet.

Should you maintain, modernize, or rebuild?

The audit should leave you able to make this call on evidence rather than on whoever is selling the most work.

  • Maintain. When the system does its job and the risks can be fixed in place: patch it, back it up, document it, and keep improving it. This is the right answer more often than people expect.
  • Modernize. When the platform underneath is the problem, such as an unsupported framework, hosting, or database version, but the business logic is sound. Moving to a supported version can often be done in stages while the system keeps running.
  • Rebuild. When the system no longer fits how the business works, or the cost of changing it keeps outrunning the value of each change. Even then, a rebuild should be phased, with the old system kept healthy until the new one takes over.

Be wary of anyone who recommends a full rewrite before they have looked at the code. It may be the right call, but it should come with reasons in writing.

What should you have ready before you call someone?

You don’t need all of this, but each item saves time and makes any quote more accurate:

  • A list of what the system does for the business, and who uses it day to day.
  • Every login you have: hosting, domain registrar, source code, database, and third-party services.
  • Contact details for the previous developer or agency, if you’re still on speaking terms.
  • Any documentation, contracts, or invoices that describe the original build.
  • A short list of what is broken or worrying you right now, and anything urgent.
  • The changes you want to make in the next year, so the audit can say whether the system can take them.

What should you get at the end?

A written report you own: an inventory of what is running, a list of risks ranked by severity and effort, and a recommendation on whether to maintain, modernize, or rebuild, with the reasons. You should be able to hand it to any competent team and have them pick up from there.

Book a free 30-min call