Check That Visitors Get WebP Images with Robin and AI
Robin's WebP delivery test run and explained, with the WebP settings, the images still missing a WebP copy and how to confirm it on a page.
Prerequisites
A site connected to WPVibe running Robin Image Optimizer 2.1 or newer (tested on 2.1.2, free) on WordPress 6.9 or newer, with an administrator account.
My WordPress site uses Robin Image Optimizer. Check that visitors get WebP images. 1. Run discover_abilities with category robin-image-optimizer. If the abilities this needs are not there, stop and tell me to install or update the free Robin Image Optimizer plugin (2.1 or newer, on WordPress 6.9 or newer). 2. Run robin/get-optimization-policy. Tell me whether WebP copies are made (convert_webp) and how visitors get them (delivery_mode: picture wraps images in picture tags on the page, url rewrites the image addresses, redirect lets the server pick the format: on Apache Robin writes the rules to .htaccess, on nginx the site owner adds the rules shown in Settings, and on other servers picture is used). 3. If convert_webp is false, tell me no WebP copies are made, so there is nothing to deliver. Tell me it is turned on in Settings in the Robin Image Optimizer menu, and do not turn it on yourself. Tell me it applies to images optimized from then on, that images already optimized get their WebP copy from a run on the Optimize page in the Robin Image Optimizer menu, and, if delivery_mode is picture, that the image markup on every page changes to picture tags once copies exist, so I should check one page afterwards; if delivery_mode is redirect, on Apache turning it on writes rules to the .htaccess file, and on nginx I must add the rules shown in Settings myself. Then stop. 4. Run robin/get-stats with scope media-library and tell me how many images have a WebP copy (webp_made) and how many optimized images still have none (needs_webp). If needs_webp is above 0, tell me those get their copy from the Optimize page in the Robin Image Optimizer menu. 5. Run robin/test-delivery. If it returns an error, tell me its message and stop. For each entry in results, tell me its format, whether it passed (status), its summary and facts, and any causes in plain words. If it did not pass, give me the one most likely fix from the causes. 6. Tell me the test checks the files, not the page markup, and ran from my own server, so a CDN or cache in front of the site (the cache value in requests shows one) can still answer visitors differently, and that I can check one page in my browser's developer tools (the Network tab shows the image type). Change nothing.
Skip pasting the full prompt. Drop this into your AI on a site that already has WPVibe:
Run the “Check That Visitors Get WebP Images with Robin and AI” recipe from the WPVibe cookbook on my connected site.
You turned on WebP to make pages lighter, but nothing tells you whether it is working. Images optimized before you turned it on have no WebP copy, a server or cache can serve the files with the wrong type, and speed tests keep flagging your images.
The AI reads Robin Image Optimizer’s WebP settings and counts, then runs Robin’s delivery test, which places test files on your site and requests them the way a browser would, to check that your server serves WebP files correctly. It explains the result, the likely cause when it fails, and how many images still have no WebP copy.
The test files are deleted right after the test. The test checks the files, not the page markup that links them, and it runs from your own server, so a CDN or cache in front of the site can answer visitors differently: checking one page in your browser is what confirms it. The AI changes nothing: if WebP is off, it tells you where to turn it on and what that changes.
Outcome
You know whether your server serves the WebP files correctly, why not if it doesn't, how many images still need a WebP copy, and how to confirm a page uses them.