89% image-hover-effects-block

Code Review | Image Hover Effects Block

WordPress plugin Image Hover Effects Block scored89%from 54 tests.

About plugin

  • Plugin page: image-hover-effec...
  • Plugin version: 1.4.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.0
  • WordPress version: 6.3.1
  • First release: Jul 4, 2019
  • Latest release: Jul 4, 2022
  • Number of updates: 18
  • Update frequency: every 60.9 days
  • Top authors: blocksera (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

6,000+ active /42,179 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Image Hover Effects Block
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.68 ▼8.65
Dashboard /wp-admin3.31 ▲0.0150.57 ▼3.91
Posts /wp-admin/edit.php3.37 ▲0.0147.16 ▼9.99
Add New Post /wp-admin/post-new.php5.90 ▲0.0291.35 ▼5.85
Media Library /wp-admin/upload.php3.24 ▲0.0136.07 ▼0.97

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Image Hover Effects Block: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.28 ▼0.071.70 ▼0.3741.00 ▼2.54
Dashboard /wp-admin2,197 ▲205.65 ▲0.0984.75 ▼10.8340.52 ▼2.01
Posts /wp-admin/edit.php2,099 ▼12.03 ▲0.0135.28 ▼2.5737.29 ▼0.19
Add New Post /wp-admin/post-new.php6,374 ▲4,84628.00 ▲4.97888.37 ▲196.8240.65 ▼21.40
Media Library /wp-admin/upload.php1,402 ▲24.22 ▲0.09100.89 ▲0.3942.15 ▼3.12

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: css hover effects block, block, gutenberg block, image block, image hover effects block

image-hover-effects-block/image-hover-effects-block.php 85% from 13 tests

The primary PHP file in "Image Hover Effects Block" version 1.4.5 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; 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 programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected7,295 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
SVG11014,133
CSS61701721,811
JavaScript3159939
PHP23819404
JSON1008

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions3
▷ Named functions3100.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
src/blocks/img/valign.png11.25KB3.91KB▼ 65.28%
src/blocks/img/link.png5.72KB1.98KB▼ 65.33%