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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.38ms] Passed 4 tests
This is a short check of server-side resources used by YITH WooCommerce Catalog Mode
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.23 ▼1.47 |
Dashboard /wp-admin | 3.33 ▼0.01 | 46.08 ▼9.65 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 44.94 ▼1.28 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 93.86 ▲3.37 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.90 ▼1.10 |
Server storage [IO: ▲3.55MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 369 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
yit_recently_activated |
Browser metrics Passed 4 tests
Checking browser requirements for YITH WooCommerce Catalog Mode
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲49 | 14.34 ▼0.01 | 1.64 ▼0.01 | 43.01 ▲1.58 |
Dashboard /wp-admin | 2,201 ▲20 | 5.57 ▼0.13 | 83.24 ▼36.11 | 39.61 ▼4.67 |
Posts /wp-admin/edit.php | 2,107 ▲10 | 1.95 ▲0.01 | 37.89 ▲0.62 | 32.44 ▲0.73 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 24.97 ▲1.39 | 674.73 ▼40.95 | 65.07 ▲12.57 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.25 ▲0.07 | 99.39 ▼5.13 | 43.40 ▼2.15 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- yit_recently_activated
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
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/yith-woocommerce-catalog-mode/plugin-fw/tests/bootstrap.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'YITH_Plugin_FW_Panels_Helper' not found in wp-content/plugins/yith-woocommerce-catalog-mode/plugin-fw/tests/framework/plugin-options/wc-panel-options.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/yith-woocommerce-catalog-mode/plugin-fw/tests/unit-tests/class-yith-plugin-fw-tests-plugin-panel-wc.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 26 tag instead of maximum 10
yith-woocommerce-catalog-mode/init.php 77% from 13 tests
"YITH WooCommerce Catalog Mode" version 2.28.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("6.2" instead of "8.1.0")
- Description: Please keep the plugin description shorter than 140 characters (currently 387 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("yith-woocommerce-catalog-mode.php" instead of "init.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin45,805 lines of code in 318 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 172 | 2,793 | 5,566 | 15,235 |
JavaScript | 67 | 1,498 | 1,042 | 10,351 |
CSS | 21 | 1,661 | 244 | 9,185 |
PO File | 6 | 1,566 | 1,920 | 4,307 |
Sass | 34 | 652 | 15 | 3,432 |
SVG | 8 | 0 | 1 | 2,926 |
JSON | 3 | 0 | 0 | 128 |
Bourne Shell | 1 | 22 | 11 | 121 |
XML | 2 | 12 | 9 | 55 |
YAML | 1 | 13 | 11 | 52 |
Dockerfile | 1 | 5 | 0 | 7 |
INI | 1 | 1 | 0 | 5 |
SQL | 1 | 1 | 5 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 45.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 336.00 |
Average method complexity | 4.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 81.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 30 | |
▷ Abstract classes | 1 | 3.33% |
▷ Concrete classes | 29 | 96.67% |
▷ Final classes | 0 | 0.00% |
Methods | 399 | |
▷ Static methods | 54 | 13.53% |
▷ Public methods | 326 | 81.70% |
▷ Protected methods | 53 | 13.28% |
▷ Private methods | 20 | 5.01% |
Functions | 142 | |
▷ Named functions | 134 | 94.37% |
▷ Anonymous functions | 8 | 5.63% |
Constants | 20 | |
▷ Global constants | 19 | 95.00% |
▷ Class constants | 1 | 5.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
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/css/jquery-ui/images/ui-icons_cd0a0a_256x240.png | 3.69KB | 4.18KB | 0.00% |
plugin-fw/assets/images/no-sidebar.png | 0.92KB | 0.08KB | ▼ 90.72% |
plugin-fw/assets/css/jquery-ui/images/ui-icons_888888_256x240.png | 3.69KB | 4.18KB | 0.00% |
plugin-fw/assets/images/sidebar-right.png | 0.95KB | 0.11KB | ▼ 87.91% |
plugin-fw/assets/css/jquery-ui/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.08KB | 0.08KB | 0.00% |