Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.70ms] Passed 4 tests
Server-side resources used by easyCredit-Ratenkauf for wooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.28 ▼0.84 |
Dashboard /wp-admin | 3.31 ▼0.04 | 43.59 ▼20.34 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.88 ▼0.86 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.66 ▼16.77 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.45 ▲4.71 |
Server storage [IO: ▲2.88MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 395 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for easyCredit-Ratenkauf for wooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.27 ▼0.08 | 1.85 ▲0.10 | 40.68 ▼2.76 |
Dashboard /wp-admin | 2,195 ▲15 | 5.58 ▼0.08 | 89.17 ▼11.51 | 39.54 ▼2.78 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▼0.01 | 40.41 ▲1.23 | 36.61 ▼1.22 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.79 ▲0.25 | 694.15 ▼32.89 | 57.16 ▼11.30 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.19 ▼0.09 | 103.01 ▲4.89 | 45.76 ▲4.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% 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 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
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/wc-easycredit/templates/payment-method-title.php
- 169× 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/wc-easycredit/vendor/netzkollektiv/ratenkaufbyeasycredit-api-v3-php/test/Api/TransactionApiTest.php:43
- > PHP Fatal error
Uncaught Error: Interface 'Teambank\\RatenkaufByEasyCreditApiV3\\Model\\ModelInterface' not found in wp-content/plugins/wc-easycredit/vendor/netzkollektiv/ratenkaufbyeasycredit-api-v3-php/src/Model/MTan.php:29
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wc-easycredit/vendor/netzkollektiv/ratenkaufbyeasycredit-api-v3-php/test/Model/BankTest.php:42
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wc-easycredit/vendor/netzkollektiv/ratenkaufbyeasycredit-api-v3-php/test/Model/InterestsTest.php:26
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wc-easycredit/vendor/netzkollektiv/ratenkaufbyeasycredit-api-v3-php/test/Api/ServiceintegrationApiTest.php:43
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Psr7\\Request' not found in wp-content/plugins/wc-easycredit/vendor/guzzlehttp/psr7/src/ServerRequest.php:25
- > PHP Fatal error
Uncaught Error: Interface 'Teambank\\RatenkaufByEasyCreditApiV3\\Model\\ModelInterface' not found in wp-content/plugins/wc-easycredit/vendor/netzkollektiv/ratenkaufbyeasycredit-api-v3-php/src/Model/Employment.php:29
- > PHP Fatal error
Uncaught Error: Interface 'Teambank\\RatenkaufByEasyCreditApiV3\\Model\\ModelInterface' not found in wp-content/plugins/wc-easycredit/vendor/netzkollektiv/ratenkaufbyeasycredit-api-v3-php/src/Model/InvoiceAddressAllOf.php:29
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wc-easycredit/vendor/netzkollektiv/ratenkaufbyeasycredit-api-v3-php/test/Model/RefundRequestTest.php:42
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wc-easycredit/vendor/guzzlehttp/psr7/src/DroppingStream.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: payment, ratenkauf, pay by installments, woocommerce, easycredit
wc-easycredit/woocommerce-gateway-ratenkaufbyeasycredit.php 85% from 13 tests
The principal PHP file in "easyCredit-Ratenkauf for wooCommerce" v. 2.1.6 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wc-easycredit.php" instead of "woocommerce-gateway-ratenkaufbyeasycredit.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin30,381 lines of code in 368 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 261 | 6,165 | 21,567 | 25,324 |
Markdown | 79 | 1,134 | 0 | 2,539 |
PO File | 2 | 224 | 260 | 850 |
CSS | 6 | 15 | 13 | 399 |
JavaScript | 5 | 66 | 3 | 378 |
Sass | 1 | 64 | 0 | 363 |
JSON | 2 | 0 | 0 | 341 |
YAML | 5 | 25 | 2 | 93 |
XML | 2 | 0 | 0 | 38 |
Bourne Shell | 1 | 13 | 8 | 36 |
SVG | 4 | 0 | 0 | 20 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 9.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 320.00 |
Average method complexity | 1.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 27 | |
Traits | 3 | |
Classes | 207 | |
▷ Abstract classes | 2 | 0.97% |
▷ Concrete classes | 205 | 99.03% |
▷ Final classes | 8 | 3.90% |
Methods | 2,941 | |
▷ Static methods | 537 | 18.26% |
▷ Public methods | 2,828 | 96.16% |
▷ Protected methods | 45 | 1.53% |
▷ Private methods | 68 | 2.31% |
Functions | 48 | |
▷ Named functions | 30 | 62.50% |
▷ Anonymous functions | 18 | 37.50% |
Constants | 137 | |
▷ Global constants | 2 | 1.46% |
▷ Class constants | 135 | 98.54% |
▷ Public constants | 130 | 96.30% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 1.17MB with 0.73MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/easycredit-marketing-express-button.png | 98.60KB | 41.08KB | ▼ 58.34% |
assets/img/ratenkauf-clickandcollect.png | 62.37KB | 28.32KB | ▼ 54.59% |
blocks/easycredit-marketing-card.png | 247.53KB | 69.66KB | ▼ 71.86% |
assets/img/easycredit-marketing-widget.png | 96.28KB | 39.60KB | ▼ 58.87% |
assets/img/easycredit-marketing-flashbox.png | 150.43KB | 43.45KB | ▼ 71.12% |