We run a mobile accessories shop in Lahore, mobilegeeks.pk , on WordPress and WooCommerce. Like most shop owners, we converted our product photos to WebP and expected PageSpeed Insights to stop complaining about images.
It didn't. Some images were still listed under "Improve image delivery" , even though they were already WebP. This time the advice was "increase the compression".
So we read the code that makes the decision, wrote down the rules, and built two free things from them:
Lighthouse Image Check , a browser tool: drop an image in and it tells you if PageSpeed will flag it, then makes a copy that passes. Nothing is uploaded. https://www.mobilegeeks.pk/lighthouse-image-check/ ( code, MIT )
MG Image Optimizer , a WordPress plugin that applies the same rule to every image on a site, on your own server.…