84% imageboss

Code Review | ImageBoss - Images Up To 60% Smaller & CDN

WordPress plugin ImageBoss - Images Up To 60% Smaller & CDN scored84%from 54 tests.

About plugin

  • Plugin page: imageboss
  • Plugin version: 5.0.0
  • PHP compatiblity: 5.3.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Nov 10, 2018
  • Latest release: Aug 23, 2023
  • Number of updates: 118
  • Update frequency: every 14.8 days
  • Top authors: igorescobar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /9,695 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.79ms] Passed 4 tests

An overview of server-side resources used by ImageBoss - Images Up To 60% Smaller & CDN
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0146.47 ▲4.35
Dashboard /wp-admin3.32 ▲0.0154.75 ▼0.78
Posts /wp-admin/edit.php3.37 ▲0.0154.45 ▲2.45
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.51 ▼12.86
Media Library /wp-admin/upload.php3.24 ▲0.0142.75 ▲0.05

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

ImageBoss - Images Up To 60% Smaller & CDN: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.34 ▼0.031.75 ▲0.1144.95 ▲1.03
Dashboard /wp-admin2,211 ▲315.61 ▼0.06108.99 ▲16.7142.57 ▼3.16
Posts /wp-admin/edit.php2,116 ▲162.03 ▲0.0536.09 ▼0.8232.35 ▼4.18
Add New Post /wp-admin/post-new.php1,422 ▼10417.60 ▼5.53720.06 ▲13.5651.13 ▼1.07
Media Library /wp-admin/upload.php1,419 ▲224.19 ▼0.02104.36 ▼11.8747.55 ▼0.80

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 were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 10× 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/imageboss/admin/includes/menu-customization.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/imageboss/admin/includes/add-media-widget-customization.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/imageboss/uninstall.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/imageboss/admin/includes/assets-setup.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/imageboss/admin/includes/settings-group.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/imageboss/admin/imageboss-admin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/imageboss/public/imageboss-public.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/imageboss/admin/includes/plugin-actionlinks.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/imageboss/imageboss.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/imageboss/admin/includes/plugin-activation.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Add descriptions for screenshots #1, #2, #3 in imageboss/assets to your readme.txt
The official readme.txt is a good inspiration

imageboss/imageboss.php Passed 13 tests

The main file in "ImageBoss - Images Up To 60% Smaller & CDN" v. 5.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
31 characters long description:
Images Up To 60% Smaller & CDN.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected497 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP137012385
JavaScript419184
CSS20028

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions29
▷ Named functions2482.76%
▷ Anonymous functions517.24%
Constants2
▷ Global constants2100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
logo.png1.86KB1.53KB▼ 17.88%