Back to projects

Umbralix, 2026

Four stores, faster and tested

Performance, queries and automated tests for four Laravel stores that started as copies of the same code.

Performance4 STORES,FASTERLaravel, Livewire and PHPUnitLighthouse30Before60AfterHome page weight13 MB4.8 MB

Measured results

  • before: 30after: 60

    Mobile Lighthouse on one home page

  • before: 13 MBafter: 4.8 MB

    Weight of the heaviest home page

  • before: 131after: 5,967

    Test cases, stores and integration

  • before: 498 KBafter: 180 KB

    Main JavaScript bundle (app.js)

The problem

The four stores sell diagnostic and reprogramming software for workshops, heavy vehicles and machinery. They started as copies of the same code and drifted apart: a fix reached one store and not the others. The mobile Lighthouse score of their home pages ranged from 30 to 54, and each store had 15 or 16 test files.

What I did

  • I analysed the code of all four: 57 findings, 14 of them high priority, and 34 fixes that had only reached one store. I turned that into a delivery plan, and in two weeks we shipped 36 user stories to all four at once.
  • I measured performance with Lighthouse in production and in testing, on mobile and desktop, three runs per page. I reserved space for sliders and carousels, moved images to WebP, kept Chart.js only in the admin panel and removed lodash and axios, which were unused.
  • I merged into a single load the data that pages requested card by card. The exchange rate is now read once per page instead of about 25 times.
  • Before every release I check the changes against a copy of production. That’s how I caught a store page going from 2.7 to 44 seconds, and it was fixed before shipping.
  • I wrote 1,062 of the 1,128 test files the stores and their integration have today.

Result

In production since 12 November 2026. One store went from 30 to 60 on mobile and from 46 to 76 on desktop, and its layout shift dropped from 1.26 to 0.02. Another went from 47 to 57 on mobile. The heaviest home page went from 13 to 4.8 MB. Database queries on one home page dropped from 60 to 33, a change that is still in testing.

Next project

IntegrationDATASYNCOne ERP and 4 stores, in syncERPStore 1Store 2Store 3Store 4CataloguePricesImagesPromos

Layers: Backend

DataSync: one ERP, four stores, in sync

The Laravel API that carries catalogue, prices, images and promotions from the ERP to four online stores.