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
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.87ms] Passed 4 tests
An overview of server-side resources used by subscrEASY
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.39 ▼0.07 | 27.05 ▼14.36 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.52 ▼5.82 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 46.31 ▲2.11 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 88.11 ▲3.75 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 31.90 ▼5.40 |
subscrEASY /wp-admin/options-general.php?page=subscreasy | 3.26 | 30.51 |
Server storage [IO: ▲0.10MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
subscreasy |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for subscrEASY
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,899 ▲153 | 13.99 ▼0.32 | 5.69 ▲3.84 | 38.79 ▼7.85 |
Dashboard /wp-admin | 2,217 ▲29 | 5.89 ▼0.01 | 96.94 ▼0.12 | 38.47 ▼4.24 |
Posts /wp-admin/edit.php | 2,100 ▲14 | 2.02 ▼0.01 | 39.48 ▲2.25 | 35.09 ▲1.47 |
Add New Post /wp-admin/post-new.php | 1,524 ▼12 | 23.37 ▲0.28 | 630.51 ▼15.00 | 54.44 ▼3.98 |
Media Library /wp-admin/upload.php | 1,399 ▲17 | 4.23 ▼0.10 | 106.49 ▲6.75 | 45.17 ▲0.86 |
subscrEASY /wp-admin/options-general.php?page=subscreasy | 856 | 1.77 | 28.43 | 34.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- subscreasy
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/subscreasy/includes/views/subscreasy-button.php
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/subscreasy/includes/admin/views/options.php:7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/subscreasy/includes/views/subscreasy-button.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/subscreasy/includes/views/subscreasy-button.php on line 6
- > PHP Notice
Undefined variable: atts in wp-content/plugins/subscreasy/includes/views/subscreasy-button.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/subscreasy/includes/views/subscreasy-button.php on line 7
- > PHP Notice
Undefined variable: atts in wp-content/plugins/subscreasy/includes/views/subscreasy-button.php on line 7
- > PHP Notice
Undefined variable: atts in wp-content/plugins/subscreasy/includes/views/subscreasy-button.php on line 6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: recurring billing, recurring, billing, hosting, subscription box...
subscreasy/subscreasy.php Passed 13 tests
The main PHP script in "subscrEASY" version 1.0.0 is automatically included on every request by WordPress
29 characters long description:
subscrEASY's official plugin.
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
Good job! No executable or dangerous file extensions detected706 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 63 | 72 | 315 |
PHP | 6 | 55 | 187 | 218 |
SVG | 1 | 0 | 0 | 148 |
CSS | 1 | 3 | 0 | 22 |
Markdown | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 4.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 5 | 31.25% |
▷ Public methods | 14 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 12.50% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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