Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.15ms] Passed 4 tests
Server-side resources used by LTL Freight Quotes - Daylight Edition
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 49.25 ▲9.32 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.28 ▲0.18 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.82 ▲1.16 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 85.49 ▼26.49 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 28.68 ▼3.45 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 68 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for LTL Freight Quotes - Daylight Edition
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲100 | 13.25 ▼0.99 | 1.96 ▼0.24 | 43.84 ▼0.60 |
Dashboard /wp-admin | 2,219 ▲31 | 5.85 ▼0.01 | 116.36 ▼2.05 | 42.97 ▼8.12 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 2.05 ▲0.06 | 36.69 ▼5.98 | 38.29 ▲1.47 |
Add New Post /wp-admin/post-new.php | 1,524 ▲10 | 23.38 ▲5.86 | 748.59 ▲143.08 | 77.23 ▲11.38 |
Media Library /wp-admin/upload.php | 1,401 ▲13 | 4.16 ▼0.03 | 104.26 ▲0.58 | 52.13 ▲8.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 11 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- en_daylight_store_type
- db_upgraded
- en_daylight_plan_message
- widget_theysaidso_widget
- widget_recent-comments
- en_daylight_plan_number
- en_daylight_plan_expire_days
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/ltl-freight-quotes-daylight-edition/admin/tab/logs/en-json-tree-view/en-jtv.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'EnDaylightCurl\\EnDaylightCurl' not found in wp-content/plugins/ltl-freight-quotes-daylight-edition/admin/tab/logs/en-logs.php:32
- > PHP Fatal error
Uncaught Error: Class 'WC_Settings_Page' not found in wp-content/plugins/ltl-freight-quotes-daylight-edition/admin/tab/en-tab.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ltl-freight-quotes-daylight-edition/en-install.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: There are too many tags (16 tag instead of maximum 10)
ltl-freight-quotes-daylight-edition/ltl-freight-quotes-daylight-edition.php 85% from 13 tests
"LTL Freight Quotes - Daylight Edition" version 2.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Requires at least: The required version number did not match 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 Passed 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
No dangerous file extensions were detected7,006 lines of code in 60 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 50 | 1,080 | 1,416 | 4,959 |
JavaScript | 5 | 247 | 235 | 1,324 |
CSS | 3 | 121 | 38 | 706 |
JSON | 2 | 0 | 0 | 17 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 17.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 108.00 |
Average method complexity | 4.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.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 | 195 | |
▷ Static methods | 92 | 47.18% |
▷ Public methods | 193 | 98.97% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.03% |
Functions | 32 | |
▷ Named functions | 30 | 93.75% |
▷ Anonymous functions | 2 | 6.25% |
Constants | 56 | |
▷ Global constants | 56 | 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
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 |
admin/tab/location/assets/images/delete.png | 3.49KB | 0.86KB | ▼ 75.41% |
admin/tab/location/assets/images/edit.png | 3.09KB | 0.70KB | ▼ 77.43% |