Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼157.72ms] Passed 4 tests
Server-side resources used by Minimum Order Amount for Checkout
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.09 | 34.97 ▲2.04 |
Dashboard /wp-admin | 3.14 ▲0.08 | 44.26 ▼1.30 |
Posts /wp-admin/edit.php | 3.25 ▲0.14 | 44.03 ▲3.05 |
Add New Post /wp-admin/post-new.php | 5.50 ▲0.07 | 90.43 ▼625.14 |
Media Library /wp-admin/upload.php | 3.08 ▲0.07 | 34.29 ▼6.49 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Minimum Order Amount for Checkout: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,792 ▲220 | 16.10 ▲0.06 | 12.43 ▲3.47 | 49.05 ▲0.43 |
Dashboard /wp-admin | 2,974 ▲40 | 5.92 ▼0.01 | 138.09 ▼7.56 | 104.13 ▲1.24 |
Posts /wp-admin/edit.php | 2,743 ▲4 | 2.73 ▲0.00 | 62.57 ▼4.49 | 85.62 ▲4.67 |
Add New Post /wp-admin/post-new.php | 1,687 ▲4 | 18.75 ▲0.29 | 378.64 ▼120.20 | 104.98 ▼16.55 |
Media Library /wp-admin/upload.php | 1,814 ▲7 | 5.03 ▲0.01 | 163.48 ▼3.93 | 112.79 ▼11.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully
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)
The smoke test was a success, however most plugin functionality was not tested
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
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/minimum-order-amount-for-checkout/public/partials/woo-min-order-amount-public-display.php
- > /wp-content/plugins/minimum-order-amount-for-checkout/admin/partials/woo-min-order-amount-admin-display.php
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)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: minimum order, woocommerce, order total, order, woo...
minimum-order-amount-for-checkout/woo-min-order-amount.php 85% from 13 tests
The entry point to "Minimum Order Amount for Checkout" version 1.1.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("minimum-order-amount-for-checkout.php" instead of "woo-min-order-amount.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
Everything looks great! No dangerous files found in this plugin354 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 125 | 563 | 348 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 2.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 6 | 20.00% |
▷ Public methods | 24 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 20.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
There were not PNG files found in your plugin