93% 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) scored 93% 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: 5.9.2
  • 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 / 460 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼310.83ms] Passed 4 tests

A check of server-side resources used by Advanced Hover Effects On Image Wpbeckary(Visual Composer)
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0159.17 ▲8.56
Dashboard /wp-admin3.41 ▲0.0032.91 ▼0.14
Posts /wp-admin/edit.php3.64 ▲0.0037.00 ▼0.76
Add New Post /wp-admin/post-new.php6.88 ▼0.0992.80 ▼1,216.80
Media Library /wp-admin/upload.php3.29 ▲0.0022.86 ▼25.60

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Advanced Hover Effects On Image Wpbeckary(Visual Composer)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,783 ▲2915.81 ▲0.145.65 ▼0.212.08 ▼0.38
Dashboard /wp-admin2,892 ▲316.10 ▼0.11134.11 ▼6.04165.45 ▼0.08
Posts /wp-admin/edit.php2,691 ▲33.25 ▲0.0164.18 ▼2.40218.37 ▲6.62
Add New Post /wp-admin/post-new.php1,638 ▼11320.80 ▼0.77405.74 ▼56.80210.46 ▲47.88
Media Library /wp-admin/upload.php1,701 ▲35.52 ▲0.03146.63 ▲7.13259.52 ▲68.46

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > 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
      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 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
      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
    • > 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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Screenshot #1 (screenshot 1) image not found
The official readme.txt is a good inspiration

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

This is the main PHP file of "Advanced Hover Effects On Image Wpbeckary(Visual Composer)" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • 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")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected5,474 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
CSS345702,098
PHP514058672
JavaScript111333

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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%