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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼11.92ms] Passed 4 tests
A check of server-side resources used by Zoom image simple script
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 40.14 ▼11.94 |
Dashboard /wp-admin | 3.39 ▲0.05 | 47.61 ▼7.07 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 43.39 ▼6.26 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 79.19 ▼22.41 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 39.23 ▲7.35 |
Zoom image /wp-admin/options-general.php?page=zoom-image-simple-script | 3.32 | 31.16 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 21 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_zoom_image_simples |
New WordPress options |
---|
can_compress_scripts |
zoom-image-simple-script |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_zoom-image-simple-script |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Zoom image simple script
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,889 ▲128 | 13.85 ▼0.75 | 9.40 ▲7.42 | 41.69 ▲2.17 |
Dashboard /wp-admin | 2,193 ▲15 | 5.62 ▼0.09 | 92.90 ▼16.49 | 43.24 ▼0.90 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.96 ▼0.02 | 36.09 ▼6.70 | 34.60 ▼1.93 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.61 ▲0.53 | 665.12 ▼21.99 | 57.64 ▲5.66 |
Media Library /wp-admin/upload.php | 1,395 ▼5 | 4.20 ▲0.07 | 98.06 ▼1.65 | 41.98 ▼2.81 |
Zoom image /wp-admin/options-general.php?page=zoom-image-simple-script | 950 | 2.02 | 28.30 | 28.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- widget_zoom-image-simple-script
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=zoom-image-simple-script
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP 50% from 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
Please fix the following
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/zoom-image-simple-script/zoom-image-simple-script.php
- > /wp-content/plugins/zoom-image-simple-script/pages/image-management-edit.php
- > /wp-content/plugins/zoom-image-simple-script/pages/image-management-show.php
- > /wp-content/plugins/zoom-image-simple-script/pages/image-management-add.php
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, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
4 plugin tags: image, plugin, widget, zoom
zoom-image-simple-script/zoom-image-simple-script.php Passed 13 tests
The main PHP script in "Zoom image simple script" version 1.2 is automatically included on every request by WordPress
24 characters long description:
Zoom image simple script
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,297 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 155 | 23 | 925 |
JavaScript | 2 | 16 | 3 | 187 |
PO File | 1 | 54 | 86 | 125 |
CSS | 1 | 7 | 0 | 60 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 13.25 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 20 | 76.92% |
▷ Public methods | 26 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/image-icon.png | 2.98KB | 0.54KB | ▼ 81.86% |