56% live-support-tickets

Code Review | Live Support Tickets, Contact Forms, CRM

WordPress plugin Live Support Tickets, Contact Forms, CRM scored56%from 54 tests.

About plugin

  • Plugin page: live-support-tickets
  • Plugin version: 1.7.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-6.3
  • WordPress version: 6.3.1
  • First release: Jun 23, 2022
  • Latest release: Sep 10, 2023
  • Number of updates: 56
  • Update frequency: every 8.0 days
  • Top authors: videowhisper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,233 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.70MB] [CPU: ▼10.41ms] Passed 4 tests

An overview of server-side resources used by Live Support Tickets, Contact Forms, CRM
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.46 ▲1.0042.98 ▲5.44
Dashboard /wp-admin4.38 ▲1.0450.76 ▼10.84
Posts /wp-admin/edit.php4.44 ▲1.0858.03 ▲13.69
Add New Post /wp-admin/post-new.php5.62 ▼0.2645.50 ▼48.20
Media Library /wp-admin/upload.php4.24 ▲1.0245.59 ▲11.96
Cans /wp-admin/admin.php?page=vw-support-cans4.2139.60
Conversations /wp-admin/admin.php?page=vw-support-conversations4.2240.39
Contacts /wp-admin/admin.php?page=vw-support-contacts4.2137.70
Properties /wp-admin/admin.php?page=vw-support-properties4.2135.90
Accounts /wp-admin/admin.php?page=vw-support-accounts4.2237.43
New Conversation /wp-admin/admin.php?page=vw-support-conversation-new4.2135.75
Form Invite /wp-admin/admin.php?page=vw-support-form-invite4.2136.80
Settings /wp-admin/admin.php?page=vw-support4.2237.11
Documentation /wp-admin/admin.php?page=vw-support-documentation4.2134.55
Plans /wp-admin/admin.php?page=vw-support-plans4.2335.68

Server storage [IO: ▲9.15MB] [DB: ▲0.02MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 95 new files
Database: 8 new tables, 8 new options
New tables
wp_vws_contacts
wp_vws_ticket_contacts
wp_vws_messages
wp_vws_cans
wp_vws_properties
wp_vws_sites
wp_vws_tickets
wp_vws_departments
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
VWsupportOptions
can_compress_scripts
db_upgraded
vwSupport_db_version
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Live Support Tickets, Contact Forms, CRM
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,091 ▲34514.00 ▼0.187.59 ▲5.8791.96 ▲47.33
Dashboard /wp-admin2,312 ▲1264.85 ▼0.19108.20 ▲1.1841.97 ▼3.62
Posts /wp-admin/edit.php2,195 ▲1062.06 ▲0.0240.48 ▲1.7737.82 ▲5.53
Add New Post /wp-admin/post-new.php1,601 ▲5617.46 ▼0.74590.11 ▼26.1557.46 ▼9.18
Media Library /wp-admin/upload.php1,494 ▲1034.22 ▲0.0294.36 ▼7.3245.74 ▲1.85
Cans /wp-admin/admin.php?page=vw-support-cans8792.0324.1340.12
Conversations /wp-admin/admin.php?page=vw-support-conversations1,3426.08138.3671.69
Contacts /wp-admin/admin.php?page=vw-support-contacts9182.0725.2832.35
Properties /wp-admin/admin.php?page=vw-support-properties8872.0723.5027.91
Accounts /wp-admin/admin.php?page=vw-support-accounts8622.0323.6632.60
New Conversation /wp-admin/admin.php?page=vw-support-conversation-new9162.0324.4731.53
Form Invite /wp-admin/admin.php?page=vw-support-form-invite9092.0423.4227.77
Settings /wp-admin/admin.php?page=vw-support9842.0023.6230.11
Documentation /wp-admin/admin.php?page=vw-support-documentation8692.0624.1928.60
Plans /wp-admin/admin.php?page=vw-support-plans8622.0324.7628.10

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The plugin did not uninstall successfully, leaving 8 tables in the database
    • wp_vws_contacts
    • wp_vws_properties
    • wp_vws_departments
    • wp_vws_sites
    • wp_vws_ticket_contacts
    • wp_vws_cans
    • wp_vws_tickets
    • wp_vws_messages
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • vwSupport_db_version
    • db_upgraded
    • widget_theysaidso_widget
    • VWsupportOptions

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=vw-support-conversations
    • > POST request to //wp-admin/admin-ajax.php?action=vws_app&task=contact_login
    • > Notice in wp-content/plugins/live-support-tickets/inc/server.php+646
    Undefined variable: userID
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=vw-support-plans
    • > Warning in wp-content/plugins/live-support-tickets/inc/options.php+1003
    mysqli::__construct(): (HY000/1045): Access denied for user ''@'localhost' (using password: NO)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=vw-support-plans
    • > Notice in wp-content/plugins/live-support-tickets/inc/options.php+1007
    Undefined variable: accountsDB
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=vw-support-plans
    • > Notice in wp-content/plugins/live-support-tickets/inc/options.php+1007
    Trying to get property 'connect_error' of non-object

SRP 0% 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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/live-support-tickets/server/translate.php
  • 14× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'DeepL\\DeepLTestBase' not found in wp-content/plugins/live-support-tickets/server/vendor/deeplcom/deepl-php/tests/TranslateDocumentTest.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/live-support-tickets/server/vendor/deeplcom/deepl-php/tests/DeepLTestBase.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'DeepL\\DeepLTestBase' not found in wp-content/plugins/live-support-tickets/server/vendor/deeplcom/deepl-php/tests/GeneralTest.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'DeepL\\DeepLException' not found in wp-content/plugins/live-support-tickets/server/vendor/deeplcom/deepl-php/src/TooManyRequestsException.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'DeepL\\DeepLException' not found in wp-content/plugins/live-support-tickets/server/vendor/deeplcom/deepl-php/src/AuthorizationException.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'DeepL\\DeepLException' not found in wp-content/plugins/live-support-tickets/server/vendor/deeplcom/deepl-php/src/QuotaExceededException.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'DeepL\\DeepLException' not found in wp-content/plugins/live-support-tickets/server/vendor/deeplcom/deepl-php/src/ConnectionException.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'DeepL\\DeepLException' not found in wp-content/plugins/live-support-tickets/server/vendor/deeplcom/deepl-php/src/DocumentTranslationException.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'DeepL\\DeepLTestBase' not found in wp-content/plugins/live-support-tickets/server/vendor/deeplcom/deepl-php/tests/GlossaryTest.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'DeepL\\LoggerInterface' not found in wp-content/plugins/live-support-tickets/server/vendor/deeplcom/deepl-php/tests/TestLogger.php:9

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=vw-support-conversations
    • > Network (severe)
    /wp-json/video-live-support/v1/list - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (Conversation (Ticket) View with Insert Files, Webcam/MicroPhone/Screen recordings), #2 (Custom Form with custom fields: text, dropdown, toggle), #3 (Buttons on content page), #4 (Report content support form), #5 (Floating support button on all pages)
The official readme.txt might help

live-support-tickets/live-support-tickets.php 85% from 13 tests

This is the main PHP file of "Live Support Tickets, Contact Forms, CRM" version 1.7.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 581 characters long)
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")

Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin15,103 lines of code in 68 files:
LanguageFilesBlank linesComment linesLines of code
SVG30129,299
PHP471,7563,5854,966
Markdown61900612
JSON300109
YAML111676
XML26029
Dockerfile1107
JavaScript30123
CSS20112

PHP code 50% from 2 tests

A short review of cyclomatic complexity and code structure
These items need your attention
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 140)
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity28.73
▷ Minimum class complexity1.00
▷ Maximum class complexity420.00
Average method complexity5.60
▷ Minimum method complexity1.00
▷ Maximum method complexity140.00
Code structure
Namespaces4
Interfaces1
Traits3
Classes36
▷ Abstract classes00.00%
▷ Concrete classes36100.00%
▷ Final classes12.78%
Methods250
▷ Static methods8534.00%
▷ Public methods22891.20%
▷ Protected methods31.20%
▷ Private methods197.60%
Functions28
▷ Named functions13.57%
▷ Anonymous functions2796.43%
Constants66
▷ Global constants23.03%
▷ Class constants6496.97%
▷ Public constants5789.06%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.29MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png134.62KB39.56KB▼ 70.61%
screenshot-4.png18.99KB6.59KB▼ 65.32%
semantic/themes/default/assets/images/flags.png27.46KB29.21KB0.00%
screenshot-5.png4.82KB2.26KB▼ 53.16%
screenshot-3.png43.61KB15.31KB▼ 64.88%