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.02MB] [CPU: ▼1.49ms] Passed 4 tests
An overview of server-side resources used by Ultimate WooCommerce CloudZoom for Product Images
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.42 ▼0.04 | 25.20 ▼16.26 |
Dashboard /wp-admin | 3.35 ▲0.04 | 51.37 ▲4.31 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 51.44 ▲2.84 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 108.94 ▲9.57 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.78 ▲3.16 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Ultimate WooCommerce CloudZoom for Product Images
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,527 ▼244 | 13.28 ▼1.47 | 0.56 ▼1.42 | 15.68 ▼22.87 |
Dashboard /wp-admin | 2,271 ▲86 | 4.89 ▼1.01 | 99.87 ▼7.45 | 83.66 ▲39.70 |
Posts /wp-admin/edit.php | 2,154 ▲62 | 2.03 ▲0.00 | 40.38 ▲1.49 | 33.99 ▼1.13 |
Add New Post /wp-admin/post-new.php | 1,730 ▲211 | 24.71 ▲1.50 | 704.76 ▲95.03 | 61.81 ▲15.86 |
Media Library /wp-admin/upload.php | 1,453 ▲65 | 4.21 ▼0.03 | 102.27 ▲0.16 | 48.93 ▲6.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
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 90% from 29 tests
readme.txt 88% 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
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
- Plugin Name: You should set the name of your plugin on the first line (
=== product-cloudzoom-ultimate-for-woocommerce-product-images ===
)
product-cloudzoom-ultimate-for-woocommerce-product-images/mgwoocommercecloudzoom.php 92% from 13 tests
"Ultimate WooCommerce CloudZoom for Product Images" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("product-cloudzoom-ultimate-for-woocommerce-product-images.php" instead of "mgwoocommercecloudzoom.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
Good job! No executable or dangerous file extensions detected646 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 53 | 51 | 361 |
PHP | 1 | 53 | 37 | 140 |
PO File | 1 | 42 | 42 | 110 |
CSS | 1 | 4 | 5 | 35 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/hosting-wp-button.png | 26.03KB | 9.36KB | ▼ 64.05% |