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.09MB] [CPU: ▼6.52ms] Passed 4 tests
An overview of server-side resources used by LTL Freight Quotes - Echo Edition
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 37.88 ▼4.46 |
Dashboard /wp-admin | 3.39 ▲0.09 | 46.78 ▼4.62 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 50.76 ▲4.84 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 92.32 ▼13.23 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 34.87 ▼3.76 |
Server storage [IO: ▲1.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 142 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for LTL Freight Quotes - Echo Edition
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲34 | 14.34 ▲0.09 | 1.78 ▼0.10 | 37.55 ▼7.33 |
Dashboard /wp-admin | 2,198 ▲21 | 5.60 ▲0.05 | 91.46 ▼8.95 | 43.02 ▼3.69 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 1.95 ▲0.01 | 42.93 ▲4.40 | 38.92 ▲4.04 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.14 ▼0.15 | 676.35 ▼18.52 | 61.06 ▲4.33 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.30 ▲0.10 | 98.37 ▼12.99 | 42.19 ▼7.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 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
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WC_Settings_Page' not found in wp-content/plugins/ltl-freight-quotes-echo-edition/admin/tab/en-tab.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ltl-freight-quotes-echo-edition/en-install.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
ltl-freight-quotes-echo-edition/ltl-freight-quotes-echo-edition.php 85% from 13 tests
"LTL Freight Quotes - Echo Edition" version 1.0.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Requires at least: Required version does not match the one declared in readme.txt ("5.7" instead of "6.4")
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
No dangerous file extensions were detected6,718 lines of code in 58 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 48 | 956 | 1,491 | 4,997 |
JavaScript | 5 | 234 | 233 | 1,173 |
CSS | 3 | 92 | 33 | 531 |
JSON | 2 | 0 | 0 | 17 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 103.00 |
Average method complexity | 4.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 35 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 42 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 42 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 201 | |
▷ Static methods | 98 | 48.76% |
▷ Public methods | 198 | 98.51% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 1.49% |
Functions | 29 | |
▷ Named functions | 25 | 86.21% |
▷ Anonymous functions | 4 | 13.79% |
Constants | 57 | |
▷ Global constants | 57 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
77 PNG files occupy 0.67MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/tab/carriers/assets/upgf.png | 8.73KB | 4.35KB | ▼ 50.15% |
admin/tab/carriers/assets/cnwy.png | 4.39KB | 2.41KB | ▼ 45.11% |
admin/tab/carriers/assets/paaf.png | 8.43KB | 4.27KB | ▼ 49.39% |
admin/tab/carriers/assets/cllq.png | 1.33KB | 1.68KB | 0.00% |
admin/tab/carriers/assets/pitd.png | 6.30KB | 3.39KB | ▼ 46.27% |