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: ▼5.78ms] Passed 4 tests
A check of server-side resources used by Order Limit for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.45 ▼2.03 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.79 ▼1.22 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.08 ▼4.88 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.87 ▼14.97 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.64 ▲6.53 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Order Limit for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.25 ▼1.05 | 1.73 ▼0.24 | 42.66 ▼2.87 |
Dashboard /wp-admin | 2,209 ▲21 | 4.85 ▲0.03 | 106.47 ▼3.49 | 39.09 ▼3.43 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.02 | 33.96 ▼8.61 | 37.38 ▲0.04 |
Add New Post /wp-admin/post-new.php | 1,536 ▲13 | 23.26 ▲0.06 | 651.20 ▲29.80 | 57.12 ▲2.03 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.18 ▼0.14 | 96.07 ▼5.15 | 40.94 ▼3.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
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)
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wc-order-limit-lite/includes/admin/views/view-wcol-support-tab.php
- 13× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wc-order-limit-lite/includes/admin/views/ajax-templates/template-products-rule-row.php:5
- > PHP Notice
Undefined variable: tab1 in wp-content/plugins/wc-order-limit-lite/includes/admin/views/view-wcol-support-tab.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/wc-order-limit-lite/includes/admin/views/view-wcol-category-rules.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/wc-order-limit-lite/includes/admin/views/view-wcol-product-rules.php:3
- > PHP Notice
Undefined variable: tab1 in wp-content/plugins/wc-order-limit-lite/includes/admin/views/view-wcol-support-tab.php on line 92
- > PHP Notice
Undefined variable: tab1 in wp-content/plugins/wc-order-limit-lite/includes/admin/views/view-wcol-support-tab.php on line 48
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/wc-order-limit-lite/includes/admin/views/view-wcol-order-total-rules.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wc-order-limit-lite/includes/admin/views/ajax-templates/template-single-product-cat-rule-row.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wc-order-limit-lite/includes/admin/views/ajax-templates/template-single-product-rule-row.php:2
- > PHP Notice
Undefined variable: tab1 in wp-content/plugins/wc-order-limit-lite/includes/admin/views/view-wcol-support-tab.php on line 136
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: orders, vender, products, woocommerce, limits...
wc-order-limit-lite/order-limit-lite-for-woocommerce.php 69% from 13 tests
The principal PHP file in "Order Limit for WooCommerce" v. 0.0.9 is loaded by WordPress automatically on each request
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 171 characters long)
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.5" instead of "4.4.0")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("wc-order-limit-lite.php" instead of "order-limit-lite-for-woocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin3,777 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 177 | 137 | 2,339 |
CSS | 2 | 31 | 5 | 569 |
JavaScript | 2 | 31 | 4 | 559 |
PO File | 1 | 117 | 229 | 310 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 111.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 264.00 |
Average method complexity | 8.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 68.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 45 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
No PNG images were found in this plugin