Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼301.93ms] Passed 4 tests
This is a short check of server-side resources used by Checkout Mestres do WP Addon Mercado Pago
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 64.52 ▲4.77 |
Dashboard /wp-admin | 3.42 ▲0.01 | 40.89 ▼3.93 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 42.16 ▼3.91 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 100.94 ▼1,201.21 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 30.10 ▲1.34 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Checkout Mestres do WP Addon Mercado Pago
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,825 ▲81 | 15.62 ▼0.16 | 6.54 ▲0.31 | 19.13 ▲16.99 |
Dashboard /wp-admin | 2,920 ▲59 | 6.13 ▼0.08 | 122.97 ▼12.96 | 289.87 ▲127.90 |
Posts /wp-admin/edit.php | 2,717 ▲29 | 3.24 ▲0.02 | 64.72 ▲1.90 | 140.78 ▼2.38 |
Add New Post /wp-admin/post-new.php | 1,677 ▲16 | 16.09 ▼0.32 | 391.48 ▼40.52 | 149.38 ▼3.14 |
Media Library /wp-admin/upload.php | 1,723 ▲22 | 5.54 ▲0.01 | 146.88 ▼2.95 | 194.16 ▲11.08 |
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 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/checkout-mestres-do-wp-addon-mercado-pago/checkout-mwp-addon-mp.php:15
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% 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
Attributes that need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== checkout-mestres-do-wp-addon-mercado-pago ===
)
checkout-mestres-do-wp-addon-mercado-pago/checkout-mwp-addon-mp.php 85% from 13 tests
This is the main PHP file of "Checkout Mestres do WP Addon Mercado Pago" version 1.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("checkout-mestres-do-wp-addon-mercado-pago.php" instead of "checkout-mwp-addon-mp.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; 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
There were no executable files found in this plugin2,376 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 299 | 493 | 1,819 |
PHP | 5 | 55 | 56 | 469 |
CSS | 1 | 3 | 0 | 88 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected