Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- The plugin cannot be installed
- > Warning in wp-content/plugins/promociones-mercado-pago/TokioMP_Plugin.php+32
count(): Parameter must be an array or an object that implements Countable
Server metrics [RAM: ▼1.80MB] [CPU: ▼57.78ms] Passed 4 tests
An overview of server-side resources used by Promociones Mercado Pago
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.19 ▼1.27 | 5.95 ▼38.29 |
Dashboard /wp-admin | 2.21 ▼1.13 | 9.72 ▼56.34 |
Posts /wp-admin/edit.php | 2.21 ▼1.14 | 6.53 ▼45.35 |
Add New Post /wp-admin/post-new.php | 2.21 ▼3.67 | 8.86 ▼91.12 |
Media Library /wp-admin/upload.php | 2.21 ▼1.01 | 5.72 ▼31.69 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
TokioMP_Plugin__installed |
TokioMP_Plugin_CanDoSomething |
TokioMP_Plugin_AmAwesome |
TokioMP_Plugin__version |
can_compress_scripts |
db_upgraded |
TokioMP_Plugin_ATextInput |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Promociones Mercado Pago
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲9 | 14.38 ▼0.00 | 1.88 ▼0.01 | 43.66 ▼6.73 |
Dashboard /wp-admin | 2,200 ▲23 | 5.64 ▼0.04 | 87.86 ▼10.12 | 37.26 ▼7.24 |
Posts /wp-admin/edit.php | 2,102 ▼1 | 2.04 ▼0.01 | 33.70 ▼7.87 | 31.96 ▼6.36 |
Add New Post /wp-admin/post-new.php | 1,542 ▼3 | 23.15 ▼0.07 | 673.19 ▼1.53 | 56.52 ▼2.72 |
Media Library /wp-admin/upload.php | 1,402 ▲2 | 4.42 ▲0.15 | 106.27 ▼8.38 | 41.98 ▼5.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the styles handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- This plugin did not uninstall successfully, leaving 11 options in the database
- TokioMP_Plugin__installed
- widget_recent-comments
- TokioMP_Plugin_ATextInput
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- TokioMP_Plugin_AmAwesome
- TokioMP_Plugin_CanDoSomething
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/promociones-mercado-pago/promociones-mercado-pago.php:77
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: mercado pago, tarjetas de crdito, mercadopago, tokio agency, promociones
promociones-mercado-pago/promociones-mercado-pago.php Passed 13 tests
The main PHP file in "Promociones Mercado Pago" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
38 characters long description:
Listado de promociones de Mercado Pago
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,038 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 184 | 546 | 529 |
CSS | 1 | 3 | 0 | 509 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 9.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 1.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 2 | 33.33% |
▷ Concrete classes | 4 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 72 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 44 | 61.11% |
▷ Protected methods | 28 | 38.89% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 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
1 PNG file occupies 0.23MB with 0.17MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/bank-promo-mla-logos.png | 237.96KB | 61.79KB | ▼ 74.03% |