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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▼0.05 | 48.86 ▲0.37 |
Dashboard /wp-admin | 3.41 ▲0.00 | 32.11 ▼0.97 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 34.67 ▼3.73 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.09 | 94.28 ▼1,184.59 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 25.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,198 ▼556 | 16.05 ▲0.26 | 0.38 ▼5.21 | 10.32 ▲7.73 |
Dashboard /wp-admin | 2,895 ▲44 | 6.16 ▼0.01 | 116.11 ▼16.71 | 156.46 ▼2.81 |
Posts /wp-admin/edit.php | 2,691 ▲6 | 3.23 ▲0.00 | 62.27 ▼1.07 | 139.45 ▼3.45 |
Add New Post /wp-admin/post-new.php | 1,760 ▲99 | 21.45 ▲4.73 | 431.58 ▲17.96 | 158.44 ▼0.67 |
Media Library /wp-admin/upload.php | 1,701 ▲3 | 5.52 ▲0.02 | 143.29 ▲3.69 | 182.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
- > PHP Fatal error
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 ===
)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 5 | 15 | 51 |
CSS | 1 | 1 | 0 | 7 |
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 code | 0.15 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
PNG images were not found in this plugin