78% hover-effects-with-lightbox-vc-extension

Code Review | Hover Effects With Lightbox For WPBakery Page Builder (formely Visual Composer)

WordPress plugin Hover Effects With Lightbox For WPBakery Page Builder (formely Visual Composer) scored78%from 54 tests.

About plugin

  • Plugin page: hover-effects-wit...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.7
  • WordPress version: 6.3.1
  • First release: Apr 24, 2018
  • Latest release: Jul 29, 2021
  • Number of updates: 8
  • Update frequency: every 149.0 days
  • Top authors: vcaddon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,657 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.23ms] Passed 4 tests

A check of server-side resources used by Hover Effects With Lightbox For WPBakery Page Builder (formely Visual Composer)
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0244.16 ▼0.82
Dashboard /wp-admin3.31 ▲0.0149.78 ▼5.00
Posts /wp-admin/edit.php3.36 ▲0.0149.54 ▼5.33
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.06 ▼16.39
Media Library /wp-admin/upload.php3.23 ▲0.0136.86 ▼2.20

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 55 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Hover Effects With Lightbox For WPBakery Page Builder (formely Visual Composer)
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲15313.81 ▼0.5710.03 ▲8.2643.03 ▼0.23
Dashboard /wp-admin2,210 ▲365.65 ▲0.0295.93 ▲4.8446.24 ▲2.37
Posts /wp-admin/edit.php2,112 ▲92.02 ▼0.0034.32 ▼6.4437.68 ▲2.41
Add New Post /wp-admin/post-new.php1,557 ▲1023.04 ▼0.19610.77 ▼30.6963.42 ▲8.16
Media Library /wp-admin/upload.php1,406 ▲94.22 ▼0.03101.72 ▼17.2843.12 ▼6.79

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
  • 20× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/hover-effects-with-lightbox-vc-extension/templates/style10.php
    • > /wp-content/plugins/hover-effects-with-lightbox-vc-extension/templates/style4.php
    • > /wp-content/plugins/hover-effects-with-lightbox-vc-extension/templates/style1.php
    • > /wp-content/plugins/hover-effects-with-lightbox-vc-extension/templates/style12.php
    • > /wp-content/plugins/hover-effects-with-lightbox-vc-extension/templates/style5.php
    • > /wp-content/plugins/hover-effects-with-lightbox-vc-extension/templates/style9.php
    • > /wp-content/plugins/hover-effects-with-lightbox-vc-extension/templates/style13.php
    • > /wp-content/plugins/hover-effects-with-lightbox-vc-extension/templates/style7.php
    • > /wp-content/plugins/hover-effects-with-lightbox-vc-extension/templates/style15.php
    • > /wp-content/plugins/hover-effects-with-lightbox-vc-extension/templates/style3.php
  • 138× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: ihelb_caption_url in wp-content/plugins/hover-effects-with-lightbox-vc-extension/templates/style9.php on line 23
    • > PHP Notice
      Undefined variable: ihelb_heading in wp-content/plugins/hover-effects-with-lightbox-vc-extension/templates/style14.php on line 9
    • > PHP Notice
      Undefined variable: ihelb_caption_url in wp-content/plugins/hover-effects-with-lightbox-vc-extension/templates/style19.php on line 24
    • > PHP Notice
      Undefined variable: ihelb_enable_lighbox in wp-content/plugins/hover-effects-with-lightbox-vc-extension/templates/style13.php on line 20
    • > PHP Notice
      Undefined variable: ihelb_caption_url in wp-content/plugins/hover-effects-with-lightbox-vc-extension/templates/style12.php on line 12
    • > PHP Notice
      Undefined variable: ihelb_heading in wp-content/plugins/hover-effects-with-lightbox-vc-extension/templates/style9.php on line 10
    • > PHP Notice
      Undefined variable: ihelb_short_description in wp-content/plugins/hover-effects-with-lightbox-vc-extension/templates/style19.php on line 10
    • > PHP Notice
      Undefined variable: ihelb_short_description in wp-content/plugins/hover-effects-with-lightbox-vc-extension/templates/style7.php on line 18
    • > PHP Notice
      Undefined variable: content in wp-content/plugins/hover-effects-with-lightbox-vc-extension/templates/style10.php on line 18
    • > PHP Notice
      Undefined variable: ihelb_heading in wp-content/plugins/hover-effects-with-lightbox-vc-extension/templates/style17.php on line 10

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 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: lightbox, wordpress plugin, wpbakery pagebuilder, imge hover effects, best plugin...

hover-effects-with-lightbox-vc-extension/index.php 85% from 13 tests

The main PHP file in "Hover Effects With Lightbox For WPBakery Page Builder (formely Visual Composer)" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("hover-effects-with-lightbox-vc-extension.php" instead of "index.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 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected5,131 lines of code in 49 files:
LanguageFilesBlank linesComment linesLines of code
CSS2413103,748
PHP233526697
SVG100685
JavaScript1131

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin