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.01MB] [CPU: ▼5.36ms] Passed 4 tests
An overview of server-side resources used by S2 Subscription for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 43.31 ▲0.57 |
Dashboard /wp-admin | 3.32 ▲0.02 | 54.61 ▲10.06 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.46 ▼6.81 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 83.72 ▼15.68 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.70 ▲0.48 |
Server storage [IO: ▲0.39MB] [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: 76 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for S2 Subscription for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.59 ▼0.74 | 4.86 ▲2.99 | 42.62 ▼0.98 |
Dashboard /wp-admin | 2,212 ▲21 | 5.90 ▲1.03 | 111.20 ▲7.20 | 42.59 ▲1.27 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.00 ▼0.00 | 33.50 ▼7.65 | 35.59 ▼1.02 |
Add New Post /wp-admin/post-new.php | 1,520 ▼21 | 17.65 ▼5.50 | 646.56 ▲53.46 | 47.25 ▼5.52 |
Media Library /wp-admin/upload.php | 1,397 ▲6 | 4.23 ▼0.00 | 94.79 ▼4.21 | 42.70 ▼1.16 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Donate link: Invalid URI found ("")
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6, #7, #8 in s2-subscription-for-woocommerce/assets to your readme.txt
s2-subscription-for-woocommerce/init.php 69% from 13 tests
The primary PHP file in "S2 Subscription for WooCommerce" version 1.0.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("s2-subscription-for-woocommerce.php" instead of "init.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 174 characters long)
- Requires at least: Required version does not match the one declared in readme.txt ("5.3" instead of "4.7.0")
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
No dangerous file extensions were detected6,935 lines of code in 72 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 70 | 2,420 | 3,395 | 6,819 |
JavaScript | 2 | 51 | 33 | 116 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 19.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 123.00 |
Average method complexity | 3.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 46 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 46 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 321 | |
▷ Static methods | 23 | 7.17% |
▷ Public methods | 300 | 93.46% |
▷ Protected methods | 17 | 5.30% |
▷ Private methods | 4 | 1.25% |
Functions | 28 | |
▷ Named functions | 27 | 96.43% |
▷ Anonymous functions | 1 | 3.57% |
Constants | 10 | |
▷ Global constants | 9 | 90.00% |
▷ Class constants | 1 | 10.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
No PNG files were detected