73% ltl-freight-quotes-sefl-edition

Code Review | LTL Freight Quotes - SEFL Edition

WordPress plugin LTL Freight Quotes - SEFL Edition scored73%from 54 tests.

About plugin

  • Plugin page: ltl-freight-quote...
  • Plugin version: 3.1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 6.4-6.3
  • WordPress version: 6.3.1
  • First release: Jun 8, 2017
  • Latest release: Aug 9, 2023
  • Number of updates: 41
  • Update frequency: every 55.2 days
  • Top authors: enituretechnology (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,878 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.76MB] [CPU: ▼33.65ms] Passed 4 tests

Server-side resources used by LTL Freight Quotes - SEFL Edition
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.3141.51 ▼9.82
Dashboard /wp-admin3.20 ▼0.1527.63 ▼41.89
Posts /wp-admin/edit.php3.20 ▼0.1628.64 ▼21.72
Add New Post /wp-admin/post-new.php3.20 ▼2.6929.95 ▼61.16
Media Library /wp-admin/upload.php3.20 ▼0.0327.42 ▼8.58

Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 51 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
en_orders_ids_flag
can_compress_scripts
db_upgraded
en_orders_ids
en_async_orders_exporting_process
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

LTL Freight Quotes - SEFL Edition: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,979 ▲20813.79 ▼0.465.70 ▲3.9041.08 ▼3.63
Dashboard /wp-admin2,276 ▲705.03 ▲0.13109.99 ▼12.7445.90 ▲2.86
Posts /wp-admin/edit.php2,159 ▲592.35 ▲0.3841.85 ▲3.4547.93 ▲11.22
Add New Post /wp-admin/post-new.php1,430 ▼11520.67 ▼2.56552.67 ▼124.4476.42 ▲21.62
Media Library /wp-admin/upload.php1,452 ▲494.32 ▲0.13107.28 ▼1.3245.95 ▼2.78

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • 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
  • This plugin does not fully uninstall, leaving 10 options in the database
    • widget_recent-comments
    • en_async_orders_exporting_process
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • en_orders_ids
    • en_orders_ids_flag
    • theysaidso_admin_options
    • db_upgraded
    • sefl_quotes_web_hook_plan_requests

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ltl-freight-quotes-sefl-edition/order/en-order-widget.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ltl-freight-quotes-sefl-edition/product/en-product-detail.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ltl-freight-quotes-sefl-edition/template/csv-export.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ltl-freight-quotes-sefl-edition/order/en-order-export.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ltl-freight-quotes-sefl-edition/order/rates/order-rates.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
Please take inspiration from this readme.txt

ltl-freight-quotes-sefl-edition/ltl-freight-quotes-sefl-edition.php 77% from 13 tests

"LTL Freight Quotes - SEFL Edition" version 3.1.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • 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
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 143 characters long)
  • Requires at least: Required version must match the one declared in readme.txt ("6.2" instead of "6.4")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected8,404 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
PHP349601,0925,749
JavaScript53976071,797
CSS315947858

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 101)
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity41.80
▷ Minimum class complexity1.00
▷ Maximum class complexity186.00
Average method complexity6.51
▷ Minimum method complexity1.00
▷ Maximum method complexity101.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes00.00%
Methods148
▷ Static methods10.68%
▷ Public methods148100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions43
▷ Named functions43100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
warehouse-dropship/wild/assets/images/delete.png3.49KB0.86KB▼ 75.41%
warehouse-dropship/wild/assets/images/edit.png3.09KB0.70KB▼ 77.43%