79% ltl-freight-quotes-cortigo-edition

Code Review | LTL Freight Quotes - Cortigo Edition

WordPress plugin LTL Freight Quotes - Cortigo Edition scored 79% from 54 tests.

About plugin

  • Plugin page: ltl-freight-quote...
  • Plugin version: 2.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.6
  • WordPress version: 5.8.1
  • First release: Jan 19, 2018
  • Latest release: Jan 25, 2021
  • Number of updates: 25
  • Update frequency: every 44.2 days
  • Top authors: enituretechnology (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 719 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.04MB] [CPU: ▼152.56ms] Passed 4 tests

This is a short check of server-side resources used by LTL Freight Quotes - Cortigo Edition
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.93 ▲0.2126.31 ▲11.74
Dashboard /wp-admin3.06 ▲0.0030.68 ▼12.87
Posts /wp-admin/edit.php3.19 ▲0.0829.36 ▼13.18
Add New Post /wp-admin/post-new.php5.12 ▼0.3264.33 ▼582.59
Media Library /wp-admin/upload.php3.07 ▲0.0721.85 ▼1.60

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 79 new files
Database: 2 new tables, 12 new options
New tables
wp_warehouse
wp_carriers
New WordPress options
en_old_user_dropship_status
cortigo_freights_store_type
eniture_plugin_17
cortigo_freights_packages_expire_days
en_old_user_hazmat_status
wc_cortigo_edition
cortigo_freights_packages_quotes_package
wc_cortigo_db_version
en_old_user_warehouse_status
en_cortigo_update_now
...

Browser metrics Passed 4 tests

Checking browser requirements for LTL Freight Quotes - Cortigo Edition
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,871 ▲27016.67 ▲0.868.91 ▲2.4672.41 ▼1.97
Dashboard /wp-admin2,973 ▲776.21 ▲0.04119.38 ▼9.94166.25 ▼4.98
Posts /wp-admin/edit.php2,748 ▲83.42 ▲0.1964.68 ▼2.84135.80 ▼6.01
Add New Post /wp-admin/post-new.php2,353 ▼1,37616.05 ▼3.24370.86 ▼102.67158.42 ▼8.37
Media Library /wp-admin/upload.php1,791 ▲395.85 ▲0.33125.69 ▼31.93183.05 ▼0.73

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie tables detected upon uninstall: 2 tables
    • wp_carriers
    • wp_warehouse
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • en_old_user_warehouse_status
    • EN_Plugins
    • cortigo_quotes_web_hook_plan_requests
    • en_old_user_dropship_status
    • en_cortigo_update_now
    • en_old_user_hazmat_status

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

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
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
You can look at the official readme.txt

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

The main PHP script in "LTL Freight Quotes - Cortigo Edition" version 2.1.0 is automatically included on every request by WordPress
You should first fix the following items:
  • 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 ("5.2" instead of "4.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin7,610 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
PHP368361,1125,005
JavaScript53723871,817
CSS276348788

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity19.20
▷ Minimum class complexity1.00
▷ Maximum class complexity102.00
Average method complexity4.28
▷ Minimum method complexity1.00
▷ Maximum method complexity53.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes25
▷ Abstract classes00.00%
▷ Concrete classes25100.00%
▷ Final classes00.00%
Methods138
▷ Static methods21.45%
▷ Public methods138100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions35
▷ Named functions3497.14%
▷ Anonymous functions12.86%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
30 PNG files occupy 0.26MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/carrier-logos/knight.png3.33KB1.80KB▼ 45.94%
assets/carrier-logos/hmes.png5.72KB2.58KB▼ 54.91%
assets/carrier-logos/cenf.png11.64KB3.58KB▼ 69.23%
assets/icons/edit.png3.09KB0.70KB▼ 77.43%
(invalid) assets/carrier-logos/commandllc.png4.15KB0.00KB▼ 100.00%