這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Specify Missing Image Dimensions

外掛說明

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

螢幕擷圖

  • Access “Specify Missing Image Dimensions” Settings Page
  • “Specify Missing Image Dimensions” Settings Page

安裝方式

Search for “Specify Missing Image Dimensions” under “Plugins” “Add New” in your WordPress dashboard to install the plugin.

Or install it manually:

  1. Download the plugin’s zip file.
  2. Go to Plugins Add New in your WordPress admin.
  3. Click on the Upload Plugin button.
  4. Select the file you downloaded.
  5. Click Install Plugin.
  6. Activate.

常見問題集

Why this plugin is important?

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

Does this plugin also works for SVG?

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.

使用者評論

2023 年 1 月 5 日
It doesn’t need much configuration, yet it works like magic. Thank you for this plugin. The CLS of the website is much better now.
2022 年 1 月 18 日
Improved by CLS from 0.26 to 0.0004 with no effort! Using with Divi theme which is very heavy, so any improvement is good.
2021 年 10 月 10 日
After install this plugin, my website speed was improved a lot, thank you! Just please keep this plugin updated as quick as you can.
2021 年 8 月 3 日
Junk. Fix your product! I wasted 2 days trying to figure out why my entire site was absurdly slow and why my Wordpress admin kept getting “504 Gateway Timeout” errors that made it entirely unusable! I installed this thing to speed up my site, and you made it 100 times slower . . . and unusable! Great job! I couldn’t even load the plugins page to deactivate plugins one-by-one to identify the culprit. I had to rename each plugin folder via FTP in order to disable each plugin. As soon as I disable “Specify Missing Image Dimensions,” the problem goes away! REMOVE THIS HARMFUL PLUGIN!
閱讀全部 10 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Specify Missing Image Dimensions〉的開發相關工作。

參與者

變更記錄

1.0.2

  • Handled running of plugin’s functionality at backend (wp-admin)

1.0.1

  • Handled Error causing by SVG images

1.0.0

  • Initial release