This plugin helps to add missing width and height attributes to images.
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.
Search for “Specify Missing Image Dimensions” under “Plugins”
“Add New” in your WordPress dashboard to install the plugin.Or install it manually:
Once this plugin assigns missing width and height attributes to required images, there will be no more unwanted jumps while page rendering. Adding missing width and height attributes also help to improve scores on website speed tools such as Google’s PageSpeed and GTmetrix
Yes, if the SVG are added using tag, then this plugin will work fine for them.
But if you see some issues with SVG or any other type of images, you can exclude SVG using plugin’s option.