Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼1.50ms] Passed 4 tests
An overview of server-side resources used by Product Image Zoom for WooCommerce - Zoom Product Image on Hover - Product Gallery & Image Zoom
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 41.50 ▲4.13 |
Dashboard /wp-admin | 3.45 ▲0.10 | 49.34 ▼7.42 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 44.50 ▼1.20 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 85.47 ▲2.28 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 36.90 ▲0.36 |
Server storage [IO: ▲0.76MB] [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: 75 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Product Image Zoom for WooCommerce - Zoom Product Image on Hover - Product Gallery & Image Zoom
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,978 ▲232 | 13.51 ▼0.84 | 9.31 ▲7.65 | 38.17 ▼5.16 |
Dashboard /wp-admin | 2,272 ▲95 | 5.52 ▼0.16 | 73.94 ▼16.20 | 44.03 ▲0.01 |
Posts /wp-admin/edit.php | 2,176 ▲76 | 2.15 ▲0.21 | 32.04 ▼4.57 | 38.06 ▲2.95 |
Add New Post /wp-admin/post-new.php | 1,654 ▲128 | 18.90 ▼4.65 | 610.97 ▼63.58 | 42.70 ▼20.65 |
Media Library /wp-admin/upload.php | 1,487 ▲84 | 4.14 ▼0.08 | 87.05 ▼7.09 | 46.30 ▲6.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
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
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 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
Please take a closer look at the following
- 10× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/woocommerce-image-zoom/inc/jquery-migrate-helper/admin/header.php
- > /wp-content/plugins/woocommerce-image-zoom/inc/jquery-migrate-helper/templates/admin-notices/deprecated-scripts.php
- > /wp-content/plugins/woocommerce-image-zoom/inc/jquery-migrate-helper/templates/email/automatic-downgrade.php
- > /wp-content/plugins/woocommerce-image-zoom/inc/jquery-migrate-helper/admin/logs.php
- > /wp-content/plugins/woocommerce-image-zoom/inc/jquery-migrate-helper/templates/admin-notices/no-longer-needed.php
- > /wp-content/plugins/woocommerce-image-zoom/inc/jquery-migrate-helper/admin/settings.php
- > /wp-content/plugins/woocommerce-image-zoom/inc/jquery-migrate-helper/enable-jquery-migrate-helper.php
- > /wp-content/plugins/woocommerce-image-zoom/inc/jquery-migrate-helper/class-jquery-migrate-helper.php
- > /wp-content/plugins/woocommerce-image-zoom/inc/jquery-migrate-helper/templates/email/weekly.php
- > /wp-content/plugins/woocommerce-image-zoom/inc/jquery-migrate-helper/templates/admin-notices/welcome.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WPB_WIZ_WeDevs_Settings_API' not found in wp-content/plugins/woocommerce-image-zoom/admin/plugin-settings.php:15
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please a description for screenshot #7 in woocommerce-image-zoom/assets to your readme.txt
woocommerce-image-zoom/main.php 92% from 13 tests
The entry point to "Product Image Zoom for WooCommerce - Zoom Product Image on Hover - Product Gallery & Image Zoom" version 1.05.3 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("woocommerce-image-zoom.php" instead of "main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin5,474 lines of code in 66 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 45 | 709 | 913 | 3,435 |
PHP | 19 | 549 | 762 | 1,930 |
CSS | 2 | 6 | 4 | 109 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 29.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 26 | 36.62% |
▷ Public methods | 65 | 91.55% |
▷ Protected methods | 3 | 4.23% |
▷ Private methods | 3 | 4.23% |
Functions | 22 | |
▷ Named functions | 20 | 90.91% |
▷ Anonymous functions | 2 | 9.09% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/fancybox_sprite@2x.png | 6.40KB | 5.76KB | ▼ 9.96% |