Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼5.60ms] Passed 4 tests
Analyzing server-side resources used by Pago Fácil SpA - Múltiples medios de pagos en tu eCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.81 ▼2.87 |
Dashboard /wp-admin | 3.36 ▲0.06 | 47.89 ▼2.28 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 45.17 ▼0.24 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 82.45 ▼16.99 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.24 ▲1.13 |
Server storage [IO: ▲1.00MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 64 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Pago Fácil SpA - Múltiples medios de pagos en tu eCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.81 ▲0.44 | 1.83 ▼0.47 | 42.47 ▼6.89 |
Dashboard /wp-admin | 2,206 ▲20 | 4.89 ▼0.99 | 111.20 ▼11.87 | 42.32 ▼1.00 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 1.97 ▼0.02 | 35.51 ▼0.97 | 33.80 ▲0.85 |
Add New Post /wp-admin/post-new.php | 1,521 ▼0 | 23.29 ▲0.18 | 581.64 ▼51.62 | 51.03 ▼4.26 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.22 ▲0.04 | 94.29 ▼7.57 | 44.23 ▲1.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/webpayplus-pst/vendor/ctala/transaccion-default/templates/orden_fallida.php
- > /wp-content/plugins/webpayplus-pst/views/views/admin/viewAdmin.php
- > /wp-content/plugins/webpayplus-pst/vendor/ctala/transaccion-default/templates/orden_recibida.php
- > /wp-content/plugins/webpayplus-pst/templates/orden_fallida.php
- 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: order_id in wp-content/plugins/webpayplus-pst/vendor/ctala/transaccion-default/templates/orden_fallida.php on line 9
- > PHP Notice
Undefined variable: order_id_mall in wp-content/plugins/webpayplus-pst/vendor/ctala/transaccion-default/templates/orden_fallida.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'ctala\\transaccion\\classes\\Transaccion' not found in wp-content/plugins/webpayplus-pst/vendor/ctala/transaccion-default/classes/Response.php:39
- > PHP Fatal error
Uncaught Error: Class 'PagoFacil\\lib\\Operacion' not found in wp-content/plugins/webpayplus-pst/vendor/pagofacil/php-sdk/classes/Request.php:5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/webpayplus-pst/vendor/ctala/transaccion-default/templates/orden_recibida.php on line 3
- > PHP Notice
Undefined variable: fields in wp-content/plugins/webpayplus-pst/vendor/ctala/transaccion-default/templates/orden_recibida.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/webpayplus-pst/classes/WC_Gateway_TBKAAS.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function tbkaaswoogateway\\add_action() in wp-content/plugins/webpayplus-pst/tbkaas-woo-gateway.php:25
- > PHP Notice
Undefined variable: order_id in wp-content/plugins/webpayplus-pst/templates/orden_fallida.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/webpayplus-pst/templates/order_recibida.php:3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: ecommerce, payments
webpayplus-pst/tbkaas-woo-gateway.php 77% from 13 tests
"Pago Fácil SpA - Múltiples medios de pagos en tu eCommerce" version 1.4.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("webpayplus-pst.php" instead of "tbkaas-woo-gateway.php")
- Domain Path: The domain path folder was not found ("/languages")
- Text Domain: Please use dashes and lowercase characters for text domains
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
There were no executable files found in this plugin1,697 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 335 | 567 | 1,532 |
JSON | 5 | 2 | 0 | 130 |
Markdown | 3 | 19 | 0 | 35 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 10.16 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 88 | |
▷ Static methods | 12 | 13.64% |
▷ Public methods | 82 | 93.18% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 6.82% |
Functions | 9 | |
▷ Named functions | 7 | 77.78% |
▷ Anonymous functions | 2 | 22.22% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.91MB with 0.54MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 25.41KB | 9.36KB | ▼ 63.16% |
assets/images/logo.png | 5.92KB | 3.02KB | ▼ 49.08% |
assets/banner-1544x500.png | 901.55KB | 320.98KB | ▼ 64.40% |