Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.95ms] Passed 4 tests
An overview of server-side resources used by YITH Pre-Order for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.95 ▼4.32 |
Dashboard /wp-admin | 3.33 ▼0.01 | 47.83 ▼15.59 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.94 ▲3.04 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 90.23 ▲1.07 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.26 ▲4.58 |
Server storage [IO: ▲4.32MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 339 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for YITH Pre-Order for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲49 | 14.15 ▼0.20 | 1.64 ▼0.02 | 37.01 ▼10.53 |
Dashboard /wp-admin | 2,198 ▲20 | 5.59 ▲0.01 | 94.43 ▼19.43 | 42.60 ▼0.40 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.97 ▲0.03 | 39.25 ▲2.47 | 36.79 ▲0.50 |
Add New Post /wp-admin/post-new.php | 1,532 ▼3 | 23.61 ▲0.61 | 593.13 ▲5.67 | 56.59 ▼0.09 |
Media Library /wp-admin/upload.php | 1,409 ▲6 | 4.18 ▲0.03 | 95.64 ▼3.97 | 41.10 ▼0.02 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% 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
- 9× PHP files output text when accessed directly:
- > /wp-content/plugins/yith-pre-order-for-woocommerce/includes/class-yith-pre-order.php
- > /wp-content/plugins/yith-pre-order-for-woocommerce/includes/class-yith-pre-order-my-account.php
- > /wp-content/plugins/yith-pre-order-for-woocommerce/includes/class-yith-pre-order-product.php
- > /wp-content/plugins/yith-pre-order-for-woocommerce/includes/class-yith-pre-order-edit-product-page.php
- > /wp-content/plugins/yith-pre-order-for-woocommerce/includes/emails/class-yith-pre-order-confirmed-email.php
- > /wp-content/plugins/yith-pre-order-for-woocommerce/includes/class-yith-pre-order-download-links.php
- > /wp-content/plugins/yith-pre-order-for-woocommerce/includes/emails/class-yith-pre-order-new-pre-order-email.php
- > /wp-content/plugins/yith-pre-order-for-woocommerce/includes/class-yith-pre-order-frontend.php
- > /wp-content/plugins/yith-pre-order-for-woocommerce/includes/class-yith-pre-order-admin.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: A description for screenshot #9 is required in yith-pre-order-for-woocommerce/assets to your readme.txt
yith-pre-order-for-woocommerce/init.php 77% from 13 tests
The main PHP script in "YITH Pre-Order for WooCommerce" version 2.18.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 361 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("yith-pre-order-for-woocommerce.php" instead of "init.php")
- Requires at least: Required version does not match the one declared in readme.txt ("6.2" instead of "8.1")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected44,361 lines of code in 267 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 181 | 2,988 | 6,375 | 16,685 |
JavaScript | 51 | 1,531 | 1,137 | 11,132 |
CSS | 20 | 1,678 | 244 | 9,271 |
PO File | 6 | 1,566 | 1,920 | 4,307 |
SVG | 8 | 0 | 1 | 2,926 |
XML | 1 | 12 | 9 | 40 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 41.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 336.00 |
Average method complexity | 3.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 35 | |
▷ Abstract classes | 1 | 2.86% |
▷ Concrete classes | 34 | 97.14% |
▷ Final classes | 0 | 0.00% |
Methods | 484 | |
▷ Static methods | 61 | 12.60% |
▷ Public methods | 410 | 84.71% |
▷ Protected methods | 53 | 10.95% |
▷ Private methods | 21 | 4.34% |
Functions | 160 | |
▷ Named functions | 152 | 95.00% |
▷ Anonymous functions | 8 | 5.00% |
Constants | 19 | |
▷ Global constants | 18 | 94.74% |
▷ Class constants | 1 | 5.26% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
51 PNG files occupy 0.73MB with 0.29MB 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-bg_flat_0_aaaaaa_40x100.png | 0.08KB | 0.08KB | 0.00% |
assets/images/03-icon.png | 1.62KB | 0.91KB | ▼ 44.04% |
assets/images/06-bg.png | 5.47KB | 2.77KB | ▼ 49.40% |
assets/images/upgrade.png | 1.65KB | 1.17KB | ▼ 28.95% |
assets/images/02-icon.png | 1.42KB | 0.38KB | ▼ 73.63% |