Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼15.04ms] Passed 4 tests
Server-side resources used by Mollie for Contact Form 7
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 39.45 ▼7.55 |
Dashboard /wp-admin | 3.36 ▲0.05 | 31.90 ▼15.81 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 35.00 ▼10.66 |
Add New Post /wp-admin/post-new.php | 5.60 ▼0.29 | 70.63 ▼26.13 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 30.56 ▼2.87 |
Mollie /wp-admin/admin.php?page=wpcf7-mollie-config | 3.33 | 27.90 |
Server storage [IO: ▲1.85MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 377 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_cf7_mollie |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
cf7_mollie_db_version |
widget_recent-comments |
Browser metrics Passed 4 tests
Mollie for Contact Form 7: 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,840 ▲69 | 14.78 ▲0.49 | 1.88 ▼0.47 | 43.80 ▼0.84 |
Dashboard /wp-admin | 2,208 ▲20 | 5.88 ▲0.00 | 103.87 ▼3.78 | 39.42 ▲0.06 |
Posts /wp-admin/edit.php | 2,100 ▲14 | 2.06 ▲0.00 | 42.08 ▲4.11 | 35.44 ▼0.40 |
Add New Post /wp-admin/post-new.php | 1,546 ▲135 | 18.67 ▲0.82 | 614.70 ▼21.72 | 52.31 ▲0.41 |
Media Library /wp-admin/upload.php | 1,396 ▲5 | 4.23 ▼0.01 | 92.86 ▼11.39 | 42.29 ▼5.20 |
Mollie /wp-admin/admin.php?page=wpcf7-mollie-config | 1,286 | 2.15 | 24.19 | 32.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=wpcf7-mollie-config
- > Warning in wp-includes/functions.php+6691
file_get_contents(wp-content/plugins/contact-form-7/wp-contact-form-7.php): failed to open stream: No such file or directory
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 take a closer look at the following
- 50× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/cf7-mollie/includes/libs/vendor/mollie/mollie-api-php/examples/payments/list-payments.php
- > /wp-content/plugins/cf7-mollie/includes/libs/vendor/mollie/mollie-api-php/examples/customers/update-customer.php
- > /wp-content/plugins/cf7-mollie/includes/libs/vendor/mollie/mollie-api-php/examples/profiles/update-profile.php
- > /wp-content/plugins/cf7-mollie/includes/libs/vendor/mollie/mollie-api-php/examples/orders/update-order-line.php
- > /wp-content/plugins/cf7-mollie/includes/libs/vendor/mollie/mollie-api-php/examples/subscriptions/cancel-subscription.php
- > /wp-content/plugins/cf7-mollie/includes/libs/vendor/mollie/mollie-api-php/examples/orders/list-methods.php
- > /wp-content/plugins/cf7-mollie/includes/libs/vendor/mollie/mollie-api-php/examples/initialize.php
- > /wp-content/plugins/cf7-mollie/includes/libs/vendor/mollie/mollie-api-php/examples/orders/refund-order-partially.php
- > /wp-content/plugins/cf7-mollie/includes/libs/vendor/mollie/mollie-api-php/examples/settlements/list-settlements.php
- > /wp-content/plugins/cf7-mollie/includes/libs/vendor/mollie/mollie-api-php/examples/payments/list-methods.php
- 245× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Mollie\\Api\\Endpoints\\CollectionEndpointAbstract' not found in wp-content/plugins/cf7-mollie/includes/libs/vendor/mollie/mollie-api-php/src/Endpoints/OrganizationEndpoint.php:9
- > PHP Fatal error
Uncaught Error: Class 'Mollie\\Api\\Resources\\CursorCollection' not found in wp-content/plugins/cf7-mollie/includes/libs/vendor/mollie/mollie-api-php/src/Resources/CaptureCollection.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mollie\\Api\\Resources\\BaseResource' not found in wp-content/plugins/cf7-mollie/includes/libs/vendor/mollie/mollie-api-php/src/Resources/Subscription.php:8
- > PHP Fatal error
Uncaught Error: Class 'Mollie\\Api\\Resources\\BaseResource' not found in wp-content/plugins/cf7-mollie/includes/libs/vendor/mollie/mollie-api-php/src/Resources/Partner.php:5
- > PHP Warning
require_once(wp-content/plugins/cf7-mollie/includes/libs/vendor/mollie/mollie-api-php/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/cf7-mollie/includes/libs/vendor/mollie/mollie-api-php/examples/initialize.php on line 9
- > PHP Warning
require_once(wp-content/plugins/cf7-mollie/includes/libs/vendor/mollie/mollie-api-php/examples/payments/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/cf7-mollie/includes/libs/vendor/mollie/mollie-api-php/examples/payments/create-routed-payment.php on line 11
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/cf7-mollie/includes/libs/vendor/guzzlehttp/psr7/src/MultipartStream.php:11
- > PHP Fatal error
Uncaught Error: Class 'Mollie\\Api\\Resources\\CursorCollection' not found in wp-content/plugins/cf7-mollie/includes/libs/vendor/mollie/mollie-api-php/src/Resources/ClientCollection.php:5
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/cf7-mollie/includes/libs/vendor/mollie/mollie-api-php/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/cf7-mollie/includes/libs/vendor/mollie/mollie-api-php/examples/initialize.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'Mollie\\Api\\Resources\\BaseResource' not found in wp-content/plugins/cf7-mollie/includes/libs/vendor/mollie/mollie-api-php/src/Resources/Capture.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
7 plugin tags: paypal, contact form 7 mollie, payment form, donate, donatie...
cf7-mollie/cf7-mollie.php 92% from 13 tests
"Mollie for Contact Form 7" version 5.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected39,536 lines of code in 351 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 316 | 4,280 | 12,314 | 34,553 |
Markdown | 16 | 1,283 | 0 | 3,820 |
JSON | 12 | 0 | 0 | 640 |
PO File | 1 | 119 | 116 | 307 |
JavaScript | 1 | 12 | 12 | 100 |
CSS | 2 | 17 | 4 | 82 |
XML | 1 | 0 | 0 | 15 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 9.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 21 | |
Interfaces | 17 | |
Traits | 2 | |
Classes | 200 | |
▷ Abstract classes | 5 | 2.50% |
▷ Concrete classes | 195 | 97.50% |
▷ Final classes | 25 | 12.82% |
Methods | 1,210 | |
▷ Static methods | 176 | 14.55% |
▷ Public methods | 954 | 78.84% |
▷ Protected methods | 101 | 8.35% |
▷ Private methods | 155 | 12.81% |
Functions | 217 | |
▷ Named functions | 120 | 55.30% |
▷ Anonymous functions | 97 | 44.70% |
Constants | 337 | |
▷ Global constants | 77 | 22.85% |
▷ Class constants | 260 | 77.15% |
▷ Public constants | 260 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin