89% image-hover-effects-for-elementor

Code Review | Image Hover Effects For Elementor

WordPress plugin Image Hover Effects For Elementor scored89%from 54 tests.

About plugin

  • Plugin page: image-hover-effec...
  • Plugin version: 1.0.5
  • PHP compatiblity: 4.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4
  • WordPress version: 6.3.1
  • First release: Dec 7, 2019
  • Latest release: Apr 29, 2020
  • Number of updates: 19
  • Update frequency: every 7.6 days
  • Top authors: azplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,345 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
This plugin's installer ran successfully

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

Analyzing server-side resources used by Image Hover Effects For Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0136.81 ▼11.11
Dashboard /wp-admin3.36 ▼0.0355.07 ▼16.44
Posts /wp-admin/edit.php3.47 ▲0.0850.11 ▼4.24
Add New Post /wp-admin/post-new.php5.94 ▲0.0185.77 ▼10.22
Media Library /wp-admin/upload.php3.28 ▲0.0134.03 ▼4.76

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Image Hover Effects For Elementor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6014.20 ▼0.171.64 ▼0.0140.21 ▲2.97
Dashboard /wp-admin2,206 ▲355.55 ▼0.1287.22 ▼13.5740.12 ▼3.73
Posts /wp-admin/edit.php2,117 ▲141.96 ▲0.0036.68 ▼0.3937.20 ▲0.78
Add New Post /wp-admin/post-new.php1,538 ▲1023.15 ▲0.23677.23 ▼29.3549.83 ▼2.58
Media Library /wp-admin/upload.php1,420 ▲204.20 ▼0.0198.04 ▼16.2447.49 ▼0.13

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

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 86% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes: Please take inspiration from this readme.txt

image-hover-effects-for-elementor/plugin-main.php 77% from 13 tests

The principal PHP file in "Image Hover Effects For Elementor" v. 1.0.5 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("image-hover-effects-for-elementor.php" instead of "plugin-main.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 199 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected6,218 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS275405,301
PHP4107119917

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity12.00
▷ Minimum class complexity4.00
▷ Maximum class complexity20.00
Average method complexity2.47
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods16.67%
▷ Public methods1386.67%
▷ Protected methods213.33%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There are no PNG files in this plugin