Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼8.16ms] Passed 4 tests
Server-side resources used by WooCommerce Priority Order
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 35.23 ▼1.33 |
Dashboard /wp-admin | 3.43 ▲0.13 | 42.29 ▼6.88 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 45.33 ▼1.21 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 80.28 ▼19.47 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 29.66 ▼4.94 |
Add to priority /wp-admin/admin.php?page=wc-priority-order | 3.29 | 30.40 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce Priority Order
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲5 | 14.72 ▲0.44 | 1.70 ▼0.20 | 39.24 ▼1.95 |
Dashboard /wp-admin | 2,194 ▲17 | 5.64 ▲0.05 | 92.65 ▲2.91 | 43.36 ▲3.58 |
Posts /wp-admin/edit.php | 2,102 ▲5 | 2.03 ▲0.04 | 40.31 ▲4.12 | 37.30 ▲0.95 |
Add New Post /wp-admin/post-new.php | 1,530 ▲2 | 23.07 ▼0.08 | 627.72 ▼3.24 | 58.26 ▲9.39 |
Media Library /wp-admin/upload.php | 1,402 ▲2 | 4.13 ▼0.15 | 102.76 ▼10.34 | 43.95 ▼5.14 |
Add to priority /wp-admin/admin.php?page=wc-priority-order | 28 | 0.42 | 0.09 | 3.48 |
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_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- 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)
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=wc-priority-order
- > Network (severe)
wp-admin/edit.php?post_type=shop_order - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== priority-order ===
)
priority-order/priority-order.php Passed 13 tests
The main file in "WooCommerce Priority Order" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
41 characters long description:
Push WooCommerce orders to order priority
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
Everything looks great! No dangerous files found in this plugin226 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 101 | 408 | 204 |
CSS | 1 | 1 | 0 | 22 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 2.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 2 | 8.00% |
▷ Public methods | 21 | 84.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 16.00% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.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