93% checkout-mestres-do-wp-addon-mercado-pago

Code Review | Checkout Mestres do WP Addon Mercado Pago

WordPress plugin Checkout Mestres do WP Addon Mercado Pago scored 93% from 54 tests.

About plugin

  • Plugin page: checkout-mestres-...
  • Plugin version: 1.6
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9
  • WordPress version: 5.9.2
  • First release: Nov 30, 2021
  • Latest release: Mar 16, 2022
  • Number of updates: 8
  • Update frequency: every 14.9 days
  • Top authors: mestresdowp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 940 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0264.52 ▲4.77
Dashboard /wp-admin3.42 ▲0.0140.89 ▼3.93
Posts /wp-admin/edit.php3.65 ▲0.0142.16 ▼3.91
Add New Post /wp-admin/post-new.php6.89 ▼0.08100.94 ▼1,201.21
Media Library /wp-admin/upload.php3.31 ▲0.0130.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,825 ▲8115.62 ▼0.166.54 ▲0.3119.13 ▲16.99
Dashboard /wp-admin2,920 ▲596.13 ▼0.08122.97 ▼12.96289.87 ▲127.90
Posts /wp-admin/edit.php2,717 ▲293.24 ▲0.0264.72 ▲1.90140.78 ▼2.38
Add New Post /wp-admin/post-new.php1,677 ▲1616.09 ▼0.32391.48 ▼40.52149.38 ▼3.14
Media Library /wp-admin/upload.php1,723 ▲225.54 ▲0.01146.88 ▼2.95194.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

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 === )
You can take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
JavaScript12994931,819
PHP55556469
CSS13088

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 code0.28
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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