Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.33MB] [CPU: ▼9.19ms] Passed 4 tests
A check of server-side resources used by Mercado Pago payments for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.27 | 40.27 ▼1.58 |
Dashboard /wp-admin | 3.71 ▲0.36 | 46.78 ▼13.06 |
Posts /wp-admin/edit.php | 3.76 ▲0.40 | 52.78 ▲6.54 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.34 | 84.45 ▼24.89 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 37.60 ▲2.78 |
Server storage [IO: ▲10.83MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 431 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Mercado Pago payments for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲93 | 13.26 ▼1.47 | 1.59 ▼0.23 | 45.90 ▲3.02 |
Dashboard /wp-admin | 2,245 ▲54 | 5.85 ▲0.84 | 93.87 ▼12.86 | 83.67 ▲39.80 |
Posts /wp-admin/edit.php | 2,128 ▲39 | 2.03 ▲0.02 | 39.10 ▼2.77 | 39.03 ▲0.46 |
Add New Post /wp-admin/post-new.php | 1,705 ▲163 | 22.38 ▲4.06 | 682.80 ▲64.59 | 58.33 ▲10.84 |
Media Library /wp-admin/upload.php | 1,418 ▲27 | 4.21 ▼0.02 | 104.50 ▲5.11 | 45.83 ▼0.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
- 55× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'MercadoPago\\PP\\Sdk\\Common\\AbstractEntity' not found in wp-content/plugins/woocommerce-mercadopago/packages/sdk/src/Entity/Payment/PointOfInteraction.php:19
- > PHP Fatal error
Uncaught Error: Class 'MercadoPago\\PP\\Sdk\\Common\\AbstractEntity' not found in wp-content/plugins/woocommerce-mercadopago/packages/sdk/src/Entity/Payment/Payment.php:49
- > PHP Fatal error
Uncaught Error: Class 'MercadoPago\\PP\\Sdk\\Common\\AbstractCollection' not found in wp-content/plugins/woocommerce-mercadopago/packages/sdk/src/Entity/Preference/ItemList.php:12
- > PHP Fatal error
Uncaught Error: Class 'MercadoPago\\PP\\Sdk\\Common\\AbstractEntity' not found in wp-content/plugins/woocommerce-mercadopago/packages/sdk/src/Entity/Preference/Track.php:15
- > PHP Fatal error
Uncaught Error: Class 'MercadoPago\\PP\\Sdk\\Common\\AbstractEntity' not found in wp-content/plugins/woocommerce-mercadopago/packages/sdk/src/Entity/Payment/Tracking.php:15
- > PHP Fatal error
Uncaught Error: Class 'MercadoPago\\PP\\Sdk\\Common\\AbstractCollection' not found in wp-content/plugins/woocommerce-mercadopago/packages/sdk/src/Entity/Preference/TrackList.php:12
- > PHP Fatal error
Uncaught Error: Class 'MercadoPago\\PP\\Sdk\\Common\\AbstractEntity' not found in wp-content/plugins/woocommerce-mercadopago/packages/sdk/src/Entity/Preference/ExcludedPaymentMethod.php:14
- > PHP Fatal error
Uncaught Error: Class 'MercadoPago\\PP\\Sdk\\Common\\AbstractEntity' not found in wp-content/plugins/woocommerce-mercadopago/packages/sdk/src/Entity/Payment/AdditionalInfoAddress.php:22
- > PHP Fatal error
Uncaught Error: Class 'MercadoPago\\PP\\Sdk\\Common\\AbstractCollection' not found in wp-content/plugins/woocommerce-mercadopago/packages/sdk/src/Entity/Notification/PaymentDetailsList.php:12
- > PHP Fatal error
Uncaught Error: Class 'MercadoPago\\PP\\Sdk\\Common\\AbstractEntity' not found in wp-content/plugins/woocommerce-mercadopago/packages/sdk/src/Entity/Preference/Phone.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% 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
These attributes need to be fixed:
- Requires php: Invalid version format
woocommerce-mercadopago/woocommerce-mercadopago.php 92% from 13 tests
The main PHP script in "Mercado Pago payments for WooCommerce" version 6.9.3 is automatically included on every request by WordPress
The following require your attention:
- Requires at least: The required version number did not match the one declared in readme.txt ("5.6" instead of "5.9")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected22,599 lines of code in 238 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 162 | 2,749 | 7,586 | 13,192 |
PO File | 2 | 1,548 | 2,733 | 3,309 |
JavaScript | 52 | 418 | 231 | 3,098 |
CSS | 20 | 396 | 22 | 2,955 |
JSON | 2 | 0 | 0 | 45 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 12.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 2.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 119 | |
▷ Abstract classes | 5 | 4.20% |
▷ Concrete classes | 114 | 95.80% |
▷ Final classes | 0 | 0.00% |
Methods | 761 | |
▷ Static methods | 129 | 16.95% |
▷ Public methods | 697 | 91.59% |
▷ Protected methods | 22 | 2.89% |
▷ Private methods | 42 | 5.52% |
Functions | 11 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 11 | 100.00% |
Constants | 52 | |
▷ Global constants | 1 | 1.92% |
▷ Class constants | 51 | 98.08% |
▷ Public constants | 51 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
108 PNG files occupy 1.32MB with 0.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/narciso/cho-pro-redirect.png | 2.54KB | 1.47KB | ▼ 42.27% |
assets/images/narciso/pix-logo.png | 48.11KB | 14.44KB | ▼ 69.98% |
assets/images/MLA/credit_card.png | 5.38KB | 5.27KB | ▼ 2.01% |
assets/images/mercadopago-settings/icon-code.png | 0.28KB | 0.22KB | ▼ 22.03% |
assets/images/credit_card.png | 0.49KB | 0.42KB | ▼ 13.94% |