1Just Press Update?

"Just upgrade PHP, press the update button and fix any bugs." Conversations about WordPress upgrades sometimes start this way.

The admin screen has an update button, and pressing it gives you the new version. It is natural for this to look easy.

For a site that has gone without updates or maintenance for a long time, however, an update becomes system modification work.

The imagined job
  1. Upgrade PHP
  2. Press the update button
  3. Fix any bugs
The actual job
  1. Analyze the source code and database
  2. Study the updated core, theme and plugins
  3. Build a test environment
  4. Check compatibility and modify
  5. Verify data and screens
  6. Release to production
The update button is only a small part of the real job.

2A System Made of Many Parts

A WordPress site is not just the core. A theme for the look, plugins for features and project-specific customizations all run on top of one another, and they often come from different developers.

A conceptual view. Upgrading PHP affects every part stacked on top of it.

Sites that have gone without updates or maintenance for a long time often look like this.

No design documents
Nothing remains that describes how the whole site is built
Unknown dependencies
No one knows which plugin or theme relies on which
Unsupported parts
Abandoned plugins and libraries are still in use
Customizations without history
No one knows who changed what, or why. The person in charge is gone
No test specification
There is no standard for what "working correctly" means

At that point it is, in effect, a large legacy system.

3The Database Alone Cannot Tell You What the Data Is For

The tables provided by WordPress core are general-purpose ones for posts, settings and so on. Plugins can store their own metadata in them or add tables of their own.

Data mixed into core tables
wp_postsPosts and pagesBookingsInquiries
wp_postmetaPost metadataTheme fieldsProduct data
wp_optionsSite settingsPlugin settings
Tables added by plugins
wp_xxx_membersMembership plugin
wp_yyy_logsForm plugin
wp_zzz_dataPurpose unknown
How data tends to be stored. Added table names are illustrative.

A single setting value may even hold a large amount of information as a PHP array converted to a string (serialized). Table definitions alone do not reveal the logical structure of the data.

Which data is used by which feature only becomes clear by tracing the code.

4Diagnosis Has to Cover the "After" State

With a custom-built PHP system, analyzing the current source code gives a fair idea of the scope, because it can be compared against the changes in PHP.

That is not enough for WordPress. Core, theme and plugins all change when updated.

Custom PHP system
Current source codePHP changesScope of work
WordPress
Current core, theme, pluginsData structureUpdated core, theme, pluginsRemoved features and changesCompatibility between partsScope of work
The purple items cannot be known without studying the updated state first.

The look of the site, the number of pages and a list of plugins cannot identify what will be affected. Without investigation, even a rough estimate is hard to give.

The investigation needed for an estimate is itself system analysis work.

5Summary

WordPress is easy to start. A site that has had parts added and has been run for years does not stay easy.

Behind the update button is an entire system.

The longer an update is postponed, the larger the differences to investigate. Even just listing the parts currently running is a useful next step.

PHP support deadlines and upgrade costs are covered in How Long Can a Laravel PHP System Last?

Updating a long-running WordPress site can turn into a major system overhaul.
And it can cost more than you might expect… 🥴