Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.21ms] Passed 4 tests
Server-side resources used by EBANX Local Payment Gateway for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.34 ▼1.76 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.04 ▼2.69 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.29 ▲0.09 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.13 ▼22.99 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.10 ▼1.40 |
Server storage [IO: ▲0.91MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 228 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by EBANX Local Payment Gateway for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.48 ▲0.05 | 1.63 ▼0.02 | 40.82 ▲2.21 |
Dashboard /wp-admin | 2,203 ▲29 | 5.84 ▲0.93 | 97.07 ▼17.16 | 38.85 ▼9.03 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.00 ▲0.00 | 39.95 ▼0.41 | 35.48 ▼0.33 |
Add New Post /wp-admin/post-new.php | 1,533 ▼9 | 23.26 ▲4.97 | 665.72 ▲13.82 | 61.63 ▲1.71 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.21 ▲0.02 | 98.70 ▼0.48 | 44.83 ▼1.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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 fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/ebanx-local-payment-gateway-for-woocommerce/templates/ebanx-credit-card-international/card-template.php
- 88× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Ebanx\\Benjamin\\Services\\Gateways\\DirectGateway' not found in wp-content/plugins/ebanx-local-payment-gateway-for-woocommerce/vendor/ebanx/benjamin-local/src/Services/Gateways/Servipag.php:9
- > PHP Fatal error
Uncaught Error: Class 'Ebanx\\Benjamin\\Services\\Gateways\\DirectGateway' not found in wp-content/plugins/ebanx-local-payment-gateway-for-woocommerce/vendor/ebanx/benjamin-local/src/Services/Gateways/DebitCard.php:9
- > PHP Fatal error
Uncaught Error: Class 'Ebanx\\Benjamin\\Services\\Adapters\\BrazilPaymentAdapter' not found in wp-content/plugins/ebanx-local-payment-gateway-for-woocommerce/vendor/ebanx/benjamin-local/src/Services/Adapters/BankTransferPaymentAdapter.php:4
- > PHP Notice
Undefined variable: is_sandbox_mode in wp-content/plugins/ebanx-local-payment-gateway-for-woocommerce/templates/sandbox-checkout-alert.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'Ebanx\\Benjamin\\Services\\Adapters\\BaseAdapter' not found in wp-content/plugins/ebanx-local-payment-gateway-for-woocommerce/vendor/ebanx/benjamin-local/src/Services/Adapters/ExchangeAdapter.php:6
- > PHP Fatal error
Uncaught Error: Class 'Ebanx\\Benjamin\\Models\\BaseModel' not found in wp-content/plugins/ebanx-local-payment-gateway-for-woocommerce/vendor/ebanx/benjamin-local/src/Models/Responses/PaymentTerm.php:6
- > PHP Fatal error
Uncaught Error: Class 'Ebanx\\Benjamin\\Services\\Gateways\\DirectGateway' not found in wp-content/plugins/ebanx-local-payment-gateway-for-woocommerce/vendor/ebanx/benjamin-local/src/Services/Gateways/Oxxo.php:10
- > PHP Fatal error
Uncaught Error: Class 'Ebanx\\Benjamin\\Models\\BaseModel' not found in wp-content/plugins/ebanx-local-payment-gateway-for-woocommerce/vendor/ebanx/benjamin-local/src/Models/Configs/CreditCardConfig.php:7
- > PHP Warning
require_once(WC_EBANX_VENDOR_DIR/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/ebanx-local-payment-gateway-for-woocommerce/services/class-wc-ebanx-api.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'Ebanx\\Benjamin\\Models\\BaseModel' not found in wp-content/plugins/ebanx-local-payment-gateway-for-woocommerce/vendor/ebanx/benjamin-local/src/Models/Request.php:4
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
- Screenshots: Add images for these screenshots: #1 (EBANX Features - Allow your customers to save their credit card data to buy with just one-click; in addition to increasing your sales even more.), #4 (Plugin Configuration - To start your integration, send an email to [hello@ebanxpay.com](mailto:hello@ebanxpay.com) to request your test and live keys. Insert them and choose to enable the sandbox mode for testing.), #6 (Plugin Configuration - Set more advanced options such as Save Card Data, One-click payment, Enable Auto-Capture, Maximum number of Instalments, etc.)
ebanx-local-payment-gateway-for-woocommerce/woocommerce-gateway-ebanx.php 77% from 13 tests
Analyzing the main PHP file in "EBANX Local Payment Gateway for WooCommerce" version 3.4.6
The following require your attention:
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "4.0.1")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("ebanx-local-payment-gateway-for-woocommerce.php" instead of "woocommerce-gateway-ebanx.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin15,312 lines of code in 194 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 153 | 1,860 | 3,563 | 8,273 |
JSON | 4 | 0 | 0 | 3,194 |
PO File | 4 | 710 | 797 | 1,891 |
CSS | 7 | 139 | 3 | 648 |
JavaScript | 9 | 135 | 27 | 585 |
Markdown | 5 | 134 | 0 | 280 |
Bourne Shell | 3 | 43 | 22 | 272 |
XML | 3 | 7 | 6 | 63 |
YAML | 3 | 3 | 0 | 55 |
Dockerfile | 1 | 11 | 2 | 33 |
SVG | 1 | 0 | 1 | 15 |
Bourne Again Shell | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 6.99 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 1 | |
Traits | 1 | |
Classes | 118 | |
▷ Abstract classes | 13 | 11.02% |
▷ Concrete classes | 105 | 88.98% |
▷ Final classes | 11 | 10.48% |
Methods | 560 | |
▷ Static methods | 198 | 35.36% |
▷ Public methods | 349 | 62.32% |
▷ Protected methods | 117 | 20.89% |
▷ Private methods | 94 | 16.79% |
Functions | 16 | |
▷ Named functions | 3 | 18.75% |
▷ Anonymous functions | 13 | 81.25% |
Constants | 91 | |
▷ Global constants | 15 | 16.48% |
▷ Class constants | 76 | 83.52% |
▷ Public constants | 76 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
15 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/ebanx-banking-ticket.png | 0.24KB | 0.25KB | 0.00% |
assets/images/ebanx-account.png | 1.39KB | 1.41KB | 0.00% |
assets/images/icons/mastercard.png | 0.51KB | 0.52KB | 0.00% |
assets/images/icons/ebanx-account.png | 1.55KB | 1.56KB | 0.00% |
assets/images/icons/visa.png | 0.64KB | 0.65KB | 0.00% |