Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.84MB] [CPU: ▼34.54ms] Passed 4 tests
A check of server-side resources used by LTL Freight Quotes - Purolator Edition
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 35.97 ▼5.22 |
Dashboard /wp-admin | 3.10 ▼0.20 | 23.73 ▼22.27 |
Posts /wp-admin/edit.php | 3.10 ▼0.25 | 22.16 ▼25.76 |
Add New Post /wp-admin/post-new.php | 3.10 ▼2.78 | 25.47 ▼74.56 |
Media Library /wp-admin/upload.php | 3.10 ▼0.13 | 22.17 ▼15.58 |
Server storage [IO: ▲0.45MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for LTL Freight Quotes - Purolator Edition
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲73 | 13.25 ▼1.10 | 3.81 ▲2.23 | 37.66 ▼1.65 |
Dashboard /wp-admin | 2,225 ▲50 | 5.65 ▲0.07 | 84.21 ▼17.71 | 42.40 ▼3.03 |
Posts /wp-admin/edit.php | 2,131 ▲28 | 2.31 ▲0.32 | 39.76 ▼2.45 | 36.97 ▼1.04 |
Add New Post /wp-admin/post-new.php | 1,556 ▲28 | 23.23 ▲0.10 | 667.76 ▼15.76 | 37.02 ▼17.18 |
Media Library /wp-admin/upload.php | 1,427 ▲24 | 4.31 ▲0.08 | 97.13 ▼2.06 | 43.42 ▼1.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Warning in wp-admin/includes/plugin.php+294
opendir(wp-content/plugins/woocommerce): failed to open dir: No such file or directory
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- purolator_ltl_quotes_web_hook_plan_requests
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ltl-freight-quotes-purolator-freight-edition/template/csv-export.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: There are too many tags (18 tag instead of maximum 10)
ltl-freight-quotes-purolator-freight-edition/ltl-freight-quotes-purolator-edition.php 77% from 13 tests
Analyzing the main PHP file in "LTL Freight Quotes - Purolator Edition" version 2.1.3
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("ltl-freight-quotes-purolator-freight-edition.php" instead of "ltl-freight-quotes-purolator-edition.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Requires at least: Required version must be the same as the one declared in readme.txt ("6.2" instead of "6.4")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected5,928 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 630 | 822 | 4,047 |
JavaScript | 3 | 298 | 382 | 1,182 |
CSS | 2 | 65 | 39 | 699 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 29.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 83.00 |
Average method complexity | 5.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 85 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 85 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 48 | |
▷ Named functions | 48 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
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% |
asset/edit.png | 3.09KB | 0.70KB | ▼ 77.43% |
asset/delete.png | 3.49KB | 0.86KB | ▼ 75.41% |
warehouse-dropship/wild/assets/images/delete.png | 3.49KB | 0.86KB | ▼ 75.41% |