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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.72ms] Passed 4 tests
This is a short check of server-side resources used by Subscriptions for WooCommerce - Subscription Plugin for Collecting Recurring Revenue, Sell Membership Subscription Services & Products
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 34.31 ▼4.40 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.05 ▼5.51 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 46.11 ▼2.88 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 78.10 ▼18.10 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.98 ▲1.76 |
Server storage [IO: ▲11.76MB] [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: 151 new files
Database: no new tables, 15 new options
New WordPress options |
---|
db_upgraded |
wps_sfw_onboarding_data_sent |
wps_upgrade_sfw_wp_migration_option_check |
wps_sfw_multistep_product_create_done |
theysaidso_admin_options |
wps_sfw_multistep_done |
can_compress_scripts |
wps_sfw_place_order_button_text |
wps_sfw_onboarding_data_skipped |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
Subscriptions for WooCommerce - Subscription Plugin for Collecting Recurring Revenue, Sell Membership Subscription Services & Products: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.21 ▼0.55 | 1.71 ▼0.13 | 37.24 ▼8.32 |
Dashboard /wp-admin | 2,198 ▲17 | 5.60 ▼0.14 | 90.33 ▼15.75 | 38.29 ▼9.11 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 2.03 ▲0.07 | 40.99 ▲4.08 | 36.97 ▲2.40 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.84 ▼0.41 | 591.10 ▼72.74 | 51.63 ▲5.05 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.21 ▼0.00 | 101.57 ▲3.68 | 45.16 ▲3.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 15 options
- wps_sfw_onboarding_data_skipped
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- wps_sfw_onboarding_data_sent
- widget_recent-posts
- wps_sfw_enable_tracking
- can_compress_scripts
- widget_theysaidso_widget
- wps_sfw_place_order_button_text
- ...
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
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/subscriptions-for-woocommerce/public/partials/subscriptions-for-woocommerce-public-display.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/subscriptions-for-woocommerce/onboarding/templates/subscriptions-for-woocommerce-onboarding-template.php:15
- > PHP Warning
Use of undefined constant SUBSCRIPTIONS_FOR_WOOCOMMERCE_DIR_URL - assumed 'SUBSCRIPTIONS_FOR_WOOCOMMERCE_DIR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/subscriptions-for-woocommerce/admin/partials/subscriptions-for-woocommerce-subscriptions-free-vs-pro.php on line 11
- > PHP Warning
Use of undefined constant SUBSCRIPTIONS_FOR_WOOCOMMERCE_DIR_URL - assumed 'SUBSCRIPTIONS_FOR_WOOCOMMERCE_DIR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/subscriptions-for-woocommerce/admin/partials/subscriptions-for-woocommerce-subscriptions-free-vs-pro.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/subscriptions-for-woocommerce/admin/partials/subscriptions-for-woocommerce-subscriptions-free-vs-pro.php:54
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Requires php: Invalid plugin version format
- Screenshots: Add a description for screenshot #12 in subscriptions-for-woocommerce/assets to your readme.txt
subscriptions-for-woocommerce/subscriptions-for-woocommerce.php 85% from 13 tests
The primary PHP file in "Subscriptions for WooCommerce - Subscription Plugin for Collecting Recurring Revenue, Sell Membership Subscription Services & Products" version 1.5.7 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "5.1.0")
- Description: The description should be shorter than 140 characters (currently 386 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin80,806 lines of code in 87 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 15 | 1 | 0 | 35,248 |
JavaScript | 10 | 10,263 | 12,897 | 33,806 |
PHP | 48 | 1,833 | 3,668 | 8,964 |
CSS | 12 | 321 | 65 | 1,866 |
PO File | 1 | 379 | 459 | 906 |
XML | 1 | 0 | 0 | 16 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 46.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 234.00 |
Average method complexity | 5.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 24 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 267 | |
▷ Static methods | 14 | 5.24% |
▷ Public methods | 247 | 92.51% |
▷ Protected methods | 3 | 1.12% |
▷ Private methods | 17 | 6.37% |
Functions | 68 | |
▷ Named functions | 64 | 94.12% |
▷ Anonymous functions | 4 | 5.88% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ 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
25 PNG files occupy 0.34MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/feature-3.png | 12.53KB | 5.53KB | ▼ 55.83% |
admin/images/cross.png | 16.01KB | 7.31KB | ▼ 54.32% |
admin/images/timer.png | 1.22KB | 0.97KB | ▼ 20.93% |
admin/images/connected.png | 1.32KB | 1.07KB | ▼ 18.77% |
admin/images/logo.png | 64.10KB | 23.89KB | ▼ 62.74% |