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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼10.01ms] Passed 4 tests
An overview of server-side resources used by Minimum Order Amount for Woocommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 34.24 ▼3.18 |
Dashboard /wp-admin | 3.39 ▲0.08 | 44.39 ▼5.63 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 47.74 ▲0.48 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 81.11 ▼31.20 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 34.77 ▼0.04 |
Minimum Order /wp-admin/admin.php?page=dc-moafw-menu-page | 3.29 | 31.25 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 12 new options
New WordPress options |
---|
dc_moafw_message |
dc_moafw_activate |
theysaidso_admin_options |
dc_moafw_currency_display_type |
can_compress_scripts |
dc_moafw_minimum |
dc_moafw_current_total_text |
widget_recent-posts |
widget_recent-comments |
dc_moafw_message_shop |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Minimum Order Amount for Woocommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 13.18 ▼1.20 | 1.46 ▼0.39 | 43.07 ▼2.34 |
Dashboard /wp-admin | 2,219 ▲31 | 5.82 ▲0.76 | 98.06 ▼11.47 | 40.75 ▼1.77 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.01 ▼0.04 | 39.52 ▼2.90 | 37.34 ▲1.42 |
Add New Post /wp-admin/post-new.php | 1,539 ▲18 | 23.39 ▲0.21 | 686.28 ▲90.86 | 57.31 ▲7.79 |
Media Library /wp-admin/upload.php | 1,401 ▲16 | 4.20 ▼0.08 | 98.68 ▲2.98 | 43.88 ▲3.86 |
Minimum Order /wp-admin/admin.php?page=dc-moafw-menu-page | 969 | 2.17 | 21.95 | 27.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 12 options in the database
- theysaidso_admin_options
- dc_moafw_current_total_text
- dc_moafw_activate
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- dc_moafw_minimum
- dc_moafw_message_shop
- dc_moafw_message
- ...
Smoke tests 50% 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 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/minimum-order-amount-for-woocommerce/public/partials/dc-moafw-public-display.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/minimum-order-amount-for-woocommerce/admin/partials/dc-moafw-admin-display.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/minimum-order-amount-for-woocommerce/uninstall.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% 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:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
minimum-order-amount-for-woocommerce/dc-moafw.php 77% from 13 tests
"Minimum Order Amount for Woocommerce" version 1.5.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("3.2.0" instead of "2.1.0")
- Main file name: Name the main plugin file the same as the plugin slug ("minimum-order-amount-for-woocommerce.php" instead of "dc-moafw.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin643 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 140 | 592 | 392 |
PO File | 3 | 60 | 60 | 241 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 4 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 5.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 1.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 33 | |
▷ Static methods | 2 | 6.06% |
▷ Public methods | 28 | 84.85% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.15% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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 were not PNG files found in your plugin