Specify Missing Image Dimensions

This plugin helps to add missing width and height attributes to images.

Author:WPHowKnow (profile at wordpress.org)
WordPress version required:5.0
WordPress version tested:6.0
Plugin version:1.0.2
Added to WordPress repository:18-03-2021
Last updated:29-05-2022
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:90
Rated by:11
Plugin URI:
Total downloads:12 384
Active installs:2 000+
plugin download
Click to start download

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

  1. Specify Missing Image Dimensions plugin scans the entire HTML page and finds images with missing width and height attributes.
  2. After finding the images, this plugin gets the image dimensions using getimagesize() function.
  3. 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

Screenshots
FAQ
ChangeLog