73% ltl-freight-quotes-saia-edition

Code Review | LTL Freight Quotes - SAIA Edition

WordPress plugin LTL Freight Quotes - SAIA Edition scored 73% from 54 tests.

About plugin

  • Plugin page: ltl-freight-quote...
  • Plugin version: 2.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5.2-5.9
  • WordPress version: 5.8.1
  • First release: Jun 17, 2019
  • Latest release: Feb 14, 2022
  • Number of updates: 29
  • Update frequency: every 36.3 days
  • Top authors: enituretechnology (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,181 total downloads


Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.79MB] [CPU: ▼169.67ms] Passed 4 tests

This is a short check of server-side resources used by LTL Freight Quotes - SAIA Edition
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.0525.18 ▲0.39
Dashboard /wp-admin2.86 ▼0.2017.48 ▼23.84
Posts /wp-admin/edit.php2.86 ▼0.2515.46 ▼18.10
Add New Post /wp-admin/post-new.php2.86 ▼2.5817.71 ▼626.96
Media Library /wp-admin/upload.php2.86 ▼0.1416.24 ▼9.77

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 52 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for LTL Freight Quotes - SAIA Edition
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,852 ▲25116.17 ▲0.478.57 ▲3.2481.30 ▲5.24
Dashboard /wp-admin2,959 ▲666.13 ▼0.04114.88 ▼25.19168.63 ▼8.15
Posts /wp-admin/edit.php2,771 ▲343.40 ▲0.1765.26 ▲1.48138.83 ▼2.51
Add New Post /wp-admin/post-new.php2,517 ▼1,29616.76 ▼1.86387.14 ▼50.45171.98 ▲4.94
Media Library /wp-admin/upload.php1,771 ▲195.58 ▲0.09147.27 ▲4.92183.74 ▲1.66

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin cannot be uninstalled
    • > Warning in wp-admin/includes/plugin.php+299
    opendir(wp-content/plugins/woocommerce): failed to open dir: No such file or directory
  • This plugin does not fully uninstall, leaving 2 options in the database
    • saia_quotes_web_hook_plan_requests
    • saia_ltl_hold_at_terminal_remove_address

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ltl-freight-quotes-saia-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-saia-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-saia-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-saia-edition/template/csv-export.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ltl-freight-quotes-saia-edition/order/en-order-export.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 16 tag instead of maximum 10
You can look at the official readme.txt

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

The principal PHP file in "LTL Freight Quotes - SAIA Edition" v. 2.1.4 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Requires at least: The required version number must match the one declared in readme.txt ("5.7" instead of "5.5.2")

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 plugin8,354 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 109)
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity37.62
▷ Minimum class complexity1.00
▷ Maximum class complexity184.00
Average method complexity6.60
▷ Minimum method complexity1.00
▷ Maximum method complexity109.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes24100.00%
▷ Final classes00.00%
▷ Static methods10.64%
▷ Public methods157100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions45100.00%
▷ Anonymous functions00.00%
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
warehouse-dropship/wild/assets/images/edit.png3.09KB0.70KB▼ 77.43%
warehouse-dropship/wild/assets/images/delete_1.png3.49KB0.86KB▼ 75.41%
warehouse-dropship/wild/assets/images/delete.png3.49KB0.86KB▼ 75.41%
warehouse-dropship/wild/assets/images/edit_1.png3.09KB0.70KB▼ 77.43%