78% ultimate-image-hover-effects

Code Review | Ultimate Image Hover Effects

WordPress plugin Ultimate Image Hover Effects scored78%from 54 tests.

About plugin

  • Plugin page: ultimate-image-ho...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9
  • WordPress version: 6.3.1
  • First release: Dec 14, 2017
  • Latest release: Aug 22, 2018
  • Number of updates: 17
  • Update frequency: every 14.8 days
  • Top authors: themebon (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

80+ active /2,135 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.62MB] [CPU: ▲5.13ms] Passed 4 tests

This is a short check of server-side resources used by Ultimate Image Hover Effects
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.08 ▲0.6253.59 ▲13.61
Dashboard /wp-admin3.94 ▲0.6463.05 ▲8.37
Posts /wp-admin/edit.php3.98 ▲0.6363.85 ▲12.31
Add New Post /wp-admin/post-new.php6.51 ▲0.6390.74 ▼6.33
Media Library /wp-admin/upload.php3.83 ▲0.6143.54 ▲6.18
Hover Effects /wp-admin/edit.php?post_type=u_hover_effect3.9047.05
Add New /wp-admin/post-new.php?post_type=u_hover_effect3.8848.68

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ultimate Image Hover Effects
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,136 ▲39016.21 ▲1.838.39 ▲6.2141.77 ▼2.35
Dashboard /wp-admin2,423 ▲2357.04 ▲1.19138.27 ▲22.1338.89 ▼3.55
Posts /wp-admin/edit.php2,335 ▲2463.93 ▲1.8858.70 ▲22.3436.22 ▲1.73
Add New Post /wp-admin/post-new.php1,585 ▲5223.53 ▲0.43688.35 ▲7.7837.22 ▼16.21
Media Library /wp-admin/upload.php1,471 ▲864.75 ▲0.6293.38 ▼26.1246.87 ▼2.80
Hover Effects /wp-admin/edit.php?post_type=u_hover_effect1,3163.8653.5029.09
Add New /wp-admin/post-new.php?post_type=u_hover_effect10,2265.24148.0075.87

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/post-new.php?post_type=u_hover_effect
    • > Notice in wp-content/plugins/ultimate-image-hover-effects/admin/framework/classes/metabox.class.php+70
    Trying to access array offset on value of type bool

SRP 50% from 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
The following issues need your attention
  • 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/ultimate-image-hover-effects/admin/framework/fields/select/load.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
The official readme.txt is a good inspiration

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

This is the main PHP file of "Ultimate Image Hover Effects" version 1.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 183 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
No dangerous file extensions were detected44,870 lines of code in 86 files:
LanguageFilesBlank linesComment linesLines of code
JSON20017,050
CSS123388015,020
JavaScript101,0857994,601
SVG1002,671
PHP461,0909562,561
Sass634102,089
PO File7306334705
Markdown2240173

PHP code Passed 2 tests

Analyzing 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.56
Average class complexity14.03
▷ Minimum class complexity1.00
▷ Maximum class complexity94.00
Average method complexity5.17
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes32
▷ Abstract classes26.25%
▷ Concrete classes3093.75%
▷ Final classes00.00%
Methods100
▷ Static methods55.00%
▷ Public methods100100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions53
▷ Named functions53100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants12100.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
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/framework/assets/images/checkerboard.png2.29KB2.54KB0.00%
admin/framework/assets/images/chosen-sprite@2x.png0.72KB0.83KB0.00%
admin/framework/assets/images/chosen-sprite.png0.53KB0.88KB0.00%
admin/framework/fields/select/chosen-sprite.png0.53KB0.88KB0.00%