Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼8.20ms] Passed 4 tests
Analyzing server-side resources used by Order Weight for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 44.57 ▲9.34 |
Dashboard /wp-admin | 3.31 ▼0.04 | 43.36 ▼18.80 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.05 ▲1.73 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.33 ▼13.79 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.89 ▼1.92 |
Server storage [IO: ▲0.10MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Order Weight for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.67 ▲0.36 | 2.05 ▲0.34 | 48.01 ▲3.23 |
Dashboard /wp-admin | 2,198 ▲21 | 5.62 ▼0.01 | 82.78 ▼15.68 | 38.38 ▼9.10 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.95 ▲0.01 | 41.93 ▲4.60 | 38.91 ▲1.88 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.82 ▼0.20 | 649.87 ▲21.44 | 53.42 ▲2.31 |
Media Library /wp-admin/upload.php | 1,391 ▼9 | 4.18 ▲0.03 | 101.05 ▲2.53 | 40.28 ▼2.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/woo-order-weight/admin/class-woo-order-weight-wp-cli.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
9 plugin tags: shop, woocommerce plugin, ecommerce, order, woocommerce order weight...
woo-order-weight/woo-order-weight.php 92% from 13 tests
The main file in "Order Weight for WooCommerce" v. 1.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 200 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin994 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 305 | 702 | 731 |
JavaScript | 2 | 42 | 84 | 204 |
CSS | 1 | 6 | 0 | 36 |
PO File | 1 | 2 | 2 | 23 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 6.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 1.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 68 | |
▷ Static methods | 3 | 4.41% |
▷ Public methods | 61 | 89.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 10.29% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected