WebP Express
By rosell.dk
Description
More than 9 out of 10 users are using a browser that is able to display webp images. Yet, on most websites, they are served jpeg images, which are typically double the size of webp images for a given quality. What a waste of bandwidth! This plugin was created to help remedy that situation. With little effort, WordPress admins can have their site serving autogenerated webp images to browsers that supports it, while still serving jpeg and png files to browsers that does not support webp.
The plugin uses the WebP Convert library to convert images to webp. WebP Convert is able to convert images using multiple methods. There are the local conversion methods: imagick, cwebp, vips, gd. If none of these works on your host, there are the cloud alternatives: ewww (paid) or connecting to a WordPress site where you got WebP Express installed and you enabled the web service functionality.
The plugin supports different ways of delivering webps to browsers that supports it: By routing jpeg/png images to the corresponding webp or to the image converter if the image hasn't been converted yet. By altering the HTML, replacing image tags with picture tags. Missing webps are auto generated upon visit. By altering the HTML, replacing image URLs so all points to webp. The replacements only being made for browsers that supports webp. Again, missing webps are auto generated upon visit. In combination with Cache Enabler, the same as above can be achieved, but with page caching. You can also deliver webp to all browsers and add the webpjs javascript, which provides webp support for browsers that doesn’t support webp natively. However, beware that the javascript doesn’t support srcset attributes, which is why I haven’t added that method to the plugin yet.
The plugin implements the WebP On Demand solution and builds on a bunch of open source libraries. Benefits include much faster load time for images in browsers that supports webp, better user experience, better ranking in Google searches, and less bandwidth consumption. It is great for the environment too, reducing network traffic reduces electricity consumption which reduces CO2 emissions.
Limitations include that the plugin should now work on Microsoft IIS server, but it has not been tested thoroughly.
Other Notable Features
Here are a few other notable features of this free WebP Express plugin.
Screenshots
FAQ
Verifying that the plugin works in “Varied image responses” mode
1. Make sure at least one of the conversion methods are working. It should have a green checkmark next to it.
2. If you haven’t saved yet, click “Save settings”. This will put redirection rules into .htaccess files in the relevant directories (typically in uploads, themes and wp-content/webp-express/webp-images, depending on the “Scope” setting)
3. I assume that you checked at least one of the checkboxes in the .htaccess rules section – otherwise you might as well change to “CDN friendly” mode. The first
4. Click the “Live test” buttons to see that the enabled rules actually are working. If they are not, it could be that the server needs a little time to recognize the changed rules.
The live tests are quite thorough and I recommend them over a manual test. However, it doesn’t hurt to do a manual inspection too.
Doing a manual inspection
Note that when WebP Express is serving varied image responses, the image URLs still points to the jpg/png. If the URL is visited using a browser that supports webp, however, the response will be a webp image. So there is a mismatch between the file extension (the filename ends with “jpg” or “png”) and the file type. But luckily, the browser does not rely on the extension to determine the file type, it only looks at the Content-Type response header.
To verify that the plugin is working (without clicking the test button), do the following:
- Open the page in a browser that supports webp, ie Google Chrome
- Right-click the page and choose “Inspect”
- Click the “Network” tab
- Reload the page
- Find a jpeg or png image in the list. In the “type” column, it should say “webp”
You can also look at the headers. When WebP Express has redirected to an existing webp, there will be a “X-WebP-Express” header with the following value: “Redirected directly to existing webp”. If there isn’t (and you have checked “Enable redirection to converter”), you should see a “WebP-Convert-Log” header (WebP-Express uses the WebP Convert for conversions).
Contributors and developers
“WebP Express” is open source software. The following people have contributed to this plugin.
WPS
6.56
Average
Ratings
4.4 out of 5 | 160Version
0.25.14Last updated
2 weeks agoActive installations
300,000+WordPress version
6.9 or higherPHP version
5.6 or higherLanguages
27Tags
Images,Performance,WebpOther plugins you might like
LiteSpeed Cache
By LiteSpeed Technologies
WPS
7.46
Very Good
2.7k+reviews
active installation
Tested with
6.9W3 Total Cache
By BoldGrid
WPS
7.03
Very Good
5.4k+reviews
active installation
Tested with
6.9Image Optimizer – Optimize Images and Convert to WebP or AVIF
By Elementor
WPS
7.07
Very Good
67+reviews
active installation
Tested with
6.9EWWW Image Optimizer
By nosilver4u
WPS
7.36
Very Good
1.8k+reviews
active installation
Tested with
6.9Smush Image Optimization – Optimize Images | Compress & Lazy Load Images | Convert WebP & AVIF | Image CDN
By WPMU DEV - Your All-in-One WordPress Platform
WPS
8.11
Very Good
6k+reviews
active installation
Tested with
6.9WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance
By David Anderson / Team Updraft
WPS
7.32
Very Good
2.5k+reviews
active installation
Tested with
6.9