Think Build Implement Repeat
London, UK +44 7367 067226
WhatsApp FOLLOW f in X
  1. Home
  2. Blog
  3. What an Audit Should Tell You
PHP Development

What an Audit Should Tell You

Auditing a PHP codebase you did not build: security exposure, version support, dependencies, test coverage, change speed and a prioritised list of fixes.

Updated 2 min readBy SpiderHunts Technologies

Free estimateNo obligation

Get a free estimate

Tell us what you need. A senior engineer reads every enquiry.

Takes under a minute. We never share your details.

  • Free consultation
  • No commitment
  • NDA on request

Prefer to talk? Book a free 30-minute call →

Quick answer — TL;DR

Security exposure, version support, dependency currency, test coverage and how long a typical change takes. Those five describe the health of a codebase better than any metric.

Five questions an audit answers

  1. Is it exposed? The common vulnerability classes, checked specifically
  2. Is it supported? PHP version, framework version, dependency currency
  3. Is it tested? Not coverage percentage, but whether the important parts are covered
  4. Is it maintainable? Could another developer work on it
  5. What would a typical change cost? The most practical measure of all
The last question is the one that matters commercially. A codebase where a simple change takes three days is expensive regardless of how it scores on any metric.

Security, specifically

  • Database access — parameterised, or string concatenation?
  • Output escaping — consistent, or ad hoc?
  • File uploads — where do they land?
  • Authorisation — enforced server-side on every action?
  • Dependencies — any with known vulnerabilities?

Practical maintainability signals

SignalIndicates
Can it run locally in a day?Setup is documented
Are deployments repeatable?Process exists
Is there version control history?Changes are traceable
Do the tests pass?They are maintained
Is configuration in the environment?Environments are separable

What an audit should produce

A prioritised list: what is urgent, what is important, what is cosmetic, with an effort estimate against each. Not a list of every style deviation.

The output should let a non-technical owner decide what to fund, which means it has to be written for them rather than for a developer.

When to commission one

  1. Before acquiring a business that depends on the software
  2. When taking over from another supplier
  3. When changes are taking longer than they used to
  4. Before deciding between fixing and rebuilding
  5. After a security incident, obviously

FAQ

Frequently asked questions

The questions readers ask us after this guide.

Still have a question?

Ask us directly — a senior engineer will get back to you.

Ask about your project

How long does an audit take?

Two to five days for a typical business application, depending on size and how much documentation exists.

What does it cost?

Usually a few thousand pounds. Against a rebuild decision or an acquisition, it is inexpensive certainty.

Will it find everything?

It will find the significant things. An audit is a proportionate assessment, not an exhaustive review of every line.

Can you audit code you did not write?

That is what an audit is. We do this regularly and we give a straight assessment either way.

Keep reading

More on PHP Development

PHP Development

Why PHP Is Still a Sensible Choice

Is PHP still a good choice for business applications? Where modern, typed PHP fits, where another language is better, and the hosting and hiring arguments.

PHP Development

Improving Old Code Without a Rewrite

Modernising a legacy PHP application without a rewrite: move to a supported PHP version, add tests around what matters, then strangle rather than replace.

Start here

Inheriting or acquiring a system?

An audit is a few days against a decision you will live with for years. Happy to run one.

  1. You tell us what you needTwo minutes on the form, or a message on WhatsApp.
  2. A senior engineer reviews itAnd comes back with questions, a realistic range and an honest view on fit.
  3. Free 30-minute scoping callWe talk through scope, options and a realistic estimate — with no obligation.
Free estimateNo obligation

Talk to someone who builds this

Send a short brief and we will come back with an honest view and a realistic range.

Takes under a minute. We never share your details.

  • Free consultation
  • No commitment
  • NDA on request

Prefer to talk? Book a free 30-minute call →