10% ltl-freight-quotes-worldwide-express-edition

Code Review | LTL Freight Quotes - Worldwide Express Edition

WordPress plugin LTL Freight Quotes - Worldwide Express Edition scored10%from 54 tests.

About plugin

  • Plugin page: ltl-freight-quote...
  • Plugin version: 5.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 6.4-6.3
  • WordPress version: 6.3.1
  • First release: May 5, 2016
  • Latest release: Sep 27, 2023
  • Number of updates: 138
  • Update frequency: every 19.6 days
  • Top authors: enituretechnology (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /10,496 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/ltl-freight-quotes-worldwide-express-edition/carrier_list.php+27
    Undefined offset: 0

Server metrics [RAM: ▲0.56MB] [CPU: ▼19.29ms] Passed 4 tests

This is a short check of server-side resources used by LTL Freight Quotes - Worldwide Express Edition
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /5.14 ▲1.6856.24 ▲13.51
Dashboard /wp-admin4.50 ▲1.2035.42 ▼16.26
Posts /wp-admin/edit.php4.50 ▲1.1532.79 ▼18.65
Add New Post /wp-admin/post-new.php4.50 ▼1.3838.59 ▼48.51
Media Library /wp-admin/upload.php4.50 ▲1.2742.19 ▲6.25

Server storage [IO: ▲1.44MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 132 new files
Database: 2 new tables, 19 new options
New tables
wp_wp_freights
wp_warehouse
New WordPress options
widget_recent-posts
wwe_ltl_packages_quotes_package
prevent_proceed_checkout_eniture
en_orders_ids_flag
theysaidso_admin_options
wwe_quests_store_type
eniture_plugin_2
wc_pervent_proceed_checkout_eniture
wwe_ltl_package_expire_days
wwe_ltl_package_expire_date
...

Browser metrics Passed 4 tests

LTL Freight Quotes - Worldwide Express Edition: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,938 ▲17713.56 ▼0.798.87 ▲7.1241.61 ▼5.05
Dashboard /wp-admin2,232 ▲554.92 ▼0.7188.79 ▼10.6636.66 ▼7.47
Posts /wp-admin/edit.php2,144 ▲412.43 ▲0.4642.28 ▲3.9837.81 ▲4.85
Add New Post /wp-admin/post-new.php1,566 ▲4023.08 ▼0.33622.78 ▼36.0533.47 ▼23.70
Media Library /wp-admin/upload.php1,440 ▲404.49 ▲0.28117.60 ▲9.0744.19 ▼2.87

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-admin/includes/plugin.php+294
    opendir(wp-content/plugins/woocommerce): failed to open dir: No such file or directory
  • The uninstall procedure failed, leaving 2 tables in the database
    • wp_warehouse
    • wp_wp_freights
  • This plugin did not uninstall successfully, leaving 15 options in the database
    • en_wwe_ltl_update_now
    • wwe_quests_web_hook_plan_requests
    • en_async_orders_exporting_process
    • en_old_user_dropship_status
    • widget_theysaidso_widget
    • en_old_user_warehouse_status
    • can_compress_scripts
    • theysaidso_admin_options
    • en_orders_ids_flag
    • en_orders_ids
    • ...

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/ltl-freight-quotes-worldwide-express-edition/logs/en-json-tree-view/en-jtv.php
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ltl-freight-quotes-worldwide-express-edition/product/en-common-product-detail.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ltl-freight-quotes-worldwide-express-edition/order/en-order-export.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ltl-freight-quotes-worldwide-express-edition/template/csv-export.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ltl-freight-quotes-worldwide-express-edition/order/rates/order-rates.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ltl-freight-quotes-worldwide-express-edition/product/en-product-detail.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ltl-freight-quotes-worldwide-express-edition/order/en-order-widget.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'WWE_LTL_Curl_Request' not found in wp-content/plugins/ltl-freight-quotes-worldwide-express-edition/logs/en-logs.php:14

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

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

ltl-freight-quotes-worldwide-express-edition/woocommercefrieght.php 77% from 13 tests

The main file in "LTL Freight Quotes - Worldwide Express Edition" v. 5.0.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("ltl-freight-quotes-worldwide-express-edition.php" instead of "woocommercefrieght.php")
  • 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: Required version does not 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 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected13,097 lines of code in 55 files:
LanguageFilesBlank linesComment linesLines of code
PHP441,4691,6228,989
JavaScript64706352,488
CSS5306491,620

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 208)
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity49.21
▷ Minimum class complexity3.00
▷ Maximum class complexity330.00
Average method complexity7.11
▷ Minimum method complexity1.00
▷ Maximum method complexity208.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes29
▷ Abstract classes00.00%
▷ Concrete classes29100.00%
▷ Final classes00.00%
Methods229
▷ Static methods20.87%
▷ Public methods229100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions53
▷ Named functions5298.11%
▷ Anonymous functions11.89%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
70 PNG files occupy 0.63MB with 0.41MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
Carrier_Logos/fwdn.png7.01KB2.52KB▼ 64.06%
Carrier_Logos/pitd.png14.05KB4.96KB▼ 64.67%
Carrier_Logos/pyle.png15.53KB5.18KB▼ 66.67%
Carrier_Logos/pmli.png3.75KB1.39KB▼ 63.03%
Carrier_Logos/stdf.png11.41KB3.76KB▼ 67.04%