Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼271.18ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Order Search Admin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 30.07 ▲10.56 |
Dashboard /wp-admin | 3.08 ▲0.03 | 37.04 ▲0.78 |
Posts /wp-admin/edit.php | 3.13 ▲0.03 | 37.37 ▼4.44 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 89.46 ▼1,072.98 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 31.60 ▼8.07 |
Server storage [IO: ▲0.54MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 60 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce Order Search Admin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,659 ▲53 | 16.23 ▲0.72 | 9.10 ▲0.79 | 48.13 ▼5.34 |
Dashboard /wp-admin | 2,937 ▲84 | 5.89 ▼0.08 | 143.41 ▼1.53 | 106.26 ▼2.98 |
Posts /wp-admin/edit.php | 2,716 ▲10 | 2.69 ▼0.00 | 71.94 ▲0.52 | 100.86 ▲5.35 |
Add New Post /wp-admin/post-new.php | 1,659 ▼2,048 | 18.69 ▲3.26 | 362.36 ▼54.19 | 112.56 ▼7.81 |
Media Library /wp-admin/upload.php | 1,785 ▲13 | 5.01 ▼0.00 | 142.00 ▼13.06 | 102.47 ▼19.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 10× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Interface 'WC_Order_Search_Admin\\AlgoliaSearch\\FailingHostsCache' not found in wp-content/plugins/wc-order-search-admin/libs/vendor/algolia/algoliasearch-client-php/src/AlgoliaSearch/FileFailingHostsCache.php:5
- > PHP Fatal error
Uncaught Error: Class 'WC_Order_Search_Admin\\Algolia\\Index\\Index' not found in wp-content/plugins/wc-order-search-admin/includes/class-orders-index.php:17
- > PHP Fatal error
Uncaught Error: Class 'WC_Order_Search_Admin\\AlgoliaSearch\\Iterators\\AlgoliaIterator' not found in wp-content/plugins/wc-order-search-admin/libs/vendor/algolia/algoliasearch-client-php/src/AlgoliaSearch/Iterators/RuleIterator.php:6
- > PHP Fatal error
Uncaught Error: Class 'WC_Order_Search_Admin\\AlgoliaSearch\\AlgoliaException' not found in wp-content/plugins/wc-order-search-admin/libs/vendor/algolia/algoliasearch-client-php/src/AlgoliaSearch/AlgoliaConnectionException.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wc-order-search-admin/wc-order-search-admin.php:21
- > PHP Fatal error
Uncaught Error: Class 'WC_Order_Search_Admin\\AlgoliaSearch\\Iterators\\AlgoliaIterator' not found in wp-content/plugins/wc-order-search-admin/libs/vendor/algolia/algoliasearch-client-php/src/AlgoliaSearch/Iterators/SynonymIterator.php:5
- > PHP Fatal error
Uncaught Error: Interface 'WC_Order_Search_Admin\\AlgoliaSearch\\FailingHostsCache' not found in wp-content/plugins/wc-order-search-admin/libs/vendor/algolia/algoliasearch-client-php/src/AlgoliaSearch/InMemoryFailingHostsCache.php:5
- > PHP Fatal error
Uncaught Error: Class 'WC_Order_Search_Admin\\Algolia\\Index\\Index' not found in wp-content/plugins/wc-order-search-admin/libs/vendor/algolia/index/src/SimpleIndex.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wc-order-search-admin/includes/admin/views/options.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/wc-order-search-admin/includes/class-commands.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wc-order-search-admin/wc-order-search-admin.php 85% from 13 tests
The primary PHP file in "WooCommerce Order Search Admin" version 1.13.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.6" instead of "2.2")
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("/languages.")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
These items require your attention
- Do not distribute dangerous files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/wc-order-search-admin/libs/vendor/algolia/algoliasearch-client-php/resources/ca-bundle.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 42 | 325 | 2,249 | 3,089 |
JSON | 1 | 0 | 0 | 438 |
JavaScript | 6 | 56 | 8 | 258 |
Markdown | 2 | 179 | 0 | 143 |
Sass | 1 | 18 | 0 | 78 |
SVG | 1 | 0 | 1 | 22 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 12.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 90.00 |
Average method complexity | 2.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 31 | |
▷ Abstract classes | 2 | 6.45% |
▷ Concrete classes | 29 | 93.55% |
▷ Final classes | 3 | 10.34% |
Methods | 269 | |
▷ Static methods | 16 | 5.95% |
▷ Public methods | 224 | 83.27% |
▷ Protected methods | 22 | 8.18% |
▷ Private methods | 23 | 8.55% |
Functions | 9 | |
▷ Named functions | 1 | 11.11% |
▷ Anonymous functions | 8 | 88.89% |
Constants | 15 | |
▷ Global constants | 3 | 20.00% |
▷ Class constants | 12 | 80.00% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected