89% image-hover-effects-for-wpbakery-page-builder

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: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0.3
  • WordPress version: 6.3.1
  • First release: Jan 21, 2019
  • Latest release: Jan 21, 2019
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: jkreative (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,424 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼8.04ms] Passed 4 tests

An overview of server-side resources used by Image Hover Effects for WPBakery Page Builder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0741.46 ▼5.61
Dashboard /wp-admin3.38 ▲0.0347.56 ▼16.77
Posts /wp-admin/edit.php3.44 ▲0.0751.80 ▼1.72
Add New Post /wp-admin/post-new.php5.98 ▲0.0989.67 ▼8.06
Media Library /wp-admin/upload.php3.31 ▲0.0737.23 ▲1.05

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Image Hover Effects for WPBakery Page Builder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲8414.35 ▼0.001.85 ▼0.1544.06 ▼3.38
Dashboard /wp-admin2,200 ▲205.59 ▼0.0197.64 ▲8.9743.46 ▲1.91
Posts /wp-admin/edit.php2,117 ▲172.02 ▲0.0240.27 ▲0.9436.83 ▲1.44
Add New Post /wp-admin/post-new.php1,540 ▲1423.06 ▲0.03680.00 ▲70.7051.68 ▼0.91
Media Library /wp-admin/upload.php1,414 ▲144.20 ▲0.05103.77 ▼12.6146.38 ▼4.64

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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 does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Everything seems fine, however this is by no means an exhaustive test

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

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: image hover, hover style, hover image, visual composer hover image, wpbakery hover effects

image-hover-effects-for-wpbakery-page-builder/image-hover-effects-addon.php 85% from 13 tests

"Image Hover Effects for WPBakery Page Builder" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("image-hover-effects-for-wpbakery-page-builder.php" instead of "image-hover-effects-addon.php")
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,217 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP45263486
CSS104421
JavaScript36239310

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions10
▷ Named functions10100.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
7 PNG files occupy 0.26MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/hoverimage/jag-himg-s1.png80.24KB35.10KB▼ 56.26%
assets/hover-image/img/confetti.png21.11KB8.75KB▼ 58.57%
assets/hover-image/img/snow-color.png13.16KB5.53KB▼ 57.97%
assets/hover-image/img/snow-white.png10.99KB5.01KB▼ 54.44%
admin/images/hoverimage/jag-himg-s3.png81.63KB34.95KB▼ 57.19%