93% checkout-mestres-do-wp-addon-juno

Code Review | Checkout Mestres do WP Addon Juno

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

About plugin

  • Plugin page: checkout-mestres-...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9
  • WordPress version: 5.9.2
  • First release: Feb 10, 2022
  • Latest release: Feb 10, 2022
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: mestresdowp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 121 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.03MB] [CPU: ▼297.23ms] Passed 4 tests

An overview of server-side resources used by Checkout Mestres do WP Addon Juno
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▼0.0548.86 ▲0.37
Dashboard /wp-admin3.41 ▲0.0032.11 ▼0.97
Posts /wp-admin/edit.php3.64 ▲0.0034.67 ▼3.73
Add New Post /wp-admin/post-new.php6.91 ▼0.0994.28 ▼1,184.59
Media Library /wp-admin/upload.php3.30 ▲0.0025.93 ▲3.24

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Checkout Mestres do WP Addon Juno
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,198 ▼55616.05 ▲0.260.38 ▼5.2110.32 ▲7.73
Dashboard /wp-admin2,895 ▲446.16 ▼0.01116.11 ▼16.71156.46 ▼2.81
Posts /wp-admin/edit.php2,691 ▲63.23 ▲0.0062.27 ▼1.07139.45 ▼3.45
Add New Post /wp-admin/post-new.php1,760 ▲9921.45 ▲4.73431.58 ▲17.96158.44 ▼0.67
Media Library /wp-admin/upload.php1,701 ▲35.52 ▲0.02143.29 ▲3.69182.63 ▼5.80

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

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
Everything seems fine, however this is by no means 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
Please fix the following items
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/checkout-mestres-do-wp-addon-juno/checkout-mwp-addon-juno.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/checkout-mestres-do-wp-addon-juno/templates/woocommerce/juno/credit-card/checkout-form.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/checkout-mestres-do-wp-addon-juno/templates/woocommerce/juno/bank-slip/checkout-form.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/checkout-mestres-do-wp-addon-juno/templates/woocommerce/juno/pix/checkout-form.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === checkout-mestres-do-wp-addon-juno === )
You can take inspiration from this readme.txt

checkout-mestres-do-wp-addon-juno/checkout-mwp-addon-juno.php 85% from 13 tests

"Checkout Mestres do WP Addon Juno" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("checkout-mestres-do-wp-addon-juno.php" instead of "checkout-mwp-addon-juno.php")

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 detected58 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP451551
CSS1107

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin