83% advanced-hover-effects-image-wpbakery

Code Review | Advanced Hover Effects On Image Wpbeckary(Visual Composer)

WordPress plugin Advanced Hover Effects On Image Wpbeckary(Visual Composer) scored83%from 54 tests.

About plugin

  • Plugin page: advanced-hover-ef...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.0.1
  • WordPress version: 6.3.1
  • First release: Nov 18, 2018
  • Latest release: Dec 18, 2018
  • Number of updates: 3
  • Update frequency: every 12.0 days
  • Top authors: themescup (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /680 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: ▼3.54ms] Passed 4 tests

Server-side resources used by Advanced Hover Effects On Image Wpbeckary(Visual Composer)
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.49 ▼3.76
Dashboard /wp-admin3.31 ▲0.0044.22 ▲0.73
Posts /wp-admin/edit.php3.36 ▲0.0047.67 ▲0.50
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.84 ▼11.61
Media Library /wp-admin/upload.php3.23 ▲0.0035.82 ▲4.42

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Advanced Hover Effects On Image Wpbeckary(Visual Composer): an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.33 ▼0.971.68 ▼0.1142.96 ▼0.04
Dashboard /wp-admin2,206 ▲204.83 ▼0.09107.43 ▼5.0537.33 ▼5.32
Posts /wp-admin/edit.php2,092 ▼02.02 ▼0.0340.65 ▼0.2539.04 ▲4.57
Add New Post /wp-admin/post-new.php1,533 ▲1423.48 ▲0.39664.51 ▲40.3261.01 ▼2.68
Media Library /wp-admin/upload.php1,382 ▼64.21 ▲0.0495.20 ▼0.8343.07 ▲0.54

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/advanced-hover-effects-image-wpbakery/aheiw-hover-effects-image-addon.php:15
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/advanced-hover-effects-image-wpbakery/aheiw-hover-effects-image-addon.php on line 14
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/advanced-hover-effects-image-wpbakery/aheiw-hover-effects-image-addon.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_map() in wp-content/plugins/advanced-hover-effects-image-wpbakery/aheiw-hover-effects-image/aheiw-hover-effects-image.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_add_shortcode_param() in wp-content/plugins/advanced-hover-effects-image-wpbakery/admin/params/slider/slider-params.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_add_shortcode_param() in wp-content/plugins/advanced-hover-effects-image-wpbakery/admin/params/slider/slider-params.php:6
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/advanced-hover-effects-image-wpbakery/aheiw-hover-effects-image-addon.php on line 14

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add an image for screenshot #1 (screenshot 1)
You can look at the official readme.txt

advanced-hover-effects-image-wpbakery/aheiw-hover-effects-image-addon.php 85% from 13 tests

The principal PHP file in "Advanced Hover Effects On Image Wpbeckary(Visual Composer)" v. 1.0.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("advanced-hover-effects-image-wpbakery.php" instead of "aheiw-hover-effects-image-addon.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin5,474 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
CSS345702,098
PHP514058672
JavaScript111333

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity8.50
▷ Minimum method complexity5.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
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%