Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.64ms] Passed 4 tests
Server-side resources used by Order Minimum/Maximum Amount for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 33.69 ▼8.32 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.81 ▼4.30 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.72 ▲1.63 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.29 ▼3.58 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.40 ▲4.07 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 51 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Order Minimum/Maximum Amount for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.72 ▲0.37 | 1.54 ▼0.22 | 38.46 ▼6.40 |
Dashboard /wp-admin | 2,198 ▲21 | 5.60 ▼0.04 | 95.53 ▼4.53 | 42.21 ▼2.47 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.94 ▼0.08 | 38.60 ▼1.36 | 36.26 ▼4.07 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.18 ▲0.07 | 593.00 ▼70.37 | 52.81 ▲1.19 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.20 ▼0.07 | 94.30 ▼5.52 | 41.04 ▼3.69 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test
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 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: Screenshot #1 (Frontend example – Cart notice.) image missing
order-minimum-amount-for-woocommerce/order-minimum-amount-for-woocommerce.php Passed 13 tests
The primary PHP file in "Order Minimum/Maximum Amount for WooCommerce" version 4.3.8 is used by WordPress to initiate all plugin functionality
108 characters long description:
Set required minimum and/or maximum order amounts (e.g. sum, quantity, weight, volume, etc.) in WooCommerce.
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Almost there! Just fix the following issues
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/order-minimum-amount-for-woocommerce/vendor/bin/phpcbf.bat
- ☣ wp-content/plugins/order-minimum-amount-for-woocommerce/vendor/bin/phpcs.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 582 | 1,698 | 4,865 |
PO File | 1 | 405 | 583 | 1,175 |
JSON | 3 | 0 | 0 | 185 |
XML | 1 | 12 | 14 | 22 |
DOS Batch | 2 | 0 | 0 | 8 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 20.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 135.00 |
Average method complexity | 3.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 28 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 28 | 100.00% |
▷ Final classes | 1 | 3.57% |
Methods | 194 | |
▷ Static methods | 19 | 9.79% |
▷ Public methods | 192 | 98.97% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.03% |
Functions | 12 | |
▷ Named functions | 5 | 41.67% |
▷ Anonymous functions | 7 | 58.33% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin