Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.15ms] Passed 4 tests
Server-side resources used by Montonio for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 37.56 ▼4.10 |
Dashboard /wp-admin | 3.36 ▲0.01 | 45.18 ▼14.03 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 47.74 ▼2.15 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 92.13 ▲3.71 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.35 ▲3.69 |
Server storage [IO: ▲0.85MB] [DB: ▲0.31MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 96 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Montonio for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲75 | 14.22 ▼0.12 | 1.80 ▲0.02 | 37.94 ▼6.42 |
Dashboard /wp-admin | 2,205 ▲30 | 5.58 ▼0.08 | 87.15 ▼19.14 | 41.70 ▲2.71 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 1.94 ▲0.00 | 40.03 ▼1.29 | 36.67 ▼3.18 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.64 ▲0.44 | 620.34 ▲17.38 | 55.80 ▲7.93 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.20 ▲0.07 | 96.99 ▼3.04 | 45.51 ▲4.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.31MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/montonio-for-woocommerce/templates/montonio/pickup-point-select.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4 in montonio-for-woocommerce/assets to your readme.txt
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
montonio-for-woocommerce/montonio.php 85% from 13 tests
The main PHP script in "Montonio for WooCommerce" version 6.2.1 is automatically included on every request by WordPress
The following require your attention:
- Requires at least: Required version does not match the one declared in readme.txt ("4.5" instead of "4.0.0")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("montonio-for-woocommerce.php" instead of "montonio.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin13,602 lines of code in 84 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 52 | 1,582 | 2,220 | 6,901 |
PO File | 8 | 2,245 | 3,495 | 5,555 |
JavaScript | 10 | 118 | 16 | 533 |
CSS | 13 | 54 | 6 | 431 |
Sass | 1 | 42 | 0 | 182 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 16.66 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 175.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 50 | |
▷ Abstract classes | 1 | 2.00% |
▷ Concrete classes | 49 | 98.00% |
▷ Final classes | 0 | 0.00% |
Methods | 424 | |
▷ Static methods | 58 | 13.68% |
▷ Public methods | 322 | 75.94% |
▷ Protected methods | 85 | 20.05% |
▷ Private methods | 17 | 4.01% |
Functions | 6 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 6 | 100.00% |
Constants | 57 | |
▷ Global constants | 3 | 5.26% |
▷ Class constants | 54 | 94.74% |
▷ Public constants | 54 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
financing/assets/images/montonio.png | 14.59KB | 5.97KB | ▼ 59.07% |