Specify Missing Image Dimensions
This plugin helps to add missing width and height attributes to images.
The facts
- Rating
- 4.5★ from 11
- Active installs
- 1k+
- Price
- Free
- Last updated
- 29 May 2022
- Added
- Mar 2021
- Requires WP
- 5.0
- Tested up to
- WP 6.0.14
- Requires PHP
- 5.3
- Downloads
- 16,540
Our analysis
AI-assistedSpecify Missing Image Dimensions is a WordPress plugin that adds missing width and height attributes to images on your site. It scans the HTML page to identify images lacking these attributes and uses the getimagesize() function to retrieve the necessary dimensions. This can help resolve errors related to image dimensions reported by Google PageSpeed Insights and improve Cumulative Layout Shift (CLS) during page rendering.
This plugin is suitable for website owners who want to enhance their site's performance and comply with web standards regarding image attributes. It is particularly useful for those concerned about page speed and layout stability.
Best for: Website owners looking to improve image handling and page speed.
What it does well
- ✓Adds missing width and height attributes to images
- ✓Improves Cumulative Layout Shift (CLS)
- ✓Excludes images by extension, name, class, or ID
- ✓Helps resolve Google PageSpeed Insights errors
Where it falls short
- •Limited information on additional features or functionality
Verdict
This plugin addresses a specific issue related to image dimensions, making it a practical choice for enhancing site performance.
From the developer
yasir129's own description of Specify Missing Image Dimensions, lightly tidied.
Specify Missing Image Dimensions is a WordPress plugin that helps to add missing width and height attributes to images. This plugin scans the entire HTML page and specify missing width and height to tags.
If you are seeing error like “Image elements do not have explicit width and height” on Google PageSpeed Insights then this plugin will help you to remove that error by adding missing width and height attributes to the required images.
By adding width and height to the images, Cumulative Layout Shift (CLS) also improves as there will be no more unwanted jumps while HTML page rendering.
How this Plugin Works
- Specify Missing Image Dimensions plugin scans the entire HTML page and finds images with missing width and height attributes.
- After finding the images, this plugin gets the image dimensions using getimagesize() function.
- After getting the required dimensions, plugin adds the width and height attributes to the images.
Features
- Exclude images by image extension
- Exclude images by image Name
- Exclude images by class
- Exclude images by ID