Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼0.84MB] [CPU: ▼31.14ms] Passed 4 tests
Server-side resources used by LTL Freight Quotes - Old Dominion Edition
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 40.56 ▼3.15 |
Dashboard /wp-admin | 3.10 ▼0.20 | 25.36 ▼25.04 |
Posts /wp-admin/edit.php | 3.11 ▼0.26 | 26.68 ▼23.35 |
Add New Post /wp-admin/post-new.php | 3.11 ▼2.79 | 26.12 ▼66.50 |
Media Library /wp-admin/upload.php | 3.11 ▼0.13 | 25.50 ▼9.65 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 55 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by LTL Freight Quotes - Old Dominion Edition
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲154 | 13.36 ▼1.37 | 8.93 ▲7.24 | 44.04 ▲0.07 |
Dashboard /wp-admin | 2,206 ▲32 | 5.60 ▼0.08 | 93.54 ▼5.61 | 45.95 ▲4.20 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 2.15 ▲0.13 | 39.39 ▼1.28 | 35.90 ▼0.15 |
Add New Post /wp-admin/post-new.php | 1,543 ▲17 | 23.30 ▼0.05 | 687.48 ▲22.30 | 64.24 ▲16.42 |
Media Library /wp-admin/upload.php | 1,417 ▲17 | 4.28 ▲0.06 | 97.60 ▼0.03 | 41.69 ▼0.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin cannot be uninstalled
- > Warning in wp-admin/includes/plugin.php+294
opendir(wp-content/plugins/woocommerce): failed to open dir: No such file or directory
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- odfl_quotes_web_hook_plan_requests
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/ltl-freight-quotes-odfl-edition/logs/en-json-tree-view/en-jtv.php
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ltl-freight-quotes-odfl-edition/order/rates/order-rates.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ltl-freight-quotes-odfl-edition/order/en-order-export.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ltl-freight-quotes-odfl-edition/product/en-product-detail.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ltl-freight-quotes-odfl-edition/order/en-order-widget.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ltl-freight-quotes-odfl-edition/template/csv-export.php:9
- > PHP Fatal error
Uncaught Error: Class 'ODFL_Curl_Request' not found in wp-content/plugins/ltl-freight-quotes-odfl-edition/logs/en-logs.php:44
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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 need to be fixed:
- Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
ltl-freight-quotes-odfl-edition/ltl-freight-quotes-odfl-edition.php 85% from 13 tests
The main PHP script in "LTL Freight Quotes - Old Dominion Edition" version 4.2.5 is automatically included on every request by WordPress
The following require your attention:
- Requires at least: Required version must be the same as the one declared in readme.txt ("6.2" instead of "6.4")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin9,952 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 35 | 1,057 | 1,176 | 6,245 |
JavaScript | 7 | 641 | 877 | 2,642 |
CSS | 4 | 198 | 47 | 1,065 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
It is recommended to fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 121)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 48.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 209.00 |
Average method complexity | 7.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 121.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 157 | |
▷ Static methods | 1 | 0.64% |
▷ Public methods | 157 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 50 | |
▷ Named functions | 48 | 96.00% |
▷ Anonymous functions | 2 | 4.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
warehouse-dropship/wild/assets/images/edit.png | 3.09KB | 0.70KB | ▼ 77.43% |
warehouse-dropship/wild/assets/images/delete.png | 3.49KB | 0.86KB | ▼ 75.41% |