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
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.24ms] Passed 4 tests
This is a short check of server-side resources used by Shopp Minimum Order
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 34.93 ▼3.01 |
Dashboard /wp-admin | 3.32 ▼0.02 | 47.17 ▼13.09 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 41.14 ▼3.79 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 80.32 ▼8.93 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 29.11 ▼7.13 |
Minimum Order /wp-admin/admin.php?page=shopp-minimum-order | 3.19 | 29.38 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Shopp Minimum Order
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 14.35 ▼0.22 | 1.93 ▲0.24 | 43.91 ▲4.61 |
Dashboard /wp-admin | 2,195 ▲15 | 5.62 ▼0.04 | 95.36 ▲9.42 | 40.38 ▼1.15 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▲0.04 | 35.85 ▲2.45 | 31.50 ▼3.12 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.12 ▲0.21 | 655.05 ▼11.88 | 46.82 ▼12.41 |
Media Library /wp-admin/upload.php | 1,394 ▼0 | 4.19 ▲0.02 | 93.39 ▼5.13 | 41.32 ▼3.94 |
Minimum Order /wp-admin/admin.php?page=shopp-minimum-order | 848 | 2.00 | 21.93 | 43.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=shopp-minimum-order
- > Notice in wp-content/plugins/shopp-minimum-order-amount/shopp-minimum-order.php+69
Undefined index: action
- > GET request to /wp-admin/admin.php?page=shopp-minimum-order
- > Notice in wp-content/plugins/shopp-minimum-order-amount/shopp-minimum-order.php+130
Undefined variable: message
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
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/shopp-minimum-order-amount/shopp-minimum-order.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: shopp, order, minimum order, e-commerce, minimum
shopp-minimum-order-amount/shopp-minimum-order.php 92% from 13 tests
"Shopp Minimum Order" version 1.3.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("shopp-minimum-order-amount.php" instead of "shopp-minimum-order.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected166 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 73 | 47 | 166 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected