Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.79MB] [CPU: ▼169.67ms] Passed 4 tests
This is a short check of server-side resources used by LTL Freight Quotes - SAIA Edition
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.05 | 25.18 ▲0.39 |
Dashboard /wp-admin | 2.86 ▼0.20 | 17.48 ▼23.84 |
Posts /wp-admin/edit.php | 2.86 ▼0.25 | 15.46 ▼18.10 |
Add New Post /wp-admin/post-new.php | 2.86 ▼2.58 | 17.71 ▼626.96 |
Media Library /wp-admin/upload.php | 2.86 ▼0.14 | 16.24 ▼9.77 |
Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 52 new files
Database: no new tables, 1 new option
New WordPress options |
---|
saia_ltl_hold_at_terminal_remove_address |
Browser metrics Passed 4 tests
Checking browser requirements for LTL Freight Quotes - SAIA Edition
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,852 ▲251 | 16.17 ▲0.47 | 8.57 ▲3.24 | 81.30 ▲5.24 |
Dashboard /wp-admin | 2,959 ▲66 | 6.13 ▼0.04 | 114.88 ▼25.19 | 168.63 ▼8.15 |
Posts /wp-admin/edit.php | 2,771 ▲34 | 3.40 ▲0.17 | 65.26 ▲1.48 | 138.83 ▼2.51 |
Add New Post /wp-admin/post-new.php | 2,517 ▼1,296 | 16.76 ▼1.86 | 387.14 ▼50.45 | 171.98 ▲4.94 |
Media Library /wp-admin/upload.php | 1,771 ▲19 | 5.58 ▲0.09 | 147.27 ▲4.92 | 183.74 ▲1.66 |
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
Please fix the following items
- This plugin cannot be uninstalled
- > Warning in wp-admin/includes/plugin.php+299
opendir(wp-content/plugins/woocommerce): failed to open dir: No such file or directory
- This plugin does not fully uninstall, leaving 2 options in the database
- saia_quotes_web_hook_plan_requests
- saia_ltl_hold_at_terminal_remove_address
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ltl-freight-quotes-saia-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-saia-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-saia-edition/product/en-product-detail.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ltl-freight-quotes-saia-edition/template/csv-export.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ltl-freight-quotes-saia-edition/order/en-order-export.php:14
- > 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 important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: You are using too many tags: 16 tag instead of maximum 10
ltl-freight-quotes-saia-edition/ltl-freight-quotes-saia-edition.php 85% from 13 tests
The principal PHP file in "LTL Freight Quotes - SAIA Edition" v. 2.1.4 is loaded by WordPress automatically on each request
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Requires at least: The required version number must match the one declared in readme.txt ("5.7" instead of "5.5.2")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin8,354 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 1,018 | 1,130 | 5,447 |
JavaScript | 5 | 573 | 709 | 2,156 |
CSS | 2 | 150 | 40 | 751 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 109)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 37.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 184.00 |
Average method complexity | 6.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 109.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 24 | 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 | 45 | |
▷ Named functions | 45 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
4 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 4 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_1.png | 3.49KB | 0.86KB | ▼ 75.41% |
warehouse-dropship/wild/assets/images/delete.png | 3.49KB | 0.86KB | ▼ 75.41% |
warehouse-dropship/wild/assets/images/edit_1.png | 3.09KB | 0.70KB | ▼ 77.43% |