Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼10.87ms] Passed 4 tests
Server-side resources used by WooCommerce Subscription Shortcodes
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 36.05 ▼2.34 |
Dashboard /wp-admin | 3.33 ▼0.02 | 44.83 ▼19.91 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.14 ▼0.51 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 80.86 ▼20.70 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.50 ▲2.54 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce Subscription Shortcodes
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲31 | 14.39 ▲0.14 | 1.67 ▼0.02 | 40.97 ▼3.15 |
Dashboard /wp-admin | 2,195 ▲14 | 5.54 ▼0.18 | 82.72 ▼18.94 | 39.87 ▲0.78 |
Posts /wp-admin/edit.php | 2,106 ▲24 | 2.03 ▲0.03 | 39.55 ▲4.04 | 37.33 ▲0.53 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.15 ▲0.23 | 660.54 ▲19.35 | 54.31 ▼7.95 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.21 ▼0.02 | 103.48 ▼11.82 | 44.87 ▼5.05 |
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: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 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 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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/subscription-shortcodes/includes/class-wcs-shortcodes.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
subscription-shortcodes/woocommerce-subscription-shortcodes.php 77% from 13 tests
The principal PHP file in "WooCommerce Subscription Shortcodes" v. 1.0.0 Beta... is loaded by WordPress automatically on each request
It is important to fix the following:
- Version: The version number should only use digits and periods (ex. "1.0.3" instead of "1.0.0 Beta...")
- Main file name: Name the main plugin file the same as the plugin slug ("subscription-shortcodes.php" instead of "woocommerce-subscription-shortcodes.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin881 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 251 | 277 | 692 |
Markdown | 2 | 90 | 0 | 189 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 80.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 156.00 |
Average method complexity | 6.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 21 | 67.74% |
▷ Public methods | 31 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.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
There were not PNG files found in your plugin