Open full size The job
A pet food shop that sells by the gram. Most owners don't know how many grams their dog needs, or how long a bag will last. The shop wanted to answer both before the cart, and to be back in touch when the food runs low.
The feature
Pick dog or cat, then weight, age and activity. The page works out grams a day, and for every bag size how many days it lasts and the date it runs out. The size you pick follows you to the food list and the product page, so the price you see is the price for your pet.
Try it on the live site Drag the weight slider and watch the grams a day and the run-out date change.
The owner's side
After the order, the buyer can give the pet's weight. The shop then plans an email five days before each bag runs out. The owner sees every planned reminder on one screen, can preview it in the customer's language, and send it early.
Open full size
Open full size Two languages
English at the main address, Persian at /fa/, right to left, with the Persian calendar. Prices are stored once in euros and shown in Toman on the Persian side. No translation plugin: the site reads the language from the address.
Open full size How it's built
- A theme coded by hand: plain PHP, CSS and TypeScript
- Every feature in its own plugin, so a new theme won't break them
- WooCommerce changes that work in both the classic and the block checkout
- Scheduled emails, sent in the language the order was placed in
- Bag pictures drawn in code from each product's colours
- Fonts stored on the site: no Google requests, nothing to slow it down
The scores
- 96
- Speed
- 100
- Accessibility
- 100
- Best practices
- 100
- SEO
Google Lighthouse, phone setting, English home page, 29–30 Oct 2026. Out of 100.