78% hover-effects-for-visual-composer

Code Review | Hover Effects For Visual Composer

WordPress plugin Hover Effects For Visual Composer scored78%from 54 tests.

About plugin

  • Plugin page: hover-effects-for...
  • Plugin version: 1.6.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.3
  • WordPress version: 6.3.1
  • First release: Nov 16, 2016
  • Latest release: Nov 26, 2019
  • Number of updates: 77
  • Update frequency: every 14.3 days
  • Top authors: themebon (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /26,640 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

A check of server-side resources used by Hover Effects For Visual Composer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.79 ▼1.21
Dashboard /wp-admin3.31 ▲0.0047.22 ▼4.05
Posts /wp-admin/edit.php3.36 ▲0.0044.55 ▼1.52
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.09 ▼4.91
Media Library /wp-admin/upload.php3.23 ▲0.0034.23 ▼1.98

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Hover Effects For Visual Composer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.21 ▼1.211.90 ▼0.2944.89 ▼1.57
Dashboard /wp-admin2,206 ▲185.83 ▲0.9496.71 ▼6.8741.51 ▼3.69
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0340.56 ▲1.5634.94 ▼3.90
Add New Post /wp-admin/post-new.php1,533 ▲1323.06 ▼0.19659.01 ▲0.3154.06 ▲2.29
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.0193.98 ▼14.1740.92 ▼3.20

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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 items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/hover-effects-for-visual-composer/hover-effects-for-visual-composer.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/hover-effects-for-visual-composer/inc/shortcode.php:1128
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hover-effects-for-visual-composer/inc/param.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

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
Attributes that need to be fixed:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
The official readme.txt might help

hover-effects-for-visual-composer/hover-effects-for-visual-composer.php 92% from 13 tests

Analyzing the main PHP file in "Hover Effects For Visual Composer" version 1.6.6
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; 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
No dangerous file extensions were detected8,987 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS521906,479
PHP5352392,508

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code1.46
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
No PNG images were found in this plugin