Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.80ms] Passed 4 tests
An overview of server-side resources used by EBANX Payment Gateway for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 45.25 ▼1.59 |
Dashboard /wp-admin | 3.31 ▲0.00 | 52.21 ▼2.41 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.65 ▼6.82 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.11 ▼11.90 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.61 ▼2.05 |
Server storage [IO: ▲1.04MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Just a few items left to fix
- Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/ebanx-payment-gateway-for-woocommerce/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 356 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for EBANX Payment Gateway for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲94 | 13.20 ▼1.18 | 2.22 ▲0.28 | 40.91 ▼3.84 |
Dashboard /wp-admin | 2,224 ▲21 | 4.83 ▼0.10 | 99.12 ▼23.12 | 39.17 ▼8.42 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.97 ▼0.03 | 35.85 ▲1.65 | 38.22 ▲2.34 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 23.12 ▲5.60 | 684.48 ▼28.38 | 64.42 ▲14.61 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.20 ▲0.00 | 95.63 ▼12.45 | 43.54 ▼3.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 97× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WC_EBANX_Logger' not found in wp-content/plugins/ebanx-payment-gateway-for-woocommerce/services/loggers/class-wc-ebanx-payment-by-link-logger.php:6
- > PHP Fatal error
Uncaught Error: Class 'Ebanx\\Benjamin\\Services\\Adapters\\PaymentAdapter' not found in wp-content/plugins/ebanx-payment-gateway-for-woocommerce/vendor/ebanx/benjamin/src/Services/Adapters/EftPaymentAdapter.php:4
- > PHP Warning
require_once(payment-processing.php): failed to open stream: No such file or directory in wp-content/plugins/ebanx-payment-gateway-for-woocommerce/templates/safetypay/payment-completed.php on line 1
- > PHP Warning
require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/ebanx-payment-gateway-for-woocommerce/database/class-wc-ebanx-database.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Ebanx\\Benjamin\\Services\\Gateways\\BaseGateway' not found in wp-content/plugins/ebanx-payment-gateway-for-woocommerce/vendor/ebanx/benjamin/src/Services/Gateways/DirectGateway.php:6
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/ebanx-payment-gateway-for-woocommerce/database/class-wc-ebanx-database.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Ebanx\\Benjamin\\Services\\Gateways\\DirectGateway' not found in wp-content/plugins/ebanx-payment-gateway-for-woocommerce/vendor/ebanx/benjamin/src/Services/Gateways/Spei.php:10
- > PHP Fatal error
Uncaught Error: Class 'Ebanx\\Benjamin\\Services\\Adapters\\BaseAdapter' not found in wp-content/plugins/ebanx-payment-gateway-for-woocommerce/vendor/ebanx/benjamin/src/Services/Adapters/RequestAdapter.php:11
- > PHP Fatal error
Uncaught Error: Class 'Ebanx\\Benjamin\\Services\\Gateways\\DirectGateway' not found in wp-content/plugins/ebanx-payment-gateway-for-woocommerce/vendor/ebanx/benjamin/src/Services/Gateways/Tef.php:9
- > PHP Fatal error
Uncaught Error: Class 'Ebanx\\Benjamin\\Models\\BaseModel' not found in wp-content/plugins/ebanx-payment-gateway-for-woocommerce/vendor/ebanx/benjamin/src/Models/Responses/PaymentResponse.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: Too many tags (19 tag instead of maximum 10); only the first 5 tags are used in your directory listing
ebanx-payment-gateway-for-woocommerce/woocommerce-gateway-ebanx.php 77% from 13 tests
"EBANX Payment Gateway for WooCommerce" version 1.41.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ebanx-payment-gateway-for-woocommerce.php" instead of "woocommerce-gateway-ebanx.php")
- Description: Keep the plugin description shorter than 140 characters (currently 143 characters long)
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin15,080 lines of code in 264 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 221 | 2,317 | 4,061 | 10,734 |
PO File | 4 | 725 | 882 | 1,811 |
JavaScript | 12 | 182 | 32 | 805 |
CSS | 7 | 132 | 3 | 643 |
Markdown | 5 | 196 | 0 | 552 |
Bourne Shell | 3 | 40 | 23 | 232 |
JSON | 3 | 0 | 0 | 113 |
XML | 3 | 6 | 6 | 80 |
YAML | 3 | 2 | 0 | 53 |
Dockerfile | 1 | 10 | 2 | 39 |
SVG | 1 | 0 | 1 | 15 |
Bourne Again Shell | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 6.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 95.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 1 | |
Traits | 1 | |
Classes | 136 | |
▷ Abstract classes | 14 | 10.29% |
▷ Concrete classes | 122 | 89.71% |
▷ Final classes | 11 | 9.02% |
Methods | 660 | |
▷ Static methods | 215 | 32.58% |
▷ Public methods | 419 | 63.48% |
▷ Protected methods | 144 | 21.82% |
▷ Private methods | 97 | 14.70% |
Functions | 17 | |
▷ Named functions | 4 | 23.53% |
▷ Anonymous functions | 13 | 76.47% |
Constants | 109 | |
▷ Global constants | 15 | 13.76% |
▷ Class constants | 94 | 86.24% |
▷ Public constants | 94 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
41 compressed PNG files occupy 0.08MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icons/visa-debit.png | 0.69KB | 0.70KB | 0.00% |
assets/images/ebanx-oxxo.png | 0.86KB | 0.88KB | 0.00% |
assets/images/icons/ebanx-account.png | 1.55KB | 1.56KB | 0.00% |
assets/images/ebanx-pagando.png | 2.02KB | 2.06KB | 0.00% |
assets/images/icons/discover.png | 0.76KB | 0.77KB | 0.00% |