Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.76ms] Passed 4 tests
An overview of server-side resources used by YITH WooCommerce Product Gallery & Image Zoom
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.30 ▼4.60 |
Dashboard /wp-admin | 3.34 ▼0.01 | 48.66 ▼11.41 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.34 ▲1.11 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 87.37 ▼8.12 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.80 ▲1.26 |
Server storage [IO: ▲3.67MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 325 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
yit_recently_activated |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by YITH WooCommerce Product Gallery & Image Zoom
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲49 | 14.37 ▲0.02 | 1.64 ▼0.15 | 40.31 ▼1.61 |
Dashboard /wp-admin | 2,198 ▲24 | 5.58 ▼0.09 | 91.27 ▼5.55 | 43.28 ▼2.31 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.99 ▼0.12 | 37.27 ▼5.52 | 32.43 ▼5.02 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.27 ▲0.11 | 686.70 ▲39.23 | 62.61 ▲8.87 |
Media Library /wp-admin/upload.php | 1,406 ▲3 | 4.25 ▲0.07 | 96.13 ▼5.41 | 42.07 ▼2.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- yit_recently_activated
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/yith-woocommerce-zoom-magnifier/lib/compatibility/class-yith-wczm-compatibility.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'ElementorPro\\Modules\\Woocommerce\\Widgets\\Product_Images' not found in wp-content/plugins/yith-woocommerce-zoom-magnifier/lib/compatibility/elementor/class-yith-wczm-product-images-widget.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/yith-woocommerce-zoom-magnifier/templates/admin/premium.php:172
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: slider, carousel, woocommerce, magnifier, zoom
yith-woocommerce-zoom-magnifier/init.php 77% from 13 tests
The main file in "YITH WooCommerce Product Gallery & Image Zoom" v. 2.27.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 299 characters long)
- Requires at least: The required version number did not match the one declared in readme.txt ("6.2" instead of "8.1")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("yith-woocommerce-zoom-magnifier.php" instead of "init.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin47,039 lines of code in 273 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 179 | 2,831 | 5,578 | 15,775 |
JavaScript | 56 | 2,286 | 1,211 | 14,060 |
CSS | 21 | 1,719 | 260 | 9,425 |
PO File | 8 | 1,886 | 2,523 | 4,813 |
SVG | 8 | 0 | 1 | 2,926 |
XML | 1 | 12 | 9 | 40 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 37.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 336.00 |
Average method complexity | 3.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 33 | |
▷ Abstract classes | 1 | 3.03% |
▷ Concrete classes | 32 | 96.97% |
▷ Final classes | 0 | 0.00% |
Methods | 397 | |
▷ Static methods | 53 | 13.35% |
▷ Public methods | 324 | 81.61% |
▷ Protected methods | 52 | 13.10% |
▷ Private methods | 21 | 5.29% |
Functions | 140 | |
▷ Named functions | 132 | 94.29% |
▷ Anonymous functions | 8 | 5.71% |
Constants | 22 | |
▷ Global constants | 21 | 95.45% |
▷ Class constants | 1 | 4.55% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
29 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
plugin-fw/assets/images/banner-premium.png | 10.78KB | 5.54KB | ▼ 48.66% |
plugin-fw/assets/css/jquery-ui/images/ui-icons_888888_256x240.png | 3.69KB | 4.18KB | 0.00% |
plugin-fw/assets/images/ui-icons_888888_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
plugin-fw/assets/images/licence-error.png | 1.61KB | 0.94KB | ▼ 41.62% |
plugin-fw/assets/images/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |