84% display-all-image-sizes

Code Review | Display All Image Sizes

WordPress plugin Display All Image Sizes scored84%from 54 tests.

About plugin

  • Plugin page: display-all-image...
  • Plugin version: 1.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.7.4
  • WordPress version: 6.3.1
  • First release: May 29, 2015
  • Latest release: May 4, 2017
  • Number of updates: 18
  • Update frequency: every 39.2 days
  • Top authors: pressupinc (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

2,000+ active /23,766 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Display All Image Sizes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.26 ▼5.51
Dashboard /wp-admin3.32 ▲0.0243.98 ▼4.62
Posts /wp-admin/edit.php3.37 ▲0.0245.51 ▼4.95
Add New Post /wp-admin/post-new.php5.92 ▲0.0484.13 ▼11.05
Media Library /wp-admin/upload.php3.24 ▲0.0237.89 ▲4.04

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Display All Image Sizes
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.64 ▼0.951.52 ▼0.2539.43 ▼6.31
Dashboard /wp-admin2,210 ▲194.90 ▼0.01110.01 ▼7.9041.87 ▼7.92
Posts /wp-admin/edit.php2,093 ▲12.02 ▲0.0338.77 ▼2.9634.41 ▼5.67
Add New Post /wp-admin/post-new.php1,518 ▼123.17 ▲0.06595.11 ▼97.8055.41 ▲8.78
Media Library /wp-admin/upload.php1,386 ▼54.27 ▲0.0499.80 ▼2.6142.00 ▼0.77

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/display-all-image-sizes/display-all-image-sizes.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: different image sizes, attachment sizes, thumbnails, view image size links, picture sizes...

display-all-image-sizes/display-all-image-sizes.php 92% from 13 tests

"Display All Image Sizes" version 1.1.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 161 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin121 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1281973
CSS17025
JavaScript110223

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin