67% ltl-freight-quotes-fedex-freight-edition

Code Review | LTL Freight Quotes - For Customers of FedEx Freight

WordPress plugin LTL Freight Quotes - For Customers of FedEx Freight scored67%from 54 tests.

About plugin

  • Plugin page: ltl-freight-quote...
  • Plugin version: 3.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 6.4-6.3.1
  • WordPress version: 6.3.1
  • First release: May 30, 2017
  • Latest release: Sep 12, 2023
  • Number of updates: 90
  • Update frequency: every 25.7 days
  • Top authors: enituretechnology (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /3,204 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.31MB] [CPU: ▼24.95ms] Passed 4 tests

A check of server-side resources used by LTL Freight Quotes - For Customers of FedEx Freight
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.85 ▲1.3944.95 ▲4.88
Dashboard /wp-admin4.26 ▲0.9134.41 ▼25.73
Posts /wp-admin/edit.php4.26 ▲0.9035.34 ▼13.58
Add New Post /wp-admin/post-new.php4.26 ▼1.6335.84 ▼61.09
Media Library /wp-admin/upload.php4.26 ▲1.0337.12 ▲0.62

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 62 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
en_orders_ids
widget_theysaidso_widget
widget_recent-posts
en_orders_ids_flag
en_async_orders_exporting_process
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for LTL Freight Quotes - For Customers of FedEx Freight
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,949 ▲20313.90 ▼0.905.31 ▲3.5838.95 ▼5.55
Dashboard /wp-admin2,271 ▲835.29 ▲0.41110.89 ▲9.3043.77 ▲5.60
Posts /wp-admin/edit.php2,160 ▲712.31 ▲0.3145.35 ▲9.6641.49 ▲2.13
Add New Post /wp-admin/post-new.php1,428 ▼10020.79 ▲2.49572.61 ▼53.1265.66 ▲14.32
Media Library /wp-admin/upload.php1,447 ▲594.34 ▲0.12105.66 ▼0.3244.36 ▲1.68

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-admin/includes/plugin.php+294
    opendir(wp-content/plugins/woocommerce): failed to open dir: No such file or directory
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • db_upgraded
    • en_async_orders_exporting_process
    • en_orders_ids_flag
    • fedex_freight_web_hook_plan_requests
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • en_orders_ids

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)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/ltl-freight-quotes-fedex-freight-edition/logs/en-json-tree-view/en-jtv.php
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ltl-freight-quotes-fedex-freight-edition/template/csv-export.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ltl-freight-quotes-fedex-freight-edition/product/en-product-detail.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'FedEx_Feight_Curl_Request' not found in wp-content/plugins/ltl-freight-quotes-fedex-freight-edition/logs/en-logs.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ltl-freight-quotes-fedex-freight-edition/order/rates/order-rates.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ltl-freight-quotes-fedex-freight-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-fedex-freight-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-fedex-freight-edition/direct-service/connection-setting-direct-freight.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ltl-freight-quotes-fedex-freight-edition/direct-service/direct-service-request.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ltl-freight-quotes-fedex-freight-edition/direct-service/quote-setting-direct-freight.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

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: There are too many tags (16 tag instead of maximum 10)
You can take inspiration from this readme.txt

ltl-freight-quotes-fedex-freight-edition/ltl-freight-quotes-fedex-freight-edition.php 85% from 13 tests

"LTL Freight Quotes - For Customers of FedEx Freight" version 3.2.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Requires at least: Required version does 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 97% from 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
Everything looks great! No dangerous files found in this plugin12,235 lines of code in 56 files:
LanguageFilesBlank linesComment linesLines of code
PHP431,3231,2807,932
JavaScript75406602,896
CSS6204511,407

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 130)
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity39.37
▷ Minimum class complexity1.00
▷ Maximum class complexity256.00
Average method complexity6.95
▷ Minimum method complexity1.00
▷ Maximum method complexity130.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes27
▷ Abstract classes00.00%
▷ Concrete classes27100.00%
▷ Final classes00.00%
Methods175
▷ Static methods10.57%
▷ Public methods175100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions51
▷ Named functions4996.08%
▷ Anonymous functions23.92%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
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%