83% ltl-freight-quotes-day-ross-edition

Code Review | LTL Freight Quotes - Day & Ross Edition

WordPress plugin LTL Freight Quotes - Day & Ross Edition scored83%from 54 tests.

About plugin

  • Plugin page: ltl-freight-quote...
  • Plugin version: 2.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 6.4-6.4
  • WordPress version: 6.3.1
  • First release: Oct 13, 2021
  • Latest release: Nov 13, 2023
  • Number of updates: 19
  • Update frequency: every 40.1 days
  • Top authors: enituretechnology (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /669 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.07MB] [CPU: ▼10.94ms] Passed 4 tests

An overview of server-side resources used by LTL Freight Quotes - Day & Ross Edition
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0941.83 ▲3.78
Dashboard /wp-admin3.39 ▲0.0445.52 ▼15.94
Posts /wp-admin/edit.php3.50 ▲0.1447.36 ▼2.44
Add New Post /wp-admin/post-new.php5.97 ▲0.0881.41 ▼20.85
Media Library /wp-admin/upload.php3.31 ▲0.0833.46 ▼4.53

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 67 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by LTL Freight Quotes - Day & Ross Edition
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲4914.34 ▼0.051.69 ▼0.0542.36 ▼4.08
Dashboard /wp-admin2,201 ▲215.55 ▼0.0282.30 ▼9.0139.44 ▼5.26
Posts /wp-admin/edit.php2,107 ▲72.13 ▲0.1940.10 ▲3.4638.35 ▲3.44
Add New Post /wp-admin/post-new.php1,532 ▲623.67 ▲0.83633.68 ▼55.6463.90 ▲7.62
Media Library /wp-admin/upload.php1,406 ▲64.20 ▲0.06101.45 ▼12.2943.81 ▼5.65

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 11 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • en_dayross_plan_number
    • widget_recent-posts
    • en_dayross_plan_message
    • theysaidso_admin_options
    • en_dayross_plan_expire_date
    • en_dayross_store_type
    • en_dayross_plan_expire_days
    • db_upgraded
    • ...

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

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ltl-freight-quotes-day-ross-edition/en-install.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Settings_Page' not found in wp-content/plugins/ltl-freight-quotes-day-ross-edition/admin/tab/en-tab.php:13

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% 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: You are using too many tags: 16 tag instead of maximum 10
Please take inspiration from this readme.txt

ltl-freight-quotes-day-ross-edition/ltl-freight-quotes-dayross-edition.php 77% from 13 tests

The main PHP file in "LTL Freight Quotes - Day & Ross Edition" ver. 2.0.8 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ltl-freight-quotes-day-ross-edition.php" instead of "ltl-freight-quotes-dayross-edition.php")
  • Requires at least: Required version does not match the one declared in readme.txt ("6.2" instead of "6.4")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected6,879 lines of code in 59 files:
LanguageFilesBlank linesComment linesLines of code
PHP491,0591,3465,127
JavaScript52382291,207
CSS39234528
JSON20017

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity18.76
▷ Minimum class complexity1.00
▷ Maximum class complexity117.00
Average method complexity4.72
▷ Minimum method complexity1.00
▷ Maximum method complexity64.00
Code structure
Namespaces35
Interfaces0
Traits0
Classes42
▷ Abstract classes00.00%
▷ Concrete classes42100.00%
▷ Final classes00.00%
Methods201
▷ Static methods9044.78%
▷ Public methods19999.00%
▷ Protected methods00.00%
▷ Private methods21.00%
Functions32
▷ Named functions2990.62%
▷ Anonymous functions39.38%
Constants56
▷ Global constants56100.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
admin/tab/location/assets/images/edit.png3.09KB0.70KB▼ 77.43%
admin/tab/location/assets/images/delete.png3.49KB0.86KB▼ 75.41%