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
Install script ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼3.03ms] Passed 4 tests
An overview of server-side resources used by Easy Product Image Zoom For WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 42.61 ▼2.47 |
Dashboard /wp-admin | 3.60 ▲0.30 | 51.34 ▲3.56 |
Posts /wp-admin/edit.php | 3.65 ▲0.30 | 53.33 ▲3.06 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 89.88 ▼14.07 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 36.38 ▲1.37 |
Product Image Zoom /wp-admin/admin.php?page=pizfwc_options | 3.43 | 41.14 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
pizfwc_settings_styling |
can_compress_scripts |
pizfwc_settings_general |
pizfwc_settings_animation |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Easy Product Image Zoom For WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,957 ▲222 | 15.12 ▲0.38 | 1.75 ▼0.30 | 46.04 ▼3.74 |
Dashboard /wp-admin | 2,366 ▲178 | 6.65 ▲1.73 | 139.88 ▲21.75 | 42.07 ▼0.73 |
Posts /wp-admin/edit.php | 2,272 ▲180 | 3.63 ▲1.64 | 57.13 ▲15.52 | 35.76 ▼1.09 |
Add New Post /wp-admin/post-new.php | 1,538 ▲21 | 18.30 ▲0.64 | 630.75 ▼11.86 | 40.27 ▼14.98 |
Media Library /wp-admin/upload.php | 1,402 ▲14 | 4.30 ▲0.11 | 81.38 ▼30.36 | 43.61 ▲0.38 |
Product Image Zoom /wp-admin/admin.php?page=pizfwc_options | 1,603 | 3.60 | 72.56 | 24.43 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- pizfwc_settings_styling
- can_compress_scripts
- pizfwc_settings_general
- widget_recent-comments
- pizfwc_settings_animation
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% 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 fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/product-image-zoom-for-woocommerce/init.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function remove_theme_support() in wp-content/plugins/product-image-zoom-for-woocommerce/includes/woo-config.php:5
- > PHP Fatal error
Uncaught Error: Class 'PIZFWC_Settings_API' not found in wp-content/plugins/product-image-zoom-for-woocommerce/includes/plugin-options.php:12
- > PHP Fatal error
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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: product image zoom, hover zoom, zoom, woocommerce, magnifier
product-image-zoom-for-woocommerce/init.php 85% from 13 tests
Analyzing the main PHP file in "Easy Product Image Zoom For WooCommerce" version 1.0.2
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("product-image-zoom-for-woocommerce.php" instead of "init.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,212 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 394 | 176 | 1,360 |
PHP | 5 | 176 | 266 | 832 |
CSS | 1 | 1 | 1 | 20 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 36.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 36 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 10 | 90.91% |
▷ Anonymous functions | 1 | 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
PNG files should be compressed to save space and minimize bandwidth usage
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 |
assets/images/window-positions.png | 4.44KB | 2.52KB | ▼ 43.12% |