Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼12.38ms] Passed 4 tests
A check of server-side resources used by WC Search Orders By Product
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.03 | 43.77 ▲0.29 |
Dashboard /wp-admin | 45.15 ▲0.01 | 8,609,334.96 ▲8,406.98 |
Posts /wp-admin/edit.php | 3.31 ▼0.09 | 36.01 ▼23.31 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.12 | 88.09 ▼30.00 |
Media Library /wp-admin/upload.php | 3.40 ▲0.12 | 40.57 ▲3.50 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
recovery_mode_email_last_sent |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by WC Search Orders By Product
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,857 ▲96 | 14.06 ▼0.66 | 1.73 ▲0.10 | 45.18 ▼0.70 |
Dashboard /wp-admin | 2,248 ▲79 | 5.57 ▼0.14 | 86.53 ▼23.61 | 81.80 ▲35.01 |
Posts /wp-admin/edit.php | 45 ▼2,055 | 0.42 ▼1.62 | 0.11 ▼41.92 | 11.40 ▼24.66 |
Add New Post /wp-admin/post-new.php | 1,593 ▲65 | 23.07 ▼0.11 | 654.56 ▼1.38 | 55.47 ▼6.50 |
Media Library /wp-admin/upload.php | 1,462 ▲65 | 4.18 ▼0.00 | 103.70 ▲2.63 | 73.31 ▲30.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- recovery_mode_email_last_sent
- db_upgraded
Smoke tests 75% 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 no errors were found, this is by no means an exhaustive test
SRP 50% 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
Please fix the following items
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wc-search-orders-by-product/templates/admin/settings/settings-form-submit.php
- > /wp-content/plugins/wc-search-orders-by-product/templates/admin/settings/sidebar-support.php
- > /wp-content/plugins/wc-search-orders-by-product/templates/admin/settings/settings-form.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Donate link: Invalid url: "paypal.me/AKSHAYASWAROOP"
- Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wc-search-orders-by-product/wc-search-orders-by-product.php 92% from 13 tests
"WC Search Orders By Product" version 2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 145 characters long)
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
No dangerous file extensions were detected1,959 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 178 | 117 | 829 |
PHP | 9 | 203 | 318 | 781 |
SVG | 7 | 0 | 5 | 202 |
PO File | 1 | 29 | 32 | 90 |
JavaScript | 2 | 11 | 0 | 57 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 15.20 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 3.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 1 | 20.00% |
Methods | 34 | |
▷ Static methods | 11 | 32.35% |
▷ Public methods | 24 | 70.59% |
▷ Protected methods | 1 | 2.94% |
▷ Private methods | 9 | 26.47% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/images/control-panel-icon.png | 2.55KB | 1.75KB | ▼ 31.63% |
assets/admin/images/wp-heka-menu-icon-22.png | 0.51KB | 0.34KB | ▼ 32.76% |