Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼3.44ms] Passed 4 tests
Server-side resources used by Image Magnify Glass - Gutenberg Image Block
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 40.21 ▼2.27 |
Dashboard /wp-admin | 3.39 ▲0.04 | 47.84 ▼18.27 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 48.11 ▲4.07 |
Add New Post /wp-admin/post-new.php | 7.06 ▲1.17 | 104.64 ▲4.49 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 38.62 ▲2.73 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Image Magnify Glass - Gutenberg Image Block
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲130 | 14.47 ▲0.11 | 28.22 ▲26.58 | 43.18 ▲1.06 |
Dashboard /wp-admin | 2,198 ▲21 | 5.62 ▼0.07 | 81.31 ▼18.39 | 41.28 ▼1.75 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▼0.01 | 33.85 ▼4.65 | 34.26 ▼4.48 |
Add New Post /wp-admin/post-new.php | 1,541 ▲13 | 24.86 ▲1.88 | 604.54 ▼52.94 | 33.29 ▼19.13 |
Media Library /wp-admin/upload.php | 1,394 ▼3 | 4.18 ▲0.06 | 96.98 ▼18.58 | 41.91 ▼6.29 |
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
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #1, #2 in image-block-zoom-on-hover/assets to your readme.txt
image-block-zoom-on-hover/gpls-ibzoh-image-block-zoom-on-hover.php 77% from 13 tests
The main PHP script in "Image Magnify Glass - Gutenberg Image Block" version 1.0.2 is automatically included on every request by WordPress
The following require your attention:
- Requires PHP: The required version number did not match the one declared in readme.txt ("5.4" instead of "5.6")
- Main file name: Name the main plugin file the same as the plugin slug ("image-block-zoom-on-hover.php" instead of "gpls-ibzoh-image-block-zoom-on-hover.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin469 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 103 | 259 | 465 |
CSS | 2 | 0 | 0 | 2 |
JavaScript | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 13.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 10 | 26.32% |
▷ Public methods | 32 | 84.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 15.79% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin