83% ltl-freight-quotes-echo-edition

Code Review | LTL Freight Quotes - Echo Edition

WordPress plugin LTL Freight Quotes - Echo Edition scored83%from 54 tests.

About plugin

  • Plugin page: ltl-freight-quote...
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 6.4-6.3.2
  • WordPress version: 6.3.1
  • First release: Sep 16, 2022
  • Latest release: Nov 7, 2023
  • Number of updates: 14
  • Update frequency: every 29.9 days
  • Top authors: enituretechnology (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /422 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1037.88 ▼4.46
Dashboard /wp-admin3.39 ▲0.0946.78 ▼4.62
Posts /wp-admin/edit.php3.51 ▲0.1550.76 ▲4.84
Add New Post /wp-admin/post-new.php5.98 ▲0.0992.32 ▼13.23
Media Library /wp-admin/upload.php3.32 ▲0.0934.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3414.34 ▲0.091.78 ▼0.1037.55 ▼7.33
Dashboard /wp-admin2,198 ▲215.60 ▲0.0591.46 ▼8.9543.02 ▼3.69
Posts /wp-admin/edit.php2,110 ▲101.95 ▲0.0142.93 ▲4.4038.92 ▲4.04
Add New Post /wp-admin/post-new.php1,532 ▲623.14 ▼0.15676.35 ▼18.5261.06 ▲4.33
Media Library /wp-admin/upload.php1,400 ▼34.30 ▲0.1098.37 ▼12.9942.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

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
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP489561,4914,997
JavaScript52342331,173
CSS39233531
JSON20017

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 code0.44
Average class complexity17.00
▷ Minimum class complexity1.00
▷ Maximum class complexity103.00
Average method complexity4.35
▷ Minimum method complexity1.00
▷ Maximum method complexity52.00
Code structure
Namespaces35
Interfaces0
Traits0
Classes42
▷ Abstract classes00.00%
▷ Concrete classes42100.00%
▷ Final classes00.00%
Methods201
▷ Static methods9848.76%
▷ Public methods19898.51%
▷ Protected methods00.00%
▷ Private methods31.49%
Functions29
▷ Named functions2586.21%
▷ Anonymous functions413.79%
Constants57
▷ Global constants57100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
admin/tab/carriers/assets/upgf.png8.73KB4.35KB▼ 50.15%
admin/tab/carriers/assets/cnwy.png4.39KB2.41KB▼ 45.11%
admin/tab/carriers/assets/paaf.png8.43KB4.27KB▼ 49.39%
admin/tab/carriers/assets/cllq.png1.33KB1.68KB0.00%
admin/tab/carriers/assets/pitd.png6.30KB3.39KB▼ 46.27%