Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼6.85ms] Passed 4 tests
A check of server-side resources used by Cointopay Gateway for Easy Digital Downloads
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.93 ▲4.49 |
Dashboard /wp-admin | 3.31 ▼0.04 | 43.35 ▼10.11 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.58 ▼0.44 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.24 ▼9.74 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 30.48 ▼7.12 |
Server storage [IO: ▲0.04MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Cointopay Gateway for Easy Digital Downloads
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.18 ▼1.49 | 2.26 ▲0.26 | 42.42 ▼4.84 |
Dashboard /wp-admin | 2,203 ▲15 | 5.76 ▲0.80 | 104.05 ▼1.08 | 39.14 ▼0.24 |
Posts /wp-admin/edit.php | 2,092 ▲6 | 2.05 ▼0.01 | 37.13 ▲1.47 | 34.32 ▲1.89 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.22 ▲0.05 | 639.24 ▼29.27 | 55.89 ▲4.79 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.28 ▲0.04 | 95.95 ▲1.43 | 41.80 ▼1.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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 take a closer look at the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'cointopay\\Merchant' not found in wp-content/plugins/cointopay-gateway-for-easy-digital-downloads/includes/cointopay/lib/Merchant/Order.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/cointopay-gateway-for-easy-digital-downloads/templates/payment-completed.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/cointopay-gateway-for-easy-digital-downloads/templates/payment-failed.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
No tags were detected
cointopay-gateway-for-easy-digital-downloads/easy-digital-downloads-cointopay-gateway.php 92% from 13 tests
The primary PHP file in "Cointopay Gateway for Easy Digital Downloads" version 1.7 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cointopay-gateway-for-easy-digital-downloads.php" instead of "easy-digital-downloads-cointopay-gateway.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin635 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 133 | 379 | 613 |
Markdown | 1 | 10 | 0 | 22 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 26.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 4.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 29 | |
▷ Static methods | 6 | 20.69% |
▷ Public methods | 22 | 75.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 24.14% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 3 | 60.00% |
▷ Class constants | 2 | 40.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin