67% ltl-freight-quotes-estes-edition

Code Review | LTL Freight Quotes - Estes Edition

WordPress plugin LTL Freight Quotes - Estes Edition scored67%from 54 tests.

About plugin

  • Plugin page: ltl-freight-quote...
  • Plugin version: 3.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.4.1
  • WordPress version: 6.3.1
  • First release: May 11, 2017
  • Latest release: Nov 21, 2023
  • Number of updates: 62
  • Update frequency: every 38.6 days
  • Top authors: enituretechnology (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,626 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.86MB] [CPU: ▼34.58ms] Passed 4 tests

Analyzing server-side resources used by LTL Freight Quotes - Estes Edition
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0838.60 ▼4.49
Dashboard /wp-admin3.10 ▼0.2523.80 ▼38.29
Posts /wp-admin/edit.php3.10 ▼0.2625.85 ▼25.26
Add New Post /wp-admin/post-new.php3.10 ▼2.7927.09 ▼64.77
Media Library /wp-admin/upload.php3.10 ▼0.1422.55 ▼10.01

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 54 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for LTL Freight Quotes - Estes Edition
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲12913.79 ▼0.958.68 ▲6.8740.06 ▼3.10
Dashboard /wp-admin2,212 ▲355.52 ▼0.0682.40 ▼17.9637.00 ▼2.03
Posts /wp-admin/edit.php2,118 ▲182.11 ▲0.1138.60 ▲1.3937.85 ▲4.99
Add New Post /wp-admin/post-new.php1,546 ▲2023.30 ▲0.13644.44 ▲39.8646.38 ▲2.44
Media Library /wp-admin/upload.php1,420 ▲264.21 ▼0.06102.16 ▲2.7544.52 ▲3.06

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These 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
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • estes_ltl_quotes_web_hook_plan_requests
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

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)
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 take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/ltl-freight-quotes-estes-edition/logs/en-json-tree-view/en-jtv.php
  • 7× 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-estes-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-estes-edition/template/csv-export.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'ESTES_Curl_Request' not found in wp-content/plugins/ltl-freight-quotes-estes-edition/logs/en-logs.php:44
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ltl-freight-quotes-estes-edition/product/en-product-detail.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ltl-freight-quotes-estes-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-estes-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-estes-edition/order/rates/order-rates.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: There are too many tags (16 tag instead of maximum 10)
You can take inspiration from this readme.txt

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

The principal PHP file in "LTL Freight Quotes - Estes Edition" v. 3.3.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Requires at least: The required version number must match the one declared in readme.txt ("6.2" instead of "5.7")

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
Success! There were no dangerous files found in this plugin9,152 lines of code in 45 files:
LanguageFilesBlank linesComment linesLines of code
PHP351,0521,2066,068
JavaScript64446422,043
CSS4196531,041

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
  • Method cyclomatic complexity should be reduced to less than 100 (currently 114)
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity46.19
▷ Minimum class complexity1.00
▷ Maximum class complexity195.00
Average method complexity6.75
▷ Minimum method complexity1.00
▷ Maximum method complexity114.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes21
▷ Abstract classes00.00%
▷ Concrete classes21100.00%
▷ Final classes00.00%
Methods165
▷ Static methods10.61%
▷ Public methods165100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions45
▷ Named functions4497.78%
▷ Anonymous functions12.22%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
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%