wordpress

  • Ten years of a WordPress site, and what is left of the theme

    A theme that was 61 PHP templates in 2023 and is six block templates and a stylesheet. An audit rather than a problem.

  • An Interactivity API block, two years on

    A carousel converted from a bespoke script in 2024, revisited to see whether the conversion held. The runtime being loaded by somebody else’s plugin means the shared cost…

  • theme.json regenerated, and the check that has fired five times

    A generated file under version control, and the CI check that is the only thing keeping the generation meaningful. Five failures in four years, every one of them…

  • An autoloaded option audit that found nothing

    A monthly check that has failed twice in two years, reporting clean for the fourteenth consecutive month. A check that has stopped failing is either a solved problem…

  • A plugin that took over what the theme used to do

    A theme reduced to templates and styles, and functionality that moved into a plugin — which is where it belonged. The rule that fell out is that anything…

  • A plugin whose configuration is a filter

    Configuration as code, for a plugin that will never be distributed, and the test that covers it. Testing a filter is testing the contract rather than the implementation,…

  • A plugin with no admin screen

    A plugin whose entire configuration is a constant and a filter, on a site whose deployment is a pipeline.

  • The settings screen I did not build

    A plugin with three configuration values, deployed by a pipeline, and a settings screen that would have had one user. A settings screen exists so somebody without deployment…

  • A transient stampede on a cold cache

    A transient holding an expensive query result, expiring at a fixed time, and four hundred requests recomputing it simultaneously. The stale copy with a longer lifetime is what…

  • A plugin downgrade that was a version constraint

    A plugin update that broke a checkout flow, reverted by editing one line and running one command. A downgrade that is a version constraint and a redeploy is…