84% gw-visual-composer-hover-box

Code Review | Simple Hover Box for WP Bakery Page Builder

WordPress plugin Simple Hover Box for WP Bakery Page Builder scored84%from 54 tests.

About plugin

  • Plugin page: gw-visual-compose...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.4
  • WordPress version: 6.3.1
  • First release: Jun 28, 2017
  • Latest release: Apr 20, 2020
  • Number of updates: 17
  • Update frequency: every 60.4 days
  • Top authors: dakiriki (88.24%)darkogerguric (17.65%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /3,304 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Analyzing server-side resources used by Simple Hover Box for WP Bakery Page Builder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.68 ▼0.16
Dashboard /wp-admin3.31 ▼0.0343.11 ▼14.48
Posts /wp-admin/edit.php3.36 ▲0.0141.85 ▼7.58
Add New Post /wp-admin/post-new.php5.89 ▲0.0179.76 ▼6.91
Media Library /wp-admin/upload.php3.23 ▲0.0034.95 ▲2.31

Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Hover Box for WP Bakery Page Builder
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,888 ▲12713.54 ▼1.0810.58 ▲8.8543.14 ▲1.41
Dashboard /wp-admin2,204 ▲275.56 ▼0.0983.25 ▼4.9537.94 ▼3.92
Posts /wp-admin/edit.php2,112 ▲122.03 ▲0.0133.66 ▼0.7733.42 ▼3.86
Add New Post /wp-admin/post-new.php1,538 ▲1022.96 ▼0.10667.69 ▲6.8959.88 ▲3.73
Media Library /wp-admin/upload.php1,403 ▲34.20 ▲0.06100.54 ▲5.0342.08 ▼1.42

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% 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 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/gw-visual-composer-hover-box/gw_vc_hover_box.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% 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:
  • Donate link: Please fix this invalid url: "paypal.me/DarkoG"
The official readme.txt is a good inspiration

gw-visual-composer-hover-box/gw_vc_hover_box.php 92% from 13 tests

The main file in "Simple Hover Box for WP Bakery Page Builder" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("gw-visual-composer-hover-box.php" instead of "gw_vc_hover_box.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin223 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP17037167
CSS1164234
JavaScript1301322

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/hover.png19.18KB9.34KB▼ 51.30%