68% ultimate-hover-effects

Code Review | Ultimate Hover Effects

WordPress plugin Ultimate Hover Effects scored68%from 54 tests.

About plugin

  • Plugin page: ultimate-hover-ef...
  • Plugin version: 2.9.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8
  • WordPress version: 6.3.1
  • First release: Apr 21, 2015
  • Latest release: Jul 26, 2021
  • Number of updates: 293
  • Update frequency: every 7.8 days
  • Top authors: wpeffects (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

800+ active /67,364 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼1.10MB] [CPU: ▼37.11ms] Passed 4 tests

Server-side resources used by Ultimate Hover Effects
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1338.01 ▼3.32
Dashboard /wp-admin2.85 ▼0.4616.88 ▼29.88
Posts /wp-admin/edit.php2.85 ▼0.5117.49 ▼29.78
Add New Post /wp-admin/post-new.php2.85 ▼3.0417.84 ▼73.92
Media Library /wp-admin/upload.php2.85 ▼0.3816.92 ▼14.86
Hover Effects /wp-admin/edit.php?post_type=u_hover_effect2.8518.53
Add New /wp-admin/post-new.php?post_type=u_hover_effect2.8517.74

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 347 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Ultimate Hover Effects: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,959 ▲21313.73 ▼0.6512.97 ▲11.0042.50 ▼1.45
Dashboard /wp-admin2,244 ▲565.90 ▲0.0999.61 ▼18.3137.63 ▼9.54
Posts /wp-admin/edit.php2,127 ▲382.19 ▲0.1536.11 ▲0.6333.33 ▼1.71
Add New Post /wp-admin/post-new.php1,544 ▲817.53 ▼5.59673.34 ▲32.4158.93 ▼4.24
Media Library /wp-admin/upload.php1,429 ▲414.47 ▲0.3395.17 ▼5.1843.48 ▲1.73
Hover Effects /wp-admin/edit.php?post_type=u_hover_effect1,1082.0438.7731.39
Add New /wp-admin/post-new.php?post_type=u_hover_effect11,1334.5997.4543.84

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/ultimate-hover-effects/admin/cmb2/example-functions.php+410
    Use of undefined constant s - assumed 's' (this will throw an Error in a future version of PHP)
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=u_hover_effect
    • > Warning in wp-content/plugins/ultimate-hover-effects/admin/cmb2/example-functions.php+410
    Use of undefined constant s - assumed 's' (this will throw an Error in a future version of PHP)

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
The following issues need your attention
  • 38× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/ultimate-hover-effects/admin/cmb2/includes/types/CMB2_Type_Wysiwyg.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/ultimate-hover-effects/admin/cmb2/includes/types/CMB2_Type_Taxonomy_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/ultimate-hover-effects/admin/cmb2/includes/types/CMB2_Type_File.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/ultimate-hover-effects/admin/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp_Timezone.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function cmb2_dir() in wp-content/plugins/ultimate-hover-effects/admin/cmb2/includes/rest-api/CMB2_REST_Controller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/ultimate-hover-effects/admin/cmb2/includes/types/CMB2_Type_Title.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_REST_Controller_Boxes' not found in wp-content/plugins/ultimate-hover-effects/admin/cmb2/includes/rest-api/CMB2_REST_Controller_Fields.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/ultimate-hover-effects/admin/cmb2/includes/CMB2_Field.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/ultimate-hover-effects/admin/cmb2/includes/types/CMB2_Type_Colorpicker.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_hookup' not found in wp-content/plugins/ultimate-hover-effects/admin/cmb2/includes/CMB2_Options_Hookup.php:14

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 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
These attributes need to be fixed:
  • Tags: You are using too many tags: 16 tag instead of maximum 10
The official readme.txt is a good inspiration

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

Analyzing the main PHP file in "Ultimate Hover Effects" version 2.9.4
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: Keep the plugin description shorter than 140 characters (currently 177 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin58,249 lines of code in 204 files:
LanguageFilesBlank linesComment linesLines of code
PO File12014,31518,50232,323
CSS171,3391,14816,207
PHP572,1115,9987,707
JavaScript83275041,380
Markdown22140632

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity18.56
▷ Minimum class complexity1.00
▷ Maximum class complexity183.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes66
▷ Abstract classes812.12%
▷ Concrete classes5887.88%
▷ Final classes00.00%
Methods519
▷ Static methods8616.57%
▷ Public methods42882.47%
▷ Protected methods8816.96%
▷ Private methods30.58%
Functions36
▷ Named functions36100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants333.33%
▷ Class constants666.67%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%
admin/cmb2/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
admin/cmb2/images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%
admin/cmb2/images/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%
admin/cmb2/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%