Sandi Verdev

Case studies Legacy PHP made faster, safer and easier to change

Short project stories: the problem, what I did and what changed. Four come from 12 years on a large multi-tenant PHP platform; the rest are client work and recent AI projects.

Short on time? Start withPush-job memoryLegacy refactoringWooCommerce cache

Those three are the ones I'd show first. I circled their numbers below.

FirstBeatMedia · 2012–2024

One platform, 1,300+ sites

  1. 9 GB to 4 GB peak RAM of the job (−56%)

    Each user's objects freed as soon as their notification was built.

    Push-notification job: 56% less RAM

    FirstBeatMedia · Senior PHP Backend Engineer · Feb – Mar 2024

    A cron job that the kernel's out-of-memory killer kept stopping mid-run, so notifications were not sent.

    Read the case →
  2. 98%test coverage before it took traffic

    Rewriting core search behind tests

    FirstBeatMedia · Full Stack PHP Engineer · Oct 2012 – Jun 2014

    Built next to the old search, then switched with a fallback. Also capped the city lookup: 10k+ → 150 rows.

    Read the case →
  3. 15+ languagesfrom an English-only UI

    Legacy UI to 15+ languages

    FirstBeatMedia · Full Stack PHP Engineer · Feb – Dec 2013

    Text hard-coded in templates, baked into images or mixed with HTML, moved out in 10 months from the first ticket.

    Read the case →
  4. 150 to 3 phpmd violations (−98%)

    About 20 classes, one per ticket.

    Static-analysis refactoring of legacy PHP

    FirstBeatMedia · Senior PHP Backend Engineer · Apr – Aug 2018

    Long, branchy methods behind matching, notifications and search, one class per ticket, with the tests kept green.

    Read the case →

Client work

WooCommerce shops

  1. 21–22% to 86–90% product views served from cache

    Cached pages now load in 0.27 s, and most pages stay cached for hours.

    WooCommerce: cache that survives orders

    macjamati.si · WooCommerce shop · Oct – Nov 2026

    Every order cleared all ~440 product pages at once. Now a page clears only when something it shows changes.

    Read the case →
  2. 4 daysfrom design doc to a working plugin

    Multishop Sync for WooCommerce

    macjamati.si · WooCommerce plugin · Oct 2026

    Two shops on one stock, without overwriting translations. 483 products transferred.

    Read the case →

AI and own projects

Speech and an open-source plugin

  1. Up to 3languages per lesson

    Lesson Transcriber

    Own project · Python, FastAPI, GPU · Oct – Nov 2026

    Lessons that mix Slovenian, Italian and English, turned into speaker-labeled transcripts. 4 lessons, about 7 hours, so far.

    Read the case →
  2. 170k+downloads since 2010

    Modernizing a 2010 WordPress plugin

    Own open-source plugin · WordPress.org · Dec 2025

    CSRF and XSS fixed, coding standards and translations added, tested up to WordPress 6.9.

    Read the case →

If you have a PHP system that has become hard to change, I'd like to hear about it.