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.16MB] [CPU: ▼3.55ms] Passed 4 tests
This is a short check of server-side resources used by SUBRE – Product Subscription for WooCommerce - Recurring Payments
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 35.53 ▲0.12 |
Dashboard /wp-admin | 3.48 ▲0.13 | 49.59 ▼12.64 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 49.08 ▼2.68 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 93.90 ▲2.30 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 36.13 ▲1.02 |
Server storage [IO: ▲1.73MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 117 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
woocommerce_queue_flush_rewrite_rules |
Browser metrics Passed 4 tests
An overview of browser requirements for SUBRE – Product Subscription for WooCommerce - Recurring Payments
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲62 | 14.31 ▲0.16 | 1.85 ▲0.11 | 41.81 ▼2.17 |
Dashboard /wp-admin | 2,204 ▲24 | 5.59 ▼0.02 | 91.18 ▲4.00 | 42.28 ▲2.60 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 1.97 ▼0.03 | 40.56 ▼0.28 | 36.05 ▲0.83 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.04 ▼0.50 | 596.66 ▼48.22 | 52.38 ▲7.50 |
Media Library /wp-admin/upload.php | 1,412 ▲9 | 4.27 ▲0.05 | 100.09 ▲2.54 | 44.40 ▲2.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- woocommerce_queue_flush_rewrite_rules
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function subre_get_subscription_view_link() in wp-content/plugins/subre-product-subscription-for-woo/templates/emails/subscription-renewal-info.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function is_rtl() in wp-content/plugins/subre-product-subscription-for-woo/templates/emails/subscriptions-list.php:11
- > PHP Notice
Undefined variable: sent_to_admin in wp-content/plugins/subre-product-subscription-for-woo/templates/emails/subscription-renewal-info.php on line 11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: recurring, woocommerce, subscribe, expire, sign-up...
subre-product-subscription-for-woo/subre-product-subscription-for-woo.php Passed 13 tests
"SUBRE – Product Subscription for WooCommerce - Recurring Payments" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
123 characters long description:
Convert WooCommerce simple products(physical or downloadable/virtual) to subscription products and allow recurring payments
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected14,807 lines of code in 102 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 12 | 1,362 | 375 | 7,417 |
PHP | 52 | 791 | 1,653 | 6,259 |
SVG | 1 | 0 | 0 | 565 |
CSS | 30 | 60 | 133 | 397 |
Sass | 7 | 29 | 0 | 169 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 24.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 108.00 |
Average method complexity | 3.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 32 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 32 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 274 | |
▷ Static methods | 73 | 26.64% |
▷ Public methods | 258 | 94.16% |
▷ Protected methods | 2 | 0.73% |
▷ Private methods | 14 | 5.11% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 16 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected