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.05MB] [CPU: ▼9.26ms] Passed 4 tests
This is a short check of server-side resources used by WooCommerce Order Search
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 36.20 ▼4.37 |
Dashboard /wp-admin | 3.37 ▲0.02 | 45.53 ▼17.66 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 51.06 ▲0.96 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 91.61 ▼10.99 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.46 ▼4.02 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
WooCommerce Order Search: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲61 | 14.44 ▲0.05 | 1.60 ▼0.15 | 39.22 ▼4.05 |
Dashboard /wp-admin | 2,216 ▲28 | 4.84 ▼1.06 | 111.88 ▲2.80 | 41.35 ▼5.60 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.01 ▼0.00 | 40.33 ▲3.68 | 36.18 ▼0.19 |
Add New Post /wp-admin/post-new.php | 1,540 ▲26 | 23.08 ▲5.64 | 646.32 ▼45.43 | 50.56 ▼8.31 |
Media Library /wp-admin/upload.php | 1,398 ▲13 | 4.20 ▼0.03 | 97.47 ▼12.01 | 41.65 ▼5.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/woocommerce-order-searching/templates/wcos-order-search-form.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-order-searching/woo-includes/woo-functions.php:58
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/woocommerce-order-searching/templates/wcos-order-search-page.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woocommerce-order-searching/woo-includes/wcos-settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_can_search_order() in wp-content/plugins/woocommerce-order-searching/templates/wcos-order-search-list.php:10
- > 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 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:
- Plugin Name: Please specify the plugin name on the first line (
=== woocommerce-order-searching ===
)
woocommerce-order-searching/woocommerce-order-search.php 77% from 13 tests
The entry point to "WooCommerce Order Search" version 1.1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- 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
- Requires at least: Required version does not match the one declared in readme.txt ("3.0.1" instead of "3.8")
- Main file name: The principal plugin file should be the same as the plugin slug ("woocommerce-order-searching.php" instead of "woocommerce-order-search.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected735 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 150 | 111 | 702 |
PO File | 1 | 5 | 7 | 33 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 19.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 3.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 12 | 42.86% |
▷ Public methods | 28 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin