Skip to content

Source codeaudit

You inherited a piece of software, you are torn between fixing it and rebuilding it, or you want to know whether the code you pay for holds up. An independent audit answers with evidence, not impressions.

Talk to an expert

For
SMEs, large companies, acquirers
Technologies
PHP, JavaScript, TypeScript, SQL
Team
Montréal, across Québec

01 When

When to have your code audited

An audit makes sense when an important decision depends on the state of the code and nobody inside the company can settle it neutrally.
Close-up of source code on a screen
  1. The developer or the vendor has left

    The code stayed, the knowledge left. Before handing the software to a new team, you need to know what it is taking over.

  2. Fix or rebuild keeps coming back

    It is the most expensive decision to make on instinct. The audit puts both options side by side, with what supports each one.

  3. An acquisition or an investment is coming

    Part of the company’s value rests on its platform. A neutral reading of the code belongs in the due diligence.

  4. Every feature takes longer than the last

    Deadlines stretch for no visible reason. It often means technical debt now sets the pace.

  5. A security incident happened

    An intrusion, a failed penetration test, a privacy law question: the audit looks for the causes in the code, not only the door that was used.

The real question is not whether your code is good. It is whether it can carry what comes next: growth, a new team, a sale.

The report answers that question, with the evidence.

02 What we examine

What the audit examines

Six angles covered by every audit. The business question decides which one we dig into most.

03 How it runs

From the business question to the written report

One to four weeks depending on the size of the code. At every step, you know what we are looking at and why.

01 Scoping

We set the question before reading the code.

Sell, acquire, rebuild, secure or speed up: the question decides what we look at first. We agree on the scope, the deliverables and the access. If you ask for a confidentiality agreement, it is signed before any access.
Fig. 01 The audit’s scoping sheet

02 Measures

Tools measure the whole codebase.

Versions and end of support, complexity, duplication, known flaws, dependencies, database structure: every axis gets its measure. These numbers say where to look, not yet what to conclude.
Fig. 02 The technologies in place and their end of support

03 Reading

Every finding is opened in the code.

A measure cannot tell whether a business rule is right. So we read the parts that matter: sign-in and permissions, money calculations, integrations, functions the tools flagged. Every alert is confirmed or dropped.
Fig. 03 A report query, read line by line

04 Interviews

The teams fill in what the code does not say.

An hour with the people who use or maintain the software: the daily workarounds, the module people avoid changing, the needs of the coming years. We also walk through the main screens, down to phone width.
Fig. 04 The interview notes

05 Report

A written position, then a meeting.

The report brings together the grades by axis, the findings ranked by severity and the comparison between keeping and rebuilding. We present it to management and to the technical team, and answer questions on the spot.
Fig. 05 The grades by axis, at the start of the report

The report recommends a rebuild?

The rebuild then follows our development method, from discovery to quality testing. The report is its starting point.

See the method

04 The report

Every finding points to a line of code

Every finding follows the same order: the notion explained in one sentence, the evidence in the code, then what it changes for your operations. An executive finds what to decide, a developer the file to open. The report gives no overall grade: a piece of software can be solid on one axis and fragile on another.
The summary of findings, from most to least severe

The outline of the report

The same outline from one audit to the next. The document belongs to you and can circulate without us.

1. State of the technology
Technologies, database, grades by axis, versions and end of support
2. Architecture findings
Language of the code, SQL queries, layers, data model, duplication, interface, each with what is at stake
3. Improvement opportunities
Tests, deployment, security, development efficiency
4. Options
Keep and update, or rebuild, with a recommendation

05 Keep or rebuild

Keep and update, or rebuild

The last part of the report compares both options on the same points, then takes a position. We recommend a rebuild when several foundations give way at once: a language or framework at end of life, hand-written data access, weak security, no tests at all. Otherwise, keeping the software and updating it is often the better choice.

When the rebuild wins, what comes next is described on our modernization page and, for a PHP system, our PHP rewrite page.

The comparison of options, with the recommendation

06 Confidentiality

An outside view, with nothing exposed

What governs your code and your data, from the first access to the end of the mandate.
  1. An isolated copy, destroyed at the end

    The risk
    A copy of the code or the database is still around after the mandate.
    Our rule
    We work on an isolated copy, destroyed at the end of the mandate. An anonymized database is usually enough.
    For you
    Your business data never leaves the mandate.
  2. Tools run on our own machines

    The risk
    The code is sent to an online service to be analyzed.
    Our rule
    The analyzers run on our machines. Only the names of libraries and technologies are checked online, to learn their known flaws and end-of-support dates.
    For you
    Your code is uploaded nowhere.
  3. No secrets in the report

    The risk
    A password found in the code ends up printed in a document that circulates.
    Our rule
    The report cites the file and the line, never the value. It recommends replacing whatever was exposed.
    For you
    The report can circulate safely.

07 After

After the report, a partner for every technical decision

Your team or your vendor can act on the report without us. If you want to go further with us, the audit has already taught us your code, your data and your constraints. We use that to advise you as your technology partner, over time. Day-to-day upkeep of the software belongs to our support and maintenance offer.

01

A fix plan in the right order

What gets fixed this week, what gets planned, what can stay as is: we rank the findings with you, by the risk and the effort of each one.

02

A new measure after the fixes

The same tools, run again on the corrected code. The grades by axis show what really moved, and the next weak spot to address.

03

What changes around your software

An end of support coming up, a release that removes an irritant, a task automation or AI would do better: we point out what is worth the investment, and what can wait.

04

Advice on the projects that follow

A module to add, another vendor’s quote, software to acquire: we read every proposal in the light of what the audit showed.

08 Our work

An old system, read before it was rebuilt

Before proposing an approach, Witify analyzed the code and the database of the old CuistotNet, the ordering, production and invoicing software of Cuistot du Marchand. The rebuild started from that survey: recipes, orders, invoices and years of history came along.

View all projects

  • Cuistot du Marchand

    In-store prepared meals

    The store orders. Cooked, logged, invoiced.

    Custom ERP, Custom software

09 Questions

Questions and answers

What we are asked before someone opens a code repository to us.

Another question? Write to us at info@witify.io or call 1 800 334 9031.

What is a code audit, and how is it different from a code review?

A code review is a daily practice: a developer reads a colleague’s work before it is merged. A code audit is a one-off, independent mandate. It examines the code, the database and the hosting to inform a business decision: invest, acquire, rebuild or carry on.

What does the report delivered at the end of an audit contain?

A technical analysis report in four parts: the state of the technology (versions, end of support, database, grades by axis), the architecture findings, the improvement opportunities, then the comparison between keeping the software and rebuilding it, with a recommendation.

Every finding cites a file and a line, its severity and what is at stake for your operations. Management and the technical team can both read it.

How long does a code audit take?

Between one and four weeks in the vast majority of cases. The duration depends on the size of the codebase, the number of integrations and the depth requested. A scoping audit, meant to settle the fix-or-rebuild question, often wraps up in a week.

How much does a source code audit cost?

The price follows the effort, so the size and complexity of the system. It is a fixed-scope mandate: we agree on the perimeter and the deliverables before starting. The amount does not move afterwards. Compared with the cost of a rewrite launched on a bad assumption, it is often the most profitable spend of the project.

Which technologies can you audit?

We mainly audit PHP applications (Laravel, Symfony, CodeIgniter, Zend, CakePHP, framework-less code), JavaScript and TypeScript (Node, Vue, React), along with MySQL, MariaDB and PostgreSQL relational databases. Our technologies page details our coverage.

Do we have to give you access to the source code?

Yes: the audit rests on reading the code. We sign a non-disclosure agreement on request, before any access. We work on an isolated copy and destroy the copies at the end of the mandate. An anonymized database is enough in most cases.

Can you audit software built by another vendor?

That is in fact the most frequent case. Our independence is the value of the mandate: we did not write this code and we have nothing to defend. The report stays factual and belongs to you, including if you choose to stay with your current vendor.

Does an audit always lead to a rewrite?

No. A share of our audits conclude that the system is sound and that a few specific points simply need fixing. When a rewrite or a modernization is the right call, the report explains why, with numbers to back it.

What happens after the report is delivered?

You decide. You can hand the action plan to your internal team, to your current vendor, or ask us to carry it out under a support and maintenance mandate. The report is yours, with no obligation to continue.

Does a code audit replace a penetration test?

No, the two complement each other. A penetration test attacks the application from the outside and proves a flaw is exploitable. A code audit reads the inside and finds the structural weaknesses an attack has not reached yet. On sensitive systems, do both.

Is my code going to be judged or criticized?

The report describes the code, not the people. Software carries the constraints of its time: tight deadlines, needs that changed, tools that aged. Each notion is explained before it is assessed, and the report sticks to facts.

Your team can even use it to back the work it is already asking for.

Aren’t automated analysis tools enough?

They are essential for measuring: complexity, duplication, known flaws, versions at end of life. But a tool counts paths through the code without understanding what they mean. It sees neither a business rule written twice under two names nor a poorly thought-out permission.

So every finding in the report has been opened and read in the code. False alerts are dropped before writing.

Want to know what your code is really worth?

In 30 minutes, an expert pins down with you the decision to make, the access to plan for and how long the audit will take.

  • A 30-minute call with an expert, not a salesperson
  • A realistic budget estimate, backed by numbers
  • A concrete action plan, whether you work with us or not
Or write to us

Free. No commitment. Reply within 24 hours.

Names and figures shown in the interfaces are examples.