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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.17ms] Passed 4 tests
Analyzing server-side resources used by Minimum Signup Period For WooCommerce Subscriptions
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.91 ▼7.54 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.46 ▲0.86 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.58 ▲0.07 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 92.93 ▼7.10 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.51 ▼2.12 |
Woo Signup Period /wp-admin/options-general.php?page=wsmsp | 3.19 | 29.01 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Minimum Signup Period For WooCommerce Subscriptions: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 13.30 ▼1.16 | 1.78 ▼0.83 | 48.42 ▼2.01 |
Dashboard /wp-admin | 2,213 ▲25 | 4.86 ▼0.04 | 100.43 ▼12.05 | 40.97 ▼0.11 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.02 ▼0.04 | 40.52 ▼0.59 | 35.36 ▼1.97 |
Add New Post /wp-admin/post-new.php | 1,545 ▲17 | 18.39 ▼0.08 | 624.85 ▼21.61 | 63.36 ▲7.39 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.23 ▲0.00 | 94.58 ▼1.02 | 41.30 ▼2.30 |
Woo Signup Period /wp-admin/options-general.php?page=wsmsp | 901 | 2.03 | 24.96 | 32.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wsmsp
- > Notice in wp-content/plugins/minimum-signup-period-for-woo-subscriptions/admin-options.php+73
Undefined index: wsmsp_custom_data
- > GET request to /wp-admin/options-general.php?page=wsmsp
- > Notice in wp-content/plugins/minimum-signup-period-for-woo-subscriptions/admin-options.php+86
Trying to access array offset on value of type bool
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
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/minimum-signup-period-for-woo-subscriptions/wsmsp.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/minimum-signup-period-for-woo-subscriptions/admin-options.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 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: signup, trial, term, upfront, woocommerce...
minimum-signup-period-for-woo-subscriptions/wsmsp.php 77% from 13 tests
"Minimum Signup Period For WooCommerce Subscriptions" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 283 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("minimum-signup-period-for-woo-subscriptions.php" instead of "wsmsp.php")
- Requires at least: The required version number did not match the one declared in readme.txt ("4.7" instead of "3.4")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin348 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 99 | 50 | 348 |
PHP code Passed 2 tests
Analyzing 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.33 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected