10% exclusive-hover-effects

Code Review | Exclusive Hover effects

WordPress plugin Exclusive Hover effects scored 10% from 54 tests.

About plugin

  • Plugin page: exclusive-hover-e...
  • Plugin version: 2.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6.1
  • WordPress version: 6.3.1
  • First release: Aug 19, 2015
  • Latest release: Sep 20, 2016
  • Number of updates: 50
  • Update frequency: every 8.0 days
  • Top authors: Prince Chowdhury (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 3,795 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/exclusive-hover-effects/framework/includes/wpalchemy/MetaBox.php+61
    Methods with the same name as their class will not be constructors in a future version of PHP; WPAlchemy_MetaBox has a deprecated constructor

Server metrics [RAM: ▲0.14MB] [CPU: ▲0.38ms] Passed 4 tests

Analyzing server-side resources used by Exclusive Hover effects
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1445.47 ▲5.31
Dashboard /wp-admin3.47 ▲0.1645.88 ▼0.54
Posts /wp-admin/edit.php3.52 ▲0.1643.05 ▼3.31
Add New Post /wp-admin/post-new.php6.16 ▲0.2790.14 ▲0.05
Media Library /wp-admin/upload.php3.33 ▲0.1041.24 ▲7.76
Add New /wp-admin/post-new.php?post_type=exclusiveffects3.5549.49
exeffects Category /wp-admin/edit-tags.php?taxonomy=exclusiveffects_cat&post_type=exclusiveffects3.4636.15
exeffects /wp-admin/edit.php?post_type=exclusiveffects3.3735.27

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Exclusive Hover effects
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,961 ▲22613.78 ▼0.3910.12 ▲8.4442.08 ▼9.58
Dashboard /wp-admin2,237 ▲465.84 ▲0.9595.92 ▼5.2741.75 ▼1.94
Posts /wp-admin/edit.php2,120 ▲312.06 ▲0.0434.03 ▼8.6831.25 ▼4.48
Add New Post /wp-admin/post-new.php2,099 ▲57723.40 ▲0.22604.11 ▼59.4644.78 ▼15.79
Media Library /wp-admin/upload.php1,422 ▲314.23 ▲0.0191.01 ▼7.3341.62 ▼4.08
Add New /wp-admin/post-new.php?post_type=exclusiveffects2,3923.8071.1791.54
exeffects Category /wp-admin/edit-tags.php?taxonomy=exclusiveffects_cat&post_type=exclusiveffects1,2932.1425.8627.83
exeffects /wp-admin/edit.php?post_type=exclusiveffects1,1011.9329.9027.93

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=exclusiveffects
    • > Warning in wp-content/plugins/exclusive-hover-effects/framework/includes/wpalchemy/MetaBox.php+2657
    count(): Parameter must be an array or an object that implements Countable

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
  • 118× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'VP_View' not found in wp-content/plugins/exclusive-hover-effects/framework/views/control/select.php:1
    • > PHP Warning
      Use of undefined constant VP_NAMESPACE - assumed 'VP_NAMESPACE' (this will throw an Error in a future version of PHP) in wp-content/plugins/exclusive-hover-effects/framework/autoload.php on line 13
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_menus() on null in wp-content/plugins/exclusive-hover-effects/framework/views/option/menu.php:1
    • > PHP Notice
      Undefined variable: is_compact in wp-content/plugins/exclusive-hover-effects/framework/views/control/radiobutton.php on line 1
    • > PHP Fatal error
      Uncaught Error: Class 'VP_Control_FieldMulti' not found in wp-content/plugins/exclusive-hover-effects/framework/classes/control/field/select.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'VP_View' not found in wp-content/plugins/exclusive-hover-effects/framework/views/control/toggle.php:1
    • > PHP Warning
      Use of undefined constant VP_PUBLIC_URL - assumed 'VP_PUBLIC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/exclusive-hover-effects/framework/config/dependencies.php on line 188
    • > PHP Notice
      Undefined variable: is_compact in wp-content/plugins/exclusive-hover-effects/framework/views/control/checkbox.php on line 1
    • > PHP Fatal error
      Uncaught Error: Class 'VP_Util_Res' not found in wp-content/plugins/exclusive-hover-effects/framework/views/control/template_control_foot.php:2
    • > PHP Warning
      Use of undefined constant VP_PUBLIC_URL - assumed 'VP_PUBLIC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/exclusive-hover-effects/framework/config/dependencies.php on line 72

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/post-new.php?post_type=exclusiveffects
    • > Javascript (severe) in unknown
    /wp-content/plugins/exclusive-hover-effects/framework/public/js/vendor/jquery.tipsy.js?ver=1.0.0a 179:24 Uncaught TypeError: this[binder] is not a function
    • > GET request to /wp-admin/post-new.php?post_type=exclusiveffects
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: vp.init_ace_editor is not a function" "TypeError: vp.init_ace_editor is not a function\n at vp.init_controls (/wp-content/plugins/exclusive-hover-effects/framework/public/js/shared.min.js?ver=1.1:1:18433)\n at HTMLDivElement.\u003Canonymous> (/wp-content/plugins/exclusive-hover-effects/framework/public/js/metabox.min.js?ver=6.3.1:1:975)\n at Function.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:3129)\n at e.\u003Ccomputed>.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:1594)\n at e (/wp-content/plugins/exclusive-hover-effects/framework/public/js/metabox.min.js?ver=6.3.1:1:915)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/exclusive-hover-effects/framework/public/js/metabox.min.js?ver=6.3.1:1:2532)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/post-new.php?post_type=exclusiveffects
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: vp.init_ace_editor is not a function

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (Adding item.), #2 (Option panel for this plugin.), #3 (Shortcode button in editor)
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

exclusive-hover-effects/exclusive-hover-effects.php 92% from 13 tests

"Exclusive Hover effects" version 2.2.1'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: Keep the plugin description shorter than 140 characters (currently 246 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected23,961 lines of code in 170 files:
LanguageFilesBlank linesComment linesLines of code
CSS1895042710,316
PHP932,3612,8489,155
JavaScript536374193,482
SVG400945
Markdown119062
JSON1001

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 102)
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity21.38
▷ Minimum class complexity1.00
▷ Maximum class complexity271.00
Average method complexity3.36
▷ Minimum method complexity1.00
▷ Maximum method complexity102.00
Code structure
Namespaces0
Interfaces2
Traits0
Classes56
▷ Abstract classes47.14%
▷ Concrete classes5292.86%
▷ Final classes00.00%
Methods505
▷ Static methods8917.62%
▷ Public methods47293.47%
▷ Protected methods193.76%
▷ Private methods142.77%
Functions32
▷ Named functions32100.00%
▷ Anonymous functions00.00%
Constants40
▷ Global constants3792.50%
▷ Class constants37.50%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
27 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
effects-pro-admin/img/Pinterest.png5.79KB2.94KB▼ 49.33%
effects-pro-admin/img/Twitter.png5.69KB2.86KB▼ 49.79%
framework/public/css/vendor/jqueryui/themes/smoothness/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
framework/public/css/vendor/jqueryui/themes/smoothness/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
effects-pro-admin/img/Facebook.png5.75KB2.86KB▼ 50.21%