89% multiple-images-widget

Code Review | Multiple Images Widget

WordPress plugin Multiple Images Widget scored 89% from 54 tests.

About plugin

  • Plugin page: multiple-images-w...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4.2-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 13, 2018
  • Latest release: Mar 15, 2023
  • Number of updates: 16
  • Update frequency: every 97.1 days
  • Top authors: utsav72640 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 2,228 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.91ms] Passed 4 tests

Analyzing server-side resources used by Multiple Images Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0344.26 ▼1.79
Dashboard /wp-admin3.32 ▲0.0258.69 ▲2.11
Posts /wp-admin/edit.php3.37 ▲0.0245.49 ▼10.49
Add New Post /wp-admin/post-new.php5.92 ▲0.0496.58 ▼15.05
Media Library /wp-admin/upload.php3.24 ▲0.0236.14 ▼4.29

Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_miw_widget_multiple_images
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Multiple Images Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,889 ▲14313.89 ▼0.4911.99 ▲9.7752.31 ▼2.59
Dashboard /wp-admin2,205 ▲145.89 ▼0.02117.15 ▼16.1150.14 ▼4.36
Posts /wp-admin/edit.php2,094 ▲22.02 ▲0.0141.82 ▼7.9934.32 ▼9.96
Add New Post /wp-admin/post-new.php1,535 ▲221.10 ▼2.07704.03 ▼82.0360.66 ▼3.20
Media Library /wp-admin/upload.php1,390 ▲54.12 ▼0.08116.75 ▼10.1953.46 ▼4.99

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_miw_widget_multiple_images
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Add Multiple Images Widget Use Your Sidebar), #2 (Add Title, Add Image Link, Select Open Link In New Tab, Upload Your Image), #3 (New Image Section Add)
  • Donate link: Invalid URI found ("")
The official readme.txt might help

multiple-images-widget/multiple-image-widget.php 92% from 13 tests

This is the main PHP file of "Multiple Images Widget" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("multiple-images-widget.php" instead of "multiple-image-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin209 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP12430162
PO File1151546
JavaScript1011

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity41.00
▷ Minimum class complexity41.00
▷ Maximum class complexity41.00
Average method complexity6.71
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.40MB with 0.29MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png167.81KB47.36KB▼ 71.78%
screenshot-1.png99.44KB29.32KB▼ 70.52%
screenshot-2.png147.04KB42.32KB▼ 71.22%