Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.30ms] Passed 4 tests
A check of server-side resources used by Woo Stripe Subscription
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.18 ▲1.34 |
Dashboard /wp-admin | 3.31 ▲0.00 | 49.49 ▼0.10 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 52.75 ▲3.54 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.53 ▼8.46 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.08 ▼1.99 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Just a few items left to fix
- The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/woo-stripe-subscription/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Woo Stripe Subscription
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲54 | 14.48 ▲0.10 | 2.00 ▲0.13 | 41.26 ▼4.58 |
Dashboard /wp-admin | 2,224 ▲21 | 4.85 ▼1.05 | 108.43 ▲1.49 | 41.05 ▼0.21 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 2.13 ▲0.07 | 44.29 ▲7.80 | 36.28 ▼0.00 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.03 ▲5.49 | 648.34 ▼16.93 | 62.58 ▲1.50 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.25 ▼0.03 | 94.40 ▼8.10 | 41.82 ▼0.07 |
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 were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: stripe, subscription, subscriptions, woocommerce, dss...
woo-stripe-subscription/wss.php 85% from 13 tests
The main file in "Woo Stripe Subscription" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-stripe-subscription.php" instead of "wss.php")
- Description: Keep the plugin description shorter than 140 characters (currently 187 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
Everything looks great! No dangerous files found in this plugin3,337 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 334 | 1,592 | 2,604 |
PO File | 2 | 268 | 328 | 718 |
Markdown | 1 | 7 | 0 | 15 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 22.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 95.00 |
Average method complexity | 3.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 106 | |
▷ Static methods | 14 | 13.21% |
▷ Public methods | 91 | 85.85% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 15 | 14.15% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG files were detected