Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼3.93ms] Passed 4 tests
An overview of server-side resources used by LTL Freight Quotes - Freightview Edition
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 37.87 ▼6.05 |
Dashboard /wp-admin | 3.40 ▲0.09 | 55.02 ▼3.16 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 48.42 ▼1.42 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 88.81 ▼5.09 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 35.48 ▲2.23 |
Server storage [IO: ▲1.14MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 147 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
LTL Freight Quotes - Freightview Edition: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲38 | 14.67 ▲0.26 | 1.64 ▼0.02 | 36.22 ▼7.29 |
Dashboard /wp-admin | 2,196 ▲22 | 5.62 ▲0.01 | 93.25 ▼1.08 | 44.99 ▼2.02 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 1.96 ▲0.00 | 35.90 ▼4.54 | 32.10 ▼3.95 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 23.44 ▲0.42 | 684.01 ▲64.48 | 56.74 ▼2.70 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 4.27 ▲0.12 | 96.03 ▼1.61 | 42.34 ▲0.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 11 options in the database
- widget_theysaidso_widget
- en_daylight_plan_expire_date
- db_upgraded
- can_compress_scripts
- en_daylight_store_type
- theysaidso_admin_options
- en_daylight_plan_number
- en_daylight_plan_expire_days
- widget_recent-posts
- en_freightview_plan_message
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/ltl-freight-quotes-freightview-edition/admin/tab/logs/en-json-tree-view/en-jtv.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ltl-freight-quotes-freightview-edition/admin/tab/logs/en-logs.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ltl-freight-quotes-freightview-edition/en-install.php:13
- > PHP Warning
Use of undefined constant EN_FREIGHTVIEW_SERVER_NAME - assumed 'EN_FREIGHTVIEW_SERVER_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/ltl-freight-quotes-freightview-edition/admin/tab/logs/en-logs.php on line 33
- > PHP Fatal error
Uncaught Error: Class 'WC_Settings_Page' not found in wp-content/plugins/ltl-freight-quotes-freightview-edition/admin/tab/en-tab.php:14
- > 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 errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Tags: You are using too many tags: 16 tag instead of maximum 10
ltl-freight-quotes-freightview-edition/ltl-freight-quotes-freightview-edition.php 85% from 13 tests
This is the main PHP file of "LTL Freight Quotes - Freightview Edition" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- 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: The required version number must match 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 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin7,764 lines of code in 63 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 51 | 1,046 | 1,497 | 5,539 |
JavaScript | 6 | 263 | 245 | 1,474 |
CSS | 4 | 128 | 36 | 734 |
JSON | 2 | 0 | 0 | 17 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 18.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 122.00 |
Average method complexity | 4.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 58.00 |
Code structure | ||
---|---|---|
Namespaces | 35 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 43 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 43 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 207 | |
▷ Static methods | 102 | 49.28% |
▷ Public methods | 204 | 98.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 1.45% |
Functions | 28 | |
▷ Named functions | 25 | 89.29% |
▷ Anonymous functions | 3 | 10.71% |
Constants | 61 | |
▷ Global constants | 61 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
77 PNG files occupy 0.64MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/tab/carriers/assets/zip-xpress.png | 1.57KB | 1.57KB | 0.06% |
admin/tab/carriers/assets/xpo-logistics.png | 8.63KB | 3.13KB | ▼ 63.75% |
admin/tab/location/assets/images/edit.png | 3.09KB | 0.70KB | ▼ 77.43% |
admin/tab/carriers/assets/nemf.png | 5.78KB | 2.88KB | ▼ 50.14% |
admin/tab/carriers/assets/btnb.png | 11.25KB | 5.99KB | ▼ 46.77% |