Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.84ms] Passed 4 tests
A check of server-side resources used by Subscription ePayco
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 38.28 ▼1.17 |
Dashboard /wp-admin | 3.33 ▼0.02 | 42.98 ▼21.99 |
Posts /wp-admin/edit.php | 3.39 ▲0.02 | 47.64 ▲5.75 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.02 | 82.78 ▼13.95 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 38.34 ▲7.71 |
Server storage [IO: ▲1.25MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 235 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_subscription_epayco |
New WordPress options |
---|
widget_theysaidso_widget |
subscription_epayco_se_redirect |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Subscription ePayco: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.32 ▲0.03 | 1.78 ▲0.06 | 42.84 ▲0.22 |
Dashboard /wp-admin | 2,198 ▲24 | 5.56 ▼0.02 | 80.15 ▼6.06 | 37.78 ▼5.57 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.03 ▲0.07 | 32.87 ▼6.19 | 35.21 ▲1.24 |
Add New Post /wp-admin/post-new.php | 1,542 ▲12 | 23.04 ▼0.12 | 661.28 ▲71.01 | 60.63 ▲8.73 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.22 ▲0.01 | 98.60 ▼3.42 | 41.89 ▼3.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- subscription_epayco_se_redirect
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 7× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/subscription-epayco/lib/vendor/rmccue/requests/examples/get.php
- > /wp-content/plugins/subscription-epayco/lib/vendor/rmccue/requests/bin/create_pear_package.php
- > /wp-content/plugins/subscription-epayco/lib/vendor/rmccue/requests/examples/session.php
- > /wp-content/plugins/subscription-epayco/lib/vendor/rmccue/requests/examples/multiple.php
- > /wp-content/plugins/subscription-epayco/lib/vendor/rmccue/requests/examples/basic-auth.php
- > /wp-content/plugins/subscription-epayco/lib/vendor/rmccue/requests/examples/post.php
- > /wp-content/plugins/subscription-epayco/lib/vendor/rmccue/requests/examples/cookie_jar.php
- 124× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/subscription-epayco/lib/vendor/rmccue/requests/library/Requests/Exception/HTTP/404.php:13
- > PHP Fatal error
Uncaught Error: Class 'Epayco\\Resource' not found in wp-content/plugins/subscription-epayco/lib/vendor/epayco/epayco-php/src/Resources/Cash.php:11
- > PHP Fatal error
Uncaught Error: Class 'WpOrg\\Requests\\Exception\\Http' not found in wp-content/plugins/subscription-epayco/lib/vendor/rmccue/requests/src/Exception/Http/Status414.php:17
- > PHP Fatal error
Uncaught Error: Class 'WpOrg\\Requests\\Utility\\CaseInsensitiveDictionary' not found in wp-content/plugins/subscription-epayco/lib/vendor/rmccue/requests/src/Response/Headers.php:20
- > PHP Fatal error
Uncaught Error: Interface 'WpOrg\\Requests\\HookManager' not found in wp-content/plugins/subscription-epayco/lib/vendor/rmccue/requests/src/Hooks.php:19
- > PHP Fatal error
Uncaught Error: Class 'WpOrg\\Requests\\Exception\\Http' not found in wp-content/plugins/subscription-epayco/lib/vendor/rmccue/requests/src/Exception/Http/Status500.php:17
- > PHP Fatal error
Uncaught Error: Class 'WpOrg\\Requests\\Exception\\Http' not found in wp-content/plugins/subscription-epayco/lib/vendor/rmccue/requests/src/Exception/Http/Status505.php:17
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/subscription-epayco/lib/vendor/rmccue/requests/library/Requests/Exception/HTTP/418.php:15
- > PHP Fatal error
Uncaught Error: Class 'WpOrg\\Requests\\Exception\\Http' not found in wp-content/plugins/subscription-epayco/lib/vendor/rmccue/requests/src/Exception/Http/Status408.php:17
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/subscription-epayco/lib/vendor/rmccue/requests/library/Requests/Exception/HTTP/405.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: A description for screenshot #2 is required in subscription-epayco/assets to your readme.txt
- Tags: You are using too many tags: 13 tag instead of maximum 10
subscription-epayco/subscription-epayco.php 85% from 13 tests
The main PHP script in "Subscription ePayco" version 3.0.11 is automatically included on every request by WordPress
You should first fix the following items:
- Requires at least: Required version does not match the one declared in readme.txt ("6.0" instead of "4.0")
- Git Repository: Please do not include Git repositories in your plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin14,324 lines of code in 219 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 183 | 2,559 | 7,142 | 11,589 |
Markdown | 13 | 605 | 0 | 1,744 |
JavaScript | 5 | 85 | 33 | 387 |
JSON | 6 | 0 | 0 | 308 |
PO File | 2 | 40 | 42 | 116 |
XML | 3 | 4 | 0 | 86 |
YAML | 3 | 11 | 6 | 66 |
Bourne Shell | 2 | 4 | 0 | 12 |
CSS | 1 | 2 | 0 | 12 |
Python | 1 | 1 | 0 | 4 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 10.63 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 3.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 15 | |
Interfaces | 9 | |
Traits | 0 | |
Classes | 157 | |
▷ Abstract classes | 1 | 0.64% |
▷ Concrete classes | 156 | 99.36% |
▷ Final classes | 45 | 28.85% |
Methods | 697 | |
▷ Static methods | 113 | 16.21% |
▷ Public methods | 608 | 87.23% |
▷ Protected methods | 76 | 10.90% |
▷ Private methods | 13 | 1.87% |
Functions | 21 | |
▷ Named functions | 12 | 57.14% |
▷ Anonymous functions | 9 | 42.86% |
Constants | 59 | |
▷ Global constants | 6 | 10.17% |
▷ Class constants | 53 | 89.83% |
▷ Public constants | 53 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 1.50KB | 0.91KB | ▼ 39.30% |