78% amazing-hover-effects-for-wpbakery-page-builder

Code Review | Amazing Hover Effects for WPBakery Page Builder

WordPress plugin Amazing Hover Effects for WPBakery Page Builder scored 78% from 54 tests.

About plugin

  • Plugin page: amazing-hover-eff...
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2
  • WordPress version: 6.3.1
  • First release: Aug 24, 2018
  • Latest release: May 9, 2019
  • Number of updates: 11
  • Update frequency: every 23.5 days
  • Top authors: themebon (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active / 4,939 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.68ms] Passed 4 tests

Server-side resources used by Amazing Hover Effects for WPBakery Page Builder
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.04 ▼3.51
Dashboard /wp-admin3.31 ▲0.0043.98 ▼1.33
Posts /wp-admin/edit.php3.36 ▲0.0044.49 ▼2.15
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.82 ▼15.71
Media Library /wp-admin/upload.php3.23 ▲0.0033.31 ▼0.59

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Amazing Hover Effects for WPBakery Page Builder: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.66 ▲0.111.74 ▼0.9245.69 ▼4.49
Dashboard /wp-admin2,209 ▲214.87 ▼0.16101.82 ▼1.7739.53 ▼0.55
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0034.11 ▼5.4531.79 ▼5.07
Add New Post /wp-admin/post-new.php1,533 ▲1923.46 ▲5.85672.55 ▲41.7656.13 ▲5.50
Media Library /wp-admin/upload.php1,391 ▲34.23 ▲0.0298.93 ▲1.7445.54 ▲1.83

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

Smoke tests 50% from 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 0% 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
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/amazing-hover-effects-for-wpbakery-page-builder/amazing-hover-effects-visual-composer.php
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_add_shortcode_param() in wp-content/plugins/amazing-hover-effects-for-wpbakery-page-builder/admin/params/slider/slider-params.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_add_shortcode_param() in wp-content/plugins/amazing-hover-effects-for-wpbakery-page-builder/admin/params/slider/slider-params.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_map() in wp-content/plugins/amazing-hover-effects-for-wpbakery-page-builder/hover-effects/hover-effects.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
The official readme.txt might help

amazing-hover-effects-for-wpbakery-page-builder/amazing-hover-effects-visual-composer.php 85% from 13 tests

"Amazing Hover Effects for WPBakery Page Builder" version 1.0.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("amazing-hover-effects-for-wpbakery-page-builder.php" instead of "amazing-hover-effects-visual-composer.php")
  • 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

Code Analysis Passed 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
There were no executable files found in this plugin7,432 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS31961755,331
PHP4229251,503
SVG100565
JavaScript111333

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
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
admin/img/hover_effects_icon.png2.06KB1.21KB▼ 41.43%