Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼299.78ms] Passed 4 tests
A check of server-side resources used by Juno para WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.24 | 53.18 ▼4.54 |
Dashboard /wp-admin | 3.58 ▲0.18 | 43.96 ▲10.45 |
Posts /wp-admin/edit.php | 3.81 ▲0.17 | 35.22 ▼8.58 |
Add New Post /wp-admin/post-new.php | 7.11 ▲0.14 | 95.62 ▼1,180.36 |
Media Library /wp-admin/upload.php | 3.52 ▲0.23 | 25.43 ▼5.65 |
Server storage [IO: ▲1.20MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 204 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Juno para WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,788 ▲34 | 15.20 ▼0.45 | 6.71 ▲1.02 | 2.53 ▼0.36 |
Dashboard /wp-admin | 2,910 ▲49 | 6.14 ▼0.06 | 119.41 ▼60.89 | 159.99 ▼5.70 |
Posts /wp-admin/edit.php | 2,710 ▲25 | 3.24 ▲0.00 | 63.20 ▼2.72 | 144.83 ▼46.82 |
Add New Post /wp-admin/post-new.php | 1,677 ▲5 | 16.02 ▼5.55 | 419.07 ▼26.36 | 164.44 ▼30.38 |
Media Library /wp-admin/upload.php | 1,723 ▲25 | 5.54 ▲0.05 | 145.03 ▼1.91 | 189.51 ▼20.07 |
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 50% 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 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/woo-juno/templates/woocommerce/emails/juno/print-billet-button.php
- 110× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/woo-juno/vendor/chillerlan/php-qrcode/tests/QROptionsTest.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/woo-juno/templates/woocommerce/checkout/juno/credit-card/checkout-form.php:1
- > PHP Fatal error
Uncaught Error: Class 'WC_Juno\\Gateway\\Bank_Slip' not found in wp-content/plugins/woo-juno/classes/Gateway/Bank_Slip_Subscription.php:8
- > PHP Fatal error
Uncaught Error: Interface 'chillerlan\\Settings\\SettingsContainerInterface' not found in wp-content/plugins/woo-juno/vendor/chillerlan/php-settings-container/src/SettingsContainerAbstract.php:19
- > PHP Notice
Undefined variable: label in wp-content/plugins/woo-juno/templates/woocommerce/emails/juno/print-billet-button.php on line 7
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/woo-juno/vendor/chillerlan/php-qrcode/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/woo-juno/vendor/chillerlan/php-qrcode/examples/imageWithLogo.php on line 15
- > PHP Fatal error
Uncaught Error: Class 'chillerlan\\QRCodeTest\\QRTestAbstract' not found in wp-content/plugins/woo-juno/vendor/chillerlan/php-qrcode/tests/Data/MaskPatternTesterTest.php:18
- > PHP Fatal error
Trait 'WC_Juno\\Common\\Hooker_Trait' not found in wp-content/plugins/woo-juno/classes/Dashboard_Widget/Balance.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'Picqer\\Barcode\\BarcodeGenerator' not found in wp-content/plugins/woo-juno/vendor/picqer/php-barcode-generator/src/BarcodeGeneratorPNG.php:7
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/woo-juno/vendor/chillerlan/php-qrcode/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/woo-juno/vendor/chillerlan/php-qrcode/examples/custom_output.php on line 15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: boleto bancario, boleto, gateway, pagamento, subscriptions...
woo-juno/main.php 85% from 13 tests
The principal PHP file in "Juno para WooCommerce" v. 2.4.1 is loaded by WordPress automatically on each request
The following require your attention:
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "4.0.0")
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-juno.php" instead of "main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin14,240 lines of code in 183 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 149 | 2,805 | 3,386 | 11,071 |
JSON | 5 | 0 | 0 | 2,039 |
Markdown | 4 | 146 | 0 | 642 |
HTML | 2 | 26 | 0 | 169 |
XML | 6 | 0 | 0 | 153 |
YAML | 6 | 27 | 3 | 80 |
SVG | 2 | 0 | 0 | 74 |
JavaScript | 7 | 0 | 16 | 9 |
CSS | 2 | 1 | 2 | 3 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 11.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 251.00 |
Average method complexity | 3.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.00 |
Code structure | ||
---|---|---|
Namespaces | 29 | |
Interfaces | 3 | |
Traits | 6 | |
Classes | 92 | |
▷ Abstract classes | 11 | 11.96% |
▷ Concrete classes | 81 | 88.04% |
▷ Final classes | 1 | 1.23% |
Methods | 547 | |
▷ Static methods | 23 | 4.20% |
▷ Public methods | 413 | 75.50% |
▷ Protected methods | 130 | 23.77% |
▷ Private methods | 4 | 0.73% |
Functions | 73 | |
▷ Named functions | 58 | 79.45% |
▷ Anonymous functions | 15 | 20.55% |
Constants | 79 | |
▷ Global constants | 1 | 1.27% |
▷ Class constants | 78 | 98.73% |
▷ Public constants | 73 | 93.59% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/chillerlan/php-qrcode/examples/example_image.png | 2.23KB | 1.09KB | ▼ 50.94% |
vendor/chillerlan/php-qrcode/examples/octocat.png | 2.41KB | 2.46KB | 0.00% |
vendor/chillerlan/php-qrcode/examples/example_svg.png | 15.55KB | 6.70KB | ▼ 56.90% |