Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/paymill/lib/integration/pay_button.inc.php+397
Function create_function() is deprecated
Server metrics [RAM: ▼1.89MB] [CPU: ▼186.96ms] Passed 4 tests
This is a short check of server-side resources used by PAYMILL for WordPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.74 ▼1.09 | 10.27 ▼27.27 |
Dashboard /wp-admin | 1.76 ▼1.29 | 7.29 ▼38.24 |
Posts /wp-admin/edit.php | 1.76 ▼1.34 | 7.49 ▼41.65 |
Add New Post /wp-admin/post-new.php | 1.76 ▼3.67 | 7.45 ▼640.68 |
Media Library /wp-admin/upload.php | 1.76 ▼1.24 | 9.82 ▼24.24 |
Server storage [IO: ▲1.77MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 203 new files
Database: 4 new tables, 2 new options
New tables |
---|
wp_paymill_clients |
wp_paymill_cache_offers |
wp_paymill_transactions |
wp_paymill_subscriptions |
New WordPress options |
---|
paymill_db_version |
widget_paymill_pay_button_widget |
Browser metrics Passed 4 tests
A check of browser resources used by PAYMILL for WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,704 ▲108 | 15.90 ▼0.10 | 9.75 ▲2.14 | 47.53 ▼0.08 |
Dashboard /wp-admin | 2,988 ▲57 | 6.11 ▲0.18 | 134.05 ▼16.28 | 130.40 ▲11.96 |
Posts /wp-admin/edit.php | 2,764 ▲25 | 2.71 ▲0.01 | 61.16 ▼18.12 | 82.84 ▼11.33 |
Add New Post /wp-admin/post-new.php | 1,634 ▼49 | 22.01 ▲3.21 | 279.57 ▼89.29 | 123.47 ▲10.77 |
Media Library /wp-admin/upload.php | 1,776 ▼34 | 5.01 ▼0.00 | 143.50 ▼18.83 | 154.74 ▲32.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/paymill/lib/integration/pay_button.inc.php+397
Function create_function() is deprecated
- The uninstall procedure failed, leaving 1 table in the database
- wp_paymill_cache_offers
- This plugin did not uninstall successfully, leaving 1 option in the database
- widget_paymill_pay_button_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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 take a closer look at the following
- 64× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/paymill/lib/api/samples/authentication/authentication.php
- > /wp-content/plugins/paymill/lib/api/samples/clients/list_clients.php
- > /wp-content/plugins/paymill/lib/api/samples/payments/get_payment_details.php
- > /wp-content/plugins/paymill/lib/api/samples/transactions/create_new_transaction_with_client_and_payment.php
- > /wp-content/plugins/paymill/lib/api/samples/payments/remove_payment.php
- > /wp-content/plugins/paymill/lib/api/samples/payments/list_payments.php
- > /wp-content/plugins/paymill/lib/api/samples/webhooks/remove_webhook.php
- > /wp-content/plugins/paymill/lib/api/samples/refunds/list_refunds.php
- > /wp-content/plugins/paymill/lib/api/samples/subscriptions/pause_subscription.php
- > /wp-content/plugins/paymill/lib/api/samples/offers/export_offers_list.php
- 99× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/paymill/lib/api/tests/unit/Paymill/API/CurlTest.php:10
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/paymill/lib/api/tests/unit/Paymill/Models/Request/TransactionTest.php:12
- > PHP Notice
Trying to get property 'code' of non-object in wp-content/plugins/paymill/lib/tpl/mgm/payment/paymill/html/settings_box.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/paymill/lib/integration/pay_button.inc.php:259
- > PHP Fatal error
Uncaught Error: Class 'Paymill\\Models\\Request\\Base' not found in wp-content/plugins/paymill/lib/api/lib/Paymill/Models/Request/Subscription.php:12
- > PHP Notice
Trying to get property 'code' of non-object in wp-content/plugins/paymill/lib/tpl/mgm/payment/paymill/html/settings_box.php on line 5
- > PHP Notice
Undefined variable: data in wp-content/plugins/paymill/lib/tpl/mgm/payment/paymill/html/settings_box.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/paymill/lib/tpl/mgm/payment/paymill/html/settings.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/paymill/lib/api/tests/unit/Paymill/Models/Request/ClientTest.php:11
- > PHP Fatal error
Uncaught Error: Class 'Paymill\\Models\\Response\\Base' not found in wp-content/plugins/paymill/lib/api/lib/Paymill/Models/Response/Webhook.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please describe screenshot #7 in paymill/assets to your readme.txt
- Donate link: Invalid url: ""
- Tags: Please delete some tags, you are using 16 tag instead of maximum 10
paymill/paymill.php 92% from 13 tests
The primary PHP file in "PAYMILL for WordPress" version 1.12a is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "1.12a")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected15,700 lines of code in 163 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 143 | 3,475 | 6,054 | 10,794 |
PO File | 5 | 1,336 | 1,467 | 3,246 |
JavaScript | 8 | 169 | 469 | 1,184 |
CSS | 2 | 12 | 9 | 271 |
Markdown | 1 | 48 | 0 | 114 |
Ant | 1 | 8 | 0 | 46 |
JSON | 1 | 3 | 0 | 19 |
XML | 1 | 1 | 0 | 13 |
YAML | 1 | 2 | 0 | 13 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 11.49 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 222.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 76 | |
▷ Abstract classes | 3 | 3.95% |
▷ Concrete classes | 73 | 96.05% |
▷ Final classes | 0 | 0.00% |
Methods | 768 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 643 | 83.72% |
▷ Protected methods | 71 | 9.24% |
▷ Private methods | 54 | 7.03% |
Functions | 43 | |
▷ Named functions | 39 | 90.70% |
▷ Anonymous functions | 4 | 9.30% |
Constants | 24 | |
▷ Global constants | 21 | 87.50% |
▷ Class constants | 3 | 12.50% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
19 PNG files occupy 0.07MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/img/logo.png | 2.52KB | 2.44KB | ▼ 3.33% |
lib/img/icon.png | 0.44KB | 0.50KB | 0.00% |
lib/img/logos/elv.png | 3.14KB | 1.58KB | ▼ 49.53% |
lib/img/logo_small.png | 2.25KB | 1.79KB | ▼ 20.72% |
lib/img/logos/discover.png | 1.92KB | 1.40KB | ▼ 27.12% |