90% image-hover-effects-addon-for-elementor

Code Review | Image Hover Effects - Elementor Addon

WordPress plugin Image Hover Effects - Elementor Addon scored90%from 54 tests.

About plugin

  • Plugin page: image-hover-effec...
  • Plugin version: 1.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3.1
  • WordPress version: 6.3.1
  • First release: May 19, 2018
  • Latest release: Oct 1, 2023
  • Number of updates: 35
  • Update frequency: every 56.0 days
  • Top authors: blocksera (100%)

Code review

54 tests

User reviews

72 reviews

Install metrics

50,000+ active /477,911 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.02MB] [CPU: ▼9.65ms] Passed 4 tests

Server-side resources used by Image Hover Effects - Elementor Addon
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.92 ▼7.23
Dashboard /wp-admin3.34 ▼0.0149.68 ▼11.96
Posts /wp-admin/edit.php3.39 ▲0.0352.29 ▼1.65
Add New Post /wp-admin/post-new.php5.92 ▲0.0395.75 ▼17.74
Media Library /wp-admin/upload.php3.26 ▲0.0336.87 ▲2.61

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Image Hover Effects - Elementor Addon: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6513.24 ▼1.531.66 ▼0.4037.08 ▼7.89
Dashboard /wp-admin2,217 ▲264.95 ▲0.08108.01 ▲4.3239.27 ▼5.39
Posts /wp-admin/edit.php2,099 ▲102.05 ▲0.0535.55 ▼4.4134.13 ▼0.30
Add New Post /wp-admin/post-new.php1,531 ▲1723.00 ▲5.47670.85 ▲35.2159.95 ▲5.27
Media Library /wp-admin/upload.php1,402 ▲144.17 ▼0.0695.80 ▼1.3742.37 ▼1.04

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: css effects, elementor, elementor widget, addons, image hover effects

image-hover-effects-addon-for-elementor/image-hover-effects-addon-for-elementor.php 92% from 13 tests

"Image Hover Effects - Elementor Addon" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • 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 | 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,932 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS31571141,247
PHP310214672
JavaScript12013

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity14.00
▷ Minimum class complexity13.00
▷ Maximum class complexity15.00
Average method complexity2.41
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods211.11%
▷ Public methods1583.33%
▷ Protected methods316.67%
▷ Private methods00.00%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/icon.png14.13KB4.70KB▼ 66.72%