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
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.11ms] Passed 4 tests
An overview of server-side resources used by WPeComm Mercado Pago Module Oficial
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 43.46 ▼1.66 |
Dashboard /wp-admin | 3.35 ▲0.00 | 48.02 ▼18.34 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.81 ▼3.80 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 90.59 ▼0.63 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.11 ▲0.18 |
Server storage [IO: ▲1.24MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 107 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WPeComm Mercado Pago Module Oficial
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲60 | 14.35 ▼0.01 | 1.85 ▼0.05 | 43.66 ▼10.12 |
Dashboard /wp-admin | 2,198 ▲21 | 5.57 ▼0.05 | 93.55 ▼6.59 | 43.39 ▼0.47 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.03 ▲0.06 | 36.23 ▼0.88 | 34.09 ▼2.59 |
Add New Post /wp-admin/post-new.php | 1,537 ▲9 | 23.16 ▲0.15 | 643.32 ▼31.62 | 58.87 ▼6.04 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.16 ▼0.04 | 96.60 ▼14.20 | 42.58 ▼4.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 75% 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 50% 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
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wpecomm-mercado-pago-module/wpecomm-mercado-pago-module/mercadopago-custom.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wpecomm-mercado-pago-module/wpecomm-mercado-pago-module/mercadopago-ticket.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Tested up to: Version format is invalid
- Requires at least: Version format is invalid
wpecomm-mercado-pago-module/mercadopago-module.php 77% from 13 tests
The main PHP script in "WPeComm Mercado Pago Module Oficial" version 4.2.5 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wpecomm-mercado-pago-module.php" instead of "mercadopago-module.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 203 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin7,825 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 397 | 619 | 4,200 |
PO File | 17 | 1,343 | 34 | 2,907 |
JavaScript | 2 | 179 | 97 | 553 |
CSS | 1 | 34 | 8 | 165 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 33.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 4.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 21 | 28.38% |
▷ Public methods | 68 | 91.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 8.11% |
Functions | 51 | |
▷ Named functions | 51 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
44 PNG files occupy 0.18MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
wpecomm-mercado-pago-module/mercadopago-images/MLU/CUPOM_MLU.png | 0.26KB | 0.11KB | ▼ 58.17% |
wpecomm-mercado-pago-module/mercadopago-images/MLB/banner_all_methods.png | 12.40KB | 5.25KB | ▼ 57.67% |
(invalid) wpecomm-mercado-pago-module/mercadopago-images/MLV/credit_card.png | 13.54KB | 0.00KB | ▼ 100.00% |
wpecomm-mercado-pago-module/mercadopago-images/MLA/MLA.png | 2.56KB | 1.97KB | ▼ 23.03% |
wpecomm-mercado-pago-module/mercadopago-images/error.png | 0.66KB | 0.57KB | ▼ 13.84% |