Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.39MB] [CPU: ▼290.62ms] Passed 4 tests
Analyzing server-side resources used by Integración de Webpay Plus de Transbank para WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.42 | 66.21 ▼0.31 |
Dashboard /wp-admin | 3.78 ▲0.38 | 36.42 ▼0.27 |
Posts /wp-admin/edit.php | 4.07 ▲0.43 | 109.59 ▲70.54 |
Add New Post /wp-admin/post-new.php | 7.31 ▲0.34 | 104.36 ▼1,166.12 |
Media Library /wp-admin/upload.php | 3.72 ▲0.43 | 30.48 ▲4.24 |
Server storage [IO: ▲1.62MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 287 new files
Database: 1 new table, no new options
New tables |
---|
wp_webpay_transactions |
Browser metrics Passed 4 tests
A check of browser resources used by Integración de Webpay Plus de Transbank para WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,774 ▲20 | 15.91 ▲0.13 | 5.58 ▼0.16 | 2.35 ▼0.17 |
Dashboard /wp-admin | 2,899 ▲38 | 6.03 ▼0.18 | 120.79 ▼22.24 | 178.41 ▲12.49 |
Posts /wp-admin/edit.php | 2,698 ▲10 | 3.37 ▲0.13 | 63.94 ▼0.62 | 148.30 ▲0.03 |
Add New Post /wp-admin/post-new.php | 1,665 ▼33 | 16.38 ▼5.61 | 446.78 ▼18.10 | 168.82 ▼67.09 |
Media Library /wp-admin/upload.php | 1,702 ▲7 | 5.55 ▼0.04 | 142.06 ▼17.56 | 196.22 ▼24.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 81× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/wc-transbank-webpay-plus/vendor/guzzlehttp/promises/src/RejectedPromise.php:10
- > PHP Fatal error
Uncaught Error: Class 'SoapClient' not found in wp-content/plugins/wc-transbank-webpay-plus/libwebpay/soap/soapclient.php:5
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/wc-transbank-webpay-plus/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wc-transbank-webpay-plus/vendor/guzzlehttp/psr7/src/PumpStream.php:16
- > PHP Fatal error
Uncaught Error: Class 'Transbank\\Onepay\\Exceptions\\TransbankException' not found in wp-content/plugins/wc-transbank-webpay-plus/vendor/transbank/transbank-sdk/lib/onepay/exceptions/TransactionCreateException.php:12
- > PHP Fatal error
Uncaught Error: Class 'Transbank\\Onepay\\Exceptions\\TransbankException' not found in wp-content/plugins/wc-transbank-webpay-plus/vendor/transbank/transbank-sdk/lib/onepay/exceptions/SignException.php:12
- > PHP Fatal error
Uncaught Error: Class 'SoapClient' not found in wp-content/plugins/wc-transbank-webpay-plus/libwebpay/soap/soapclient.php:5
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\ClientInterface' not found in wp-content/plugins/wc-transbank-webpay-plus/vendor/guzzlehttp/guzzle/src/Client.php:26
- > PHP Fatal error
Uncaught Error: Class 'Transbank\\Webpay\\Exceptions\\WebpayException' not found in wp-content/plugins/wc-transbank-webpay-plus/vendor/transbank/transbank-sdk/lib/webpay_rest/oneclick/mall/exceptions/MallRefundTransactionException.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wc-transbank-webpay-plus/vendor/guzzlehttp/psr7/src/MultipartStream.php:10
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Requires php: The plugin version is formatted incorrectly
- Tags: There are too many tags (13 tag instead of maximum 10)
wc-transbank-webpay-plus/class-wc-transbank.php 85% from 13 tests
The primary PHP file in "Integración de Webpay Plus de Transbank para WooCommerce" version 20.12.28 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wc-transbank-webpay-plus.php" instead of "class-wc-transbank.php")
- Requires PHP: Required version number formatted incorrectly (ex. "7.0" instead of "5.6+")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected28,089 lines of code in 268 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 227 | 4,285 | 7,251 | 23,312 |
Markdown | 19 | 1,146 | 0 | 3,566 |
JSON | 11 | 0 | 0 | 1,043 |
CSS | 1 | 5 | 0 | 47 |
JavaScript | 2 | 10 | 3 | 40 |
make | 2 | 12 | 0 | 28 |
Dockerfile | 2 | 8 | 0 | 22 |
XML | 1 | 0 | 0 | 15 |
YAML | 1 | 0 | 0 | 13 |
Bourne Shell | 1 | 1 | 0 | 2 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 9.49 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 25 | |
Interfaces | 15 | |
Traits | 2 | |
Classes | 259 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 259 | 100.00% |
▷ Final classes | 19 | 7.34% |
Methods | 1,508 | |
▷ Static methods | 245 | 16.25% |
▷ Public methods | 1,322 | 87.67% |
▷ Protected methods | 21 | 1.39% |
▷ Private methods | 165 | 10.94% |
Functions | 214 | |
▷ Named functions | 124 | 57.94% |
▷ Anonymous functions | 90 | 42.06% |
Constants | 237 | |
▷ Global constants | 44 | 18.57% |
▷ Class constants | 193 | 81.43% |
▷ Public constants | 193 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.21MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/logo_webpay.png | 14.54KB | 6.90KB | ▼ 52.53% |
assets/img/back.png | 116.65KB | 55.68KB | ▼ 52.27% |
assets/img/hablar_whatsapp.png | 67.69KB | 27.84KB | ▼ 58.87% |
libwebpay/images/webpay.png | 5.89KB | 2.46KB | ▼ 58.20% |
assets/img/logo-migracion.png | 13.73KB | 5.78KB | ▼ 57.90% |