Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.13ms] Passed 4 tests
An overview of server-side resources used by Checkout Mestres WP
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.30 ▼3.31 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.38 ▼6.76 |
Posts /wp-admin/edit.php | 3.38 ▲0.01 | 50.48 ▲3.32 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.01 | 91.55 ▼1.77 |
Media Library /wp-admin/upload.php | 3.25 ▲0.01 | 37.70 ▲5.94 |
Server storage [IO: ▲1.87MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 201 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Checkout Mestres WP
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲39 | 14.60 ▲0.21 | 1.81 ▲0.17 | 42.54 ▼0.98 |
Dashboard /wp-admin | 2,198 ▲18 | 5.59 ▼0.00 | 90.99 ▼3.00 | 40.92 ▼4.91 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.97 ▼0.01 | 39.23 ▼0.86 | 34.76 ▲2.17 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.84 ▲0.91 | 592.53 ▼44.42 | 46.57 ▼2.17 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.20 ▲0.02 | 97.88 ▼4.42 | 43.08 ▼0.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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 fix the following
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/checkout-mestres-wp/backend/core/newsletter-remove-mail.php
- > /wp-content/plugins/checkout-mestres-wp/backend/core/verify-open-mail.php
- > /wp-content/plugins/checkout-mestres-wp/authentication/melhorenvio/index.php
- > /wp-content/plugins/checkout-mestres-wp/authentication/melhor-envio.php
- 102× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/checkout-mestres-wp/backend/core/shipping/frenet.php:2
- > WordPress database error Table 'potrivit.wp_cwmp_newsletter_send' doesn't exist for query SHOW FULL COLUMNS FROM `wp_cwmp_newsletter_send`
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/checkout-mestres-wp/frontend/core/shortcodes/gerencianet.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/checkout-mestres-wp/backend/core/shipping/melhorenvio.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/checkout-mestres-wp/frontend/core/shortcodes/cart.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/checkout-mestres-wp/frontend/core/shortcodes/mp.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/checkout-mestres-wp/backend/includes/html/licensa.checkout.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/checkout-mestres-wp/backend/core/cwmp-reset.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/checkout-mestres-wp/backend/includes/html/comunicacao.email-edit.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/checkout-mestres-wp/backend/core/cwmp-admin-custom-field-order.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== checkout-mestres-wp ===
)
checkout-mestres-wp/checkout-woocommerce-mestres-wp.php 92% from 13 tests
The primary PHP file in "Checkout Mestres WP" version 7.1.9.6 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("checkout-mestres-wp.php" instead of "checkout-woocommerce-mestres-wp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected25,613 lines of code in 165 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 130 | 526 | 243 | 13,298 |
JavaScript | 11 | 176 | 52 | 8,596 |
CSS | 14 | 57 | 10 | 2,438 |
PO File | 1 | 535 | 3 | 1,226 |
SVG | 9 | 0 | 0 | 55 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 66 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 54 | 81.82% |
▷ Protected methods | 12 | 18.18% |
▷ Private methods | 0 | 0.00% |
Functions | 261 | |
▷ Named functions | 259 | 99.23% |
▷ Anonymous functions | 2 | 0.77% |
Constants | 11 | |
▷ Global constants | 11 | 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
26 PNG files occupy 0.36MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/flags.png | 69.20KB | 23.42KB | ▼ 66.16% |
assets/images/ico-clock.png | 0.73KB | 0.49KB | ▼ 32.30% |
assets/images/ico-close-cart.png | 0.76KB | 0.47KB | ▼ 38.61% |
backend/assets/images/cwmp_icon_mail_color.png | 0.58KB | 0.38KB | ▼ 33.39% |
assets/images/ico-lock.png | 0.44KB | 0.36KB | ▼ 18.26% |