78% image-hover-effects-ultimate

Code Review | Image Hover Effects Ultimate (Image Gallery, Effects, Lightbox, Comparison or Magnifier)

WordPress plugin Image Hover Effects Ultimate (Image Gallery, Effects, Lightbox, Comparison or Magnifier) scored78%from 54 tests.

About plugin

  • Plugin page: image-hover-effec...
  • Plugin version: 9.9.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.4.1
  • WordPress version: 6.3.1
  • First release: Aug 6, 2016
  • Latest release: Nov 19, 2023
  • Number of updates: 146
  • Update frequency: every 18.3 days
  • Top authors: biplob018 (100%)

Code review

54 tests

User reviews

218 reviews

Install metrics

20,000+ active /540,816 total downloads

Benchmarks

Plugin footprint 64% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.03ms] 75% from 4 tests

This is a short check of server-side resources used by Image Hover Effects Ultimate (Image Gallery, Effects, Lightbox, Comparison or Magnifier)
Please take the time to fix the following items
  • CPU: Total CPU usage must kept under 500.00ms (currently 675.29ms on /wp-admin/admin.php?page=oxi-image-hover-ultimate-addons)
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0533.30 ▼6.92
Dashboard /wp-admin3.35 ▲0.0545.54 ▼4.13
Posts /wp-admin/edit.php3.47 ▲0.1149.25 ▼0.10
Add New Post /wp-admin/post-new.php5.94 ▲0.0581.76 ▼8.97
Media Library /wp-admin/upload.php3.28 ▲0.0538.81 ▲4.11
Shortcode /wp-admin/admin.php?page=oxi-image-hover-shortcode3.3536.44
Image Hover /wp-admin/admin.php?page=oxi-image-hover-ultimate3.3133.38
Support /wp-admin/admin.php?page=image-hover-ultimate-support3.2838.05
Settings /wp-admin/admin.php?page=oxi-image-hover-ultimate-settings3.3574.37
Oxilab Addons /wp-admin/admin.php?page=oxi-image-hover-ultimate-addons3.31675.29

Server storage [IO: ▲28.14MB] [DB: ▲0.01MB] 67% from 3 tests

Filesystem and database footprint
Just a few items left to fix
  • Filesystem usage must be lower than 25MB (currently using 28.14MB)
Filesystem: 975 new files
Database: 3 new tables, 10 new options
New tables
wp_image_hover_ultimate_style
wp_oxi_div_import
wp_image_hover_ultimate_list
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_iheu_widget
image_hover_ultimate_update_complete
oxi_image_hover_version
db_upgraded
oxi_image_hover_activation_date
widget_theysaidso_widget

Browser metrics Passed 4 tests

Image Hover Effects Ultimate (Image Gallery, Effects, Lightbox, Comparison or Magnifier): an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲7014.41 ▼0.291.63 ▼0.0536.21 ▼10.00
Dashboard /wp-admin2,237 ▲575.62 ▼0.0586.52 ▼12.6641.54 ▼5.02
Posts /wp-admin/edit.php2,142 ▲421.97 ▼0.0039.82 ▼1.0536.81 ▲3.68
Add New Post /wp-admin/post-new.php1,560 ▲2523.04 ▼2.28684.23 ▲24.0761.54 ▼2.73
Media Library /wp-admin/upload.php1,442 ▲424.16 ▲0.0196.86 ▼8.0144.26 ▲0.13
Shortcode /wp-admin/admin.php?page=oxi-image-hover-shortcode1,4142.6966.98148.24
Image Hover /wp-admin/admin.php?page=oxi-image-hover-ultimate1,2252.2835.47226.83
Support /wp-admin/admin.php?page=image-hover-ultimate-support1,6158.96302.44161.55
Settings /wp-admin/admin.php?page=oxi-image-hover-ultimate-settings1,2741.8329.8740.86
Oxilab Addons /wp-admin/admin.php?page=oxi-image-hover-ultimate-addons1,1751.9728.2565.54

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 3 tables in the database
    • wp_oxi_div_import
    • wp_image_hover_ultimate_style
    • wp_image_hover_ultimate_list
  • Zombie WordPress options were found after uninstall: 10 options
    • theysaidso_admin_options
    • image_hover_ultimate_update_complete
    • widget_theysaidso_widget
    • can_compress_scripts
    • oxi_image_hover_version
    • widget_recent-comments
    • oxi_image_hover_activation_date
    • widget_recent-posts
    • widget_iheu_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

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)
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed: The official readme.txt is a good inspiration

image-hover-effects-ultimate/index.php 77% from 13 tests

The principal PHP file in "Image Hover Effects Ultimate (Image Gallery, Effects, Lightbox, Comparison or Magnifier)" v. 9.9.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Plugin Name: Keep the plugin name shorter than 70 characters (currently 88 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("image-hover-effects-ultimate.php" instead of "index.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 219 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin112,524 lines of code in 939 files:
LanguageFilesBlank linesComment linesLines of code
PHP3314,3973,07762,323
CSS1601,96610926,557
JavaScript391,68334514,303
SVG40128,936
JSON40500405

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity9.17
▷ Minimum class complexity1.00
▷ Maximum class complexity353.00
Average method complexity3.30
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces39
Interfaces0
Traits7
Classes322
▷ Abstract classes10.31%
▷ Concrete classes32199.69%
▷ Final classes00.00%
Methods1,171
▷ Static methods40.34%
▷ Public methods1,16899.74%
▷ Protected methods10.09%
▷ Private methods20.17%
Functions5
▷ Named functions00.00%
▷ Anonymous functions5100.00%
Constants54
▷ Global constants611.11%
▷ Class constants4888.89%
▷ Public constants48100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
11 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
Modules/Lightbox/img/youtube-play.png5.06KB2.37KB▼ 53.04%
assets/backend/js/img/trans_bg.png0.08KB0.09KB0.00%
assets/backend/js/img/jquery.minicolors.png67.02KB34.31KB▼ 48.80%
assets/backend/css/icon-close-white.png1.07KB0.26KB▼ 75.82%
assets/backend/css/icon-close-black.png1.08KB0.26KB▼ 75.88%