Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- The plugin cannot be installed
- > User error in wp-content/plugins/montapacking-checkout-woocommerce-extension/vendor/composer/platform_check.php+24
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.2". You are running 7.4.16.
Server metrics [RAM: ▼0.01MB] [CPU: ▼6.33ms] Passed 4 tests
A check of server-side resources used by Monta Checkout
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.27 ▼5.42 |
Dashboard /wp-admin | 3.31 ▼0.04 | 47.67 ▼13.93 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.41 ▲0.55 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.61 ▼6.50 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.09 ▲1.70 |
Server storage [IO: ▲0.99MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 60 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Monta Checkout: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.21 ▼0.15 | 1.71 ▼0.05 | 38.21 ▼4.52 |
Dashboard /wp-admin | 2,192 ▲12 | 5.55 ▼0.06 | 90.26 ▼11.32 | 39.91 ▼1.65 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 2.01 ▲0.06 | 39.47 ▲0.53 | 36.41 ▲0.27 |
Add New Post /wp-admin/post-new.php | 1,526 ▼13 | 23.10 ▲0.00 | 598.39 ▼91.08 | 52.21 ▼4.31 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.21 ▲0.03 | 95.54 ▼4.48 | 43.07 ▲2.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Please take a closer look at the following
- 53× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\ResponseInterface' not found in wp-content/plugins/montapacking-checkout-woocommerce-extension/vendor/guzzlehttp/psr7/src/Response.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/montapacking-checkout-woocommerce-extension/vendor/guzzlehttp/psr7/src/InflateStream.php:20
- > PHP Parse error
syntax error, unexpected ')', expecting '|' or variable (T_VARIABLE) in wp-content/plugins/montapacking-checkout-woocommerce-extension/vendor/monta/checkout-api-wrapper/src/Objects/Address.php on line 123
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/montapacking-checkout-woocommerce-extension/vendor/guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/montapacking-checkout-woocommerce-extension/vendor/guzzlehttp/psr7/src/FnStream.php:16
- > PHP Parse error
syntax error, unexpected ':', expecting ')' in wp-content/plugins/montapacking-checkout-woocommerce-extension/montapacking-class.php on line 960
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/montapacking-checkout-woocommerce-extension/vendor/guzzlehttp/psr7/src/NoSeekStream.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/montapacking-checkout-woocommerce-extension/vendor/psr/http-client/src/RequestExceptionInterface.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/montapacking-checkout-woocommerce-extension/vendor/guzzlehttp/psr7/src/Request.php:15
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/montapacking-checkout-woocommerce-extension/vendor/guzzlehttp/promises/src/EachPromise.php:13
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Donate link: Invalid URI ("")
montapacking-checkout-woocommerce-extension/montapacking-checkout.php 92% from 13 tests
The primary PHP file in "Monta Checkout" version 1.58.13 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("montapacking-checkout-woocommerce-extension.php" instead of "montapacking-checkout.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected21,272 lines of code in 172 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 133 | 2,819 | 6,527 | 12,436 |
Markdown | 18 | 1,479 | 0 | 3,992 |
JavaScript | 4 | 627 | 832 | 2,955 |
JSON | 11 | 0 | 0 | 1,110 |
CSS | 1 | 21 | 11 | 553 |
PO File | 2 | 82 | 0 | 198 |
HTML | 2 | 5 | 0 | 27 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 14.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 190.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 26 | |
Traits | 3 | |
Classes | 90 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 90 | 100.00% |
▷ Final classes | 35 | 38.89% |
Methods | 924 | |
▷ Static methods | 157 | 16.99% |
▷ Public methods | 805 | 87.12% |
▷ Protected methods | 4 | 0.43% |
▷ Private methods | 115 | 12.45% |
Functions | 116 | |
▷ Named functions | 21 | 18.10% |
▷ Anonymous functions | 95 | 81.90% |
Constants | 65 | |
▷ Global constants | 1 | 1.54% |
▷ Class constants | 64 | 98.46% |
▷ Public constants | 53 | 82.81% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
37 PNG files occupy 0.57MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/Trunkrs.png | 5.61KB | 1.60KB | ▼ 71.56% |
assets/img/PostNL.png | 27.67KB | 12.40KB | ▼ 55.20% |
assets/img/AFH.png | 0.72KB | 0.28KB | ▼ 61.65% |
assets/img/Asendia.png | 22.08KB | 7.14KB | ▼ 67.65% |
assets/img/Izipack.png | 6.44KB | 2.63KB | ▼ 59.11% |