89% image-hover-effects-visual-composer-extension

Code Review | Image Hover Effects For WPBakery Page Builder

WordPress plugin Image Hover Effects For WPBakery Page Builder scored89%from 54 tests.

About plugin

  • Plugin page: image-hover-effec...
  • Plugin version: 5.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.1
  • WordPress version: 6.3.1
  • First release: May 12, 2016
  • Latest release: Jan 17, 2023
  • Number of updates: 54
  • Update frequency: every 45.3 days
  • Top authors: Labibahmed42 (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

5,000+ active /126,904 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
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Image Hover Effects For WPBakery Page Builder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.67 ▼0.19
Dashboard /wp-admin3.32 ▼0.0258.04 ▼7.19
Posts /wp-admin/edit.php3.37 ▲0.0250.93 ▲4.79
Add New Post /wp-admin/post-new.php5.90 ▲0.02104.95 ▲6.85
Media Library /wp-admin/upload.php3.24 ▲0.0138.72 ▲1.91

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Image Hover Effects For WPBakery Page Builder: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲4214.28 ▼0.021.92 ▲0.1544.30 ▼0.19
Dashboard /wp-admin2,206 ▲295.54 ▼0.1588.10 ▼9.2739.73 ▼5.73
Posts /wp-admin/edit.php2,114 ▲142.03 ▲0.0437.27 ▲1.0536.24 ▼3.02
Add New Post /wp-admin/post-new.php1,554 ▲1322.86 ▲4.29667.62 ▲11.6459.60 ▼0.58
Media Library /wp-admin/upload.php1,414 ▲144.21 ▼0.0098.44 ▼10.6747.01 ▲2.38

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: image, hover, caption, wpbakery, animated...

image-hover-effects-visual-composer-extension/index.php 85% from 13 tests

The primary PHP file in "Image Hover Effects For WPBakery Page Builder" version 5.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("image-hover-effects-visual-composer-extension.php" instead of "index.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin5,157 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS114734,839
PHP44419302
JavaScript201016

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin