78% image-hover-effects

Code Review | Image Hover Effects - WordPress Plugin

WordPress plugin Image Hover Effects - WordPress Plugin scored78%from 54 tests.

About plugin

  • Plugin page: image-hover-effects
  • Plugin version: 5.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.1
  • WordPress version: 6.3.1
  • First release: Jul 11, 2015
  • Latest release: Jan 17, 2023
  • Number of updates: 105
  • Update frequency: every 26.2 days
  • Top authors: Labibahmed42 (100%)

Code review

54 tests

User reviews

42 reviews

Install metrics

4,000+ active /126,013 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.11MB] [CPU: ▼8.32ms] Passed 4 tests

An overview of server-side resources used by Image Hover Effects - WordPress Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1241.70 ▲3.41
Dashboard /wp-admin3.42 ▲0.0850.52 ▼15.25
Posts /wp-admin/edit.php3.48 ▲0.1250.71 ▼1.89
Add New Post /wp-admin/post-new.php6.01 ▲0.1289.79 ▼19.53
Media Library /wp-admin/upload.php3.35 ▲0.1242.62 ▲5.64

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Image Hover Effects - WordPress Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.17 ▲0.012.09 ▲0.4147.03 ▲7.14
Dashboard /wp-admin2,211 ▲375.55 ▼0.1398.82 ▼0.2640.35 ▼2.75
Posts /wp-admin/edit.php2,116 ▲131.97 ▼0.0836.36 ▲0.2333.60 ▼3.01
Add New Post /wp-admin/post-new.php1,539 ▲823.32 ▲0.18666.78 ▲3.5560.34 ▲2.67
Media Library /wp-admin/upload.php1,416 ▲194.23 ▲0.03109.00 ▲1.3349.39 ▲4.73

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/image-hover-effects/includes/more_plugins.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-hover-effects/index.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes: The official readme.txt is a good inspiration

image-hover-effects/index.php 92% from 13 tests

This is the main PHP file of "Image Hover Effects - WordPress Plugin" version 5.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("image-hover-effects.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin11,801 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
CSS529024610,439
PHP49527856
JavaScript3132223506

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity85.00
▷ Minimum class complexity85.00
▷ Maximum class complexity85.00
Average method complexity13.00
▷ Minimum method complexity1.00
▷ Maximum method complexity47.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
15 PNG files occupy 0.10MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/ui-bg_highlight-soft_100_eeeeee_1x100.png0.27KB0.14KB▼ 47.84%
admin/images/ui-icons_ef8c08_256x240.png4.44KB4.17KB▼ 6.02%
admin/images/ui-bg_glass_100_fdf5ce_1x400.png0.34KB0.16KB▼ 54.02%
admin/images/ui-bg_diagonals-thick_20_666666_40x40.png0.30KB0.15KB▼ 49.68%
admin/images/ui-icons_ffd27a_256x240.png4.44KB4.17KB▼ 6.02%