Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼10.17ms] Passed 4 tests
An overview of server-side resources used by YITH WooCommerce Subscription
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 36.55 ▼5.62 |
Dashboard /wp-admin | 3.37 ▲0.02 | 46.38 ▼13.31 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 48.37 ▲0.53 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 83.29 ▼12.55 |
Media Library /wp-admin/upload.php | 3.29 ▲0.05 | 35.15 ▼9.19 |
Server storage [IO: ▲3.93MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 404 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
yit_recently_activated |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by YITH WooCommerce Subscription
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲34 | 14.37 ▼0.01 | 1.65 ▼0.06 | 39.36 ▼4.52 |
Dashboard /wp-admin | 2,204 ▲27 | 5.60 ▼0.04 | 93.84 ▼5.78 | 43.78 ▲1.09 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.94 ▼0.00 | 40.47 ▼1.59 | 36.95 ▼0.97 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.06 ▼0.14 | 583.25 ▼39.41 | 56.48 ▼1.08 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.23 ▼0.01 | 100.22 ▼2.01 | 42.02 ▼0.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- yit_recently_activated
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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 take a closer look at the following
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Trait 'WooCommerce\\PayPalCommerce\\WcGateway\\Processor\\OrderMetaTrait' not found in wp-content/plugins/yith-woocommerce-subscription/includes/gateways/woocommerce-paypal-payments/module/src/class-ywsbs-wc-paypal-payments-renewal-handler.php on line 32
- > PHP Fatal error
Uncaught Error: Interface 'WooCommerce\\PayPalCommerce\\Vendor\\Dhii\\Modular\\Module\\ModuleInterface' not found in wp-content/plugins/yith-woocommerce-subscription/includes/gateways/woocommerce-paypal-payments/module/src/class-ywsbs-wc-paypal-payments-module.php:26
- > PHP Fatal error
Trait 'YITH_WC_Subscription_Singleton_Trait' not found in wp-content/plugins/yith-woocommerce-subscription/includes/class.yith-wc-subscription.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'WooCommerce\\PayPalCommerce\\Subscription\\Helper\\SubscriptionHelper' not found in wp-content/plugins/yith-woocommerce-subscription/includes/gateways/woocommerce-paypal-payments/module/src/class-ywsbs-wc-paypal-payments-helper.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/yith-woocommerce-subscription/plugin-options/general-options.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% 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
7 plugin tags: subscription box, checkout page, subscription billing, recurring billing, subscription management...
yith-woocommerce-subscription/init.php 77% from 13 tests
The main PHP script in "YITH WooCommerce Subscription" version 3.0.1 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("yith-woocommerce-subscription.php" instead of "init.php")
- Requires at least: The required version number must match the one declared in readme.txt ("6.2" instead of "8.1")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 436 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected52,480 lines of code in 349 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 204 | 4,281 | 8,315 | 21,087 |
CSS | 21 | 1,958 | 288 | 10,385 |
JavaScript | 72 | 1,490 | 1,060 | 10,272 |
PO File | 6 | 1,566 | 1,920 | 4,307 |
Sass | 34 | 652 | 15 | 3,432 |
SVG | 11 | 0 | 2 | 2,981 |
XML | 1 | 0 | 0 | 16 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 112)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 39.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 336.00 |
Average method complexity | 4.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 112.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 52 | |
▷ Abstract classes | 2 | 3.85% |
▷ Concrete classes | 50 | 96.15% |
▷ Final classes | 1 | 2.00% |
Methods | 654 | |
▷ Static methods | 88 | 13.46% |
▷ Public methods | 539 | 82.42% |
▷ Protected methods | 88 | 13.46% |
▷ Private methods | 27 | 4.13% |
Functions | 190 | |
▷ Named functions | 171 | 90.00% |
▷ Anonymous functions | 19 | 10.00% |
Constants | 21 | |
▷ Global constants | 20 | 95.24% |
▷ Class constants | 1 | 4.76% |
▷ Public constants | 1 | 100.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
30 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/ui-icons_454545_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
plugin-fw/assets/images/sidebar-left.png | 0.95KB | 0.11KB | ▼ 87.91% |
plugin-fw/assets/css/jquery-ui/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.08KB | 0.17KB | 0.00% |
plugin-fw/assets/css/jquery-ui/images/ui-icons_454545_256x240.png | 3.69KB | 4.18KB | 0.00% |
plugin-fw/assets/css/jquery-ui/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.09KB | 0.14KB | 0.00% |