Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼9.80ms] Passed 4 tests
A check of server-side resources used by Payment Gateway using Mollie for Easy Digital Downloads
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 37.84 ▼4.16 |
Dashboard /wp-admin | 3.33 ▼0.02 | 45.43 ▼14.21 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.23 ▲1.12 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 81.13 ▼20.75 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.30 ▼0.06 |
Server storage [IO: ▲2.37MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 438 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Payment Gateway using Mollie for Easy Digital Downloads
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.47 ▲0.10 | 1.77 ▲0.13 | 42.41 ▼0.12 |
Dashboard /wp-admin | 2,195 ▲18 | 5.48 ▼0.15 | 82.34 ▼6.33 | 42.45 ▲2.84 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▼0.01 | 39.99 ▲4.50 | 37.10 ▲0.10 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.30 ▲0.07 | 657.42 ▼26.52 | 51.37 ▼1.60 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.24 ▲0.03 | 98.31 ▼1.02 | 41.63 ▼2.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
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 everything seems fine, this is not an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 50× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/edd-mollie-gateway/vendor/mollie/mollie-api-php/examples/payments/create-routed-payment.php
- > /wp-content/plugins/edd-mollie-gateway/vendor/mollie/mollie-api-php/examples/customers/update-customer.php
- > /wp-content/plugins/edd-mollie-gateway/vendor/mollie/mollie-api-php/examples/payments/list-payments.php
- > /wp-content/plugins/edd-mollie-gateway/vendor/mollie/mollie-api-php/examples/orders/refund-order-partially.php
- > /wp-content/plugins/edd-mollie-gateway/vendor/mollie/mollie-api-php/examples/payments/webhook.php
- > /wp-content/plugins/edd-mollie-gateway/vendor/mollie/mollie-api-php/examples/payment-links/create-payment-link.php
- > /wp-content/plugins/edd-mollie-gateway/vendor/mollie/mollie-api-php/examples/settlements/list-settlements.php
- > /wp-content/plugins/edd-mollie-gateway/vendor/mollie/mollie-api-php/examples/payments/create-ideal-payment.php
- > /wp-content/plugins/edd-mollie-gateway/vendor/mollie/mollie-api-php/examples/shipments/update-shipment.php
- > /wp-content/plugins/edd-mollie-gateway/vendor/mollie/mollie-api-php/examples/orders/refund-order-completely.php
- 249× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
require_once(wp-content/plugins/edd-mollie-gateway/vendor/mollie/mollie-api-php/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/edd-mollie-gateway/vendor/mollie/mollie-api-php/examples/initialize.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'Mollie\\Api\\Resources\\CursorCollection' not found in wp-content/plugins/edd-mollie-gateway/vendor/mollie/mollie-api-php/src/Resources/CustomerCollection.php:5
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/edd-mollie-gateway/vendor/guzzlehttp/promises/src/Promise.php:10
- > PHP Fatal error
Uncaught Error: Class 'Mollie\\Api\\Resources\\BaseResource' not found in wp-content/plugins/edd-mollie-gateway/vendor/mollie/mollie-api-php/src/Resources/Customer.php:7
- > PHP Fatal error
Uncaught Error: Class 'Mollie\\Api\\Resources\\BaseCollection' not found in wp-content/plugins/edd-mollie-gateway/vendor/mollie/mollie-api-php/src/Resources/OrderLineCollection.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mollie\\Api\\Endpoints\\CollectionEndpointAbstract' not found in wp-content/plugins/edd-mollie-gateway/vendor/mollie/mollie-api-php/src/Endpoints/PaymentLinkEndpoint.php:10
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/edd-mollie-gateway/vendor/mollie/mollie-api-php/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/edd-mollie-gateway/vendor/mollie/mollie-api-php/examples/initialize.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/edd-mollie-gateway/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php:7
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/edd-mollie-gateway/vendor/mollie/mollie-api-php/examples/payments/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/edd-mollie-gateway/vendor/mollie/mollie-api-php/examples/payments/create-routed-payment-with-future-release-date.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'Mollie\\Api\\Endpoints\\CollectionEndpointAbstract' not found in wp-content/plugins/edd-mollie-gateway/vendor/mollie/mollie-api-php/src/Endpoints/OrderRefundEndpoint.php:9
- > PHP Warning
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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Too many tags (20 tag instead of maximum 10); only the first 5 tags are used in your directory listing
edd-mollie-gateway/edd-mollie-gateway.php Passed 13 tests
"Payment Gateway using Mollie for Easy Digital Downloads" version 3.2.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
69 characters long description:
Accept payments via Mollie in your Easy Digital Downloads (EDD) store
Code Analysis 97% from 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
No dangerous file extensions were detected43,152 lines of code in 416 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 324 | 4,703 | 13,593 | 36,453 |
Markdown | 15 | 1,227 | 0 | 3,636 |
JSON | 12 | 0 | 0 | 1,329 |
SVG | 54 | 0 | 4 | 868 |
PO File | 1 | 247 | 499 | 558 |
CSS | 1 | 12 | 0 | 129 |
YAML | 5 | 22 | 3 | 91 |
JavaScript | 2 | 8 | 1 | 69 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 10.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 2.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 20 | |
Interfaces | 17 | |
Traits | 2 | |
Classes | 217 | |
▷ Abstract classes | 8 | 3.69% |
▷ Concrete classes | 209 | 96.31% |
▷ Final classes | 25 | 11.96% |
Methods | 1,490 | |
▷ Static methods | 183 | 12.28% |
▷ Public methods | 1,163 | 78.05% |
▷ Protected methods | 166 | 11.14% |
▷ Private methods | 161 | 10.81% |
Functions | 176 | |
▷ Named functions | 79 | 44.89% |
▷ Anonymous functions | 97 | 55.11% |
Constants | 329 | |
▷ Global constants | 81 | 24.62% |
▷ Class constants | 248 | 75.38% |
▷ Public constants | 248 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/wpo-helper.png | 17.86KB | 5.25KB | ▼ 70.62% |