Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.07MB] [CPU: ▼10.34ms] Passed 4 tests
Analyzing server-side resources used by Tools for MercadoPago and WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.94 ▼0.53 | 21.94 ▼20.15 |
Dashboard /wp-admin | 3.40 ▲0.06 | 48.32 ▼13.15 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 47.32 ▼2.04 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 93.46 ▼6.01 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 37.27 ▲2.89 |
Server storage [IO: ▲0.57MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 39 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
kmercadopagogpl_installed_date |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Tools for MercadoPago and WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,448 ▼299 | 14.13 ▼0.11 | 0.50 ▼1.34 | 18.21 ▼25.21 |
Dashboard /wp-admin | 2,201 ▲21 | 5.62 ▼0.04 | 89.68 ▼7.43 | 40.49 ▼1.34 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.97 ▲0.00 | 39.30 ▲3.69 | 34.83 ▲1.27 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 22.82 ▼0.45 | 640.00 ▼32.88 | 68.07 ▲12.56 |
Media Library /wp-admin/upload.php | 1,406 ▲9 | 4.16 ▼0.05 | 97.44 ▼4.45 | 44.17 ▲1.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- kmercadopagogpl_installed_date
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_woocommerce_currency() in wp-content/plugins/wc-kmercadopago-gpl/includes/data-settings-mercadopagogpl-basic.php:13
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/wc-kmercadopago-gpl/includes/class-wc-payment-gateway-mercadopagogpl.php:17
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway_MercadoPagoGPL' not found in wp-content/plugins/wc-kmercadopago-gpl/includes/class-wc-kmercadopagogpl-basic.php:19
- > PHP Fatal error
Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/wc-kmercadopago-gpl/includes/class-wc-kmercadopagogpl-manager.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-kmercadopago-gpl/includes/functions.php:13
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wc-kmercadopago-gpl/includes/data-settings-mercadopagogpl-manager.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: woocommerce, ecommerce, mercadopago
wc-kmercadopago-gpl/class-wc-kmercadopagogpl.php 92% from 13 tests
The primary PHP file in "Tools for MercadoPago and WooCommerce" version 1.0.8 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wc-kmercadopago-gpl.php" instead of "class-wc-kmercadopagogpl.php")
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
Good job! No executable or dangerous file extensions detected6,427 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 9 | 1,422 | 1,773 | 3,806 |
PHP | 9 | 167 | 744 | 2,437 |
JSON | 1 | 2 | 0 | 108 |
JavaScript | 1 | 0 | 2 | 76 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 70.60 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 243.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 70.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 87 | |
▷ Static methods | 28 | 32.18% |
▷ Public methods | 74 | 85.06% |
▷ Protected methods | 3 | 3.45% |
▷ Private methods | 10 | 11.49% |
Functions | 15 | |
▷ Named functions | 4 | 26.67% |
▷ Anonymous functions | 11 | 73.33% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/mercadopago.png | 1.13KB | 1.13KB | 0.00% |