62% js-support-ticket

Code Review | JS Help Desk - Best Help Desk & Support Plugin

WordPress plugin JS Help Desk - Best Help Desk & Support Plugin scored62%from 54 tests.

About plugin

  • Plugin page: js-support-ticket
  • Plugin version: 2.8.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3
  • WordPress version: 6.3.1
  • First release: Oct 10, 2014
  • Latest release: Sep 5, 2023
  • Number of updates: 1
  • Update frequency: every 365.0 days

Code review

54 tests

User reviews

62 reviews

Install metrics

5,000+ active /265,982 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: ▲1.27MB] [CPU: ▲5.84ms] Passed 4 tests

Server-side resources used by JS Help Desk - Best Help Desk & Support Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /5.25 ▲1.7954.17 ▲16.67
Dashboard /wp-admin4.57 ▲1.2355.97 ▼2.60
Posts /wp-admin/edit.php4.69 ▲1.3355.82 ▲8.96
Add New Post /wp-admin/post-new.php7.16 ▲1.2695.04 ▲2.14
Media Library /wp-admin/upload.php4.50 ▲1.2747.15 ▲14.87
Help Desk /wp-admin/admin.php?page=jssupportticket6.93241.12
System Emails /wp-admin/admin.php?page=email6.5055.44
Themes /wp-admin/admin.php?page=themes4.6845.16
Premium Addon /wp-admin/admin.php?page=agent6.0652.20
Premium Addon /wp-admin/admin.php?page=announcement6.0653.28
Slug /wp-admin/admin.php?page=slug6.1757.82
Post Installation /wp-admin/admin.php?page=postinstallation5.44492.55
Roles /wp-admin/admin.php?page=role6.1160.80
Configurations /wp-admin/admin.php?page=configuration7.0582.44
Reports /wp-admin/admin.php?page=reports6.0962.66

Server storage [IO: ▲13.18MB] [DB: ▲0.15MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 1,121 new files
Database: 14 new tables, 9 new options
New tables
wp_js_ticket_email
wp_js_ticket_config
wp_js_ticket_erasedatarequests
wp_js_ticket_system_errors
wp_js_ticket_users
wp_js_ticket_priorities
wp_js_ticket_attachments
wp_js_ticket_replies
wp_js_ticket_tickets
wp_js_ticket_fieldsordering
...
New WordPress options
can_compress_scripts
jssupportticket_show_review_box_after
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
jssupport_post_installation
_wpjshd_session_
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for JS Help Desk - Best Help Desk & Support Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,131 ▲38513.99 ▼0.6312.15 ▲10.3638.89 ▼0.59
Dashboard /wp-admin2,380 ▲2065.78 ▲0.2184.34 ▼1.8373.18 ▲32.62
Posts /wp-admin/edit.php2,304 ▲2042.25 ▲0.2531.87 ▼5.4342.04 ▲5.26
Add New Post /wp-admin/post-new.php1,713 ▲18720.98 ▼2.14677.19 ▲16.4539.96 ▼13.72
Media Library /wp-admin/upload.php1,591 ▲1914.51 ▲0.3492.63 ▼5.7883.25 ▲43.20
Help Desk /wp-admin/admin.php?page=jssupportticket3,3716.3066.44201.00
System Emails /wp-admin/admin.php?page=email2,0492.2947.0086.12
Themes /wp-admin/admin.php?page=themes3,0672.9967.08110.12
Premium Addon /wp-admin/admin.php?page=agent1,9752.3142.4578.53
Premium Addon /wp-admin/admin.php?page=announcement1,9782.2941.8884.63
Slug /wp-admin/admin.php?page=slug2,3032.3541.8790.34
Post Installation /wp-admin/admin.php?page=postinstallation1,2261.8224.1944.07
Roles /wp-admin/admin.php?page=role2,0322.4646.3298.60
Configurations /wp-admin/admin.php?page=configuration5,3569.53197.04178.73
Reports /wp-admin/admin.php?page=reports2,0122.4342.2371.37

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie tables detected upon uninstall: 1 table
    • wp_js_ticket_jshdsessiondata
  • Zombie WordPress options detected upon uninstall: 9 options
    • jssupportticket_show_review_box_after
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • jssupport_post_installation
    • _wpjshd_session_
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=themes
    • > Notice in wp-content/plugins/js-support-ticket/modules/themes/tpls/admin_themes.php+23
    Trying to access array offset on value of type null

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
The following issues need your attention
  • 149× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/js-support-ticket/modules/email/tpls/admin_addemail.php
    • > /wp-content/plugins/js-support-ticket/includes/formfield.php
    • > /wp-content/plugins/js-support-ticket/includes/ajax.php
    • > /wp-content/plugins/js-support-ticket/modules/gdpr/tpls/adderasedatarequest.php
    • > /wp-content/plugins/js-support-ticket/modules/fieldordering/tpls/admin_adduserfeild.php
    • > /wp-content/plugins/js-support-ticket/includes/tables/config.php
    • > /wp-content/plugins/js-support-ticket/includes/recaptchalib.php
    • > /wp-content/plugins/js-support-ticket/modules/priority/tpls/admin_priorities.php
    • > /wp-content/plugins/js-support-ticket/modules/systemerror/controller.php
    • > /wp-content/plugins/js-support-ticket/modules/reports/tpls/admin_departmentreport.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=jssupportticket
    • > Network (severe)
    wp-content/plugins/js-support-ticket/includes/images/admincp/addon/tickets.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=postinstallation
    • > Network (severe)
    wp-content/plugins/js-support-ticket/includes/images/bg.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (20 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

js-support-ticket/js-support-ticket.php 92% from 13 tests

This is the main PHP file of "JS Help Desk - Best Help Desk & Support Plugin" version 2.8.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 339 characters long)

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
No dangerous file extensions were detected115,058 lines of code in 340 files:
LanguageFilesBlank linesComment linesLines of code
PO File1428,07219556,587
PHP2023,4062,16448,790
CSS132963875,550
JavaScript134876573,361
SQL97920541
SVG100229

PHP code 50% from 2 tests

This is a very shot review of cyclomatic complexity and code structure
Please fix the following
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 352)
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity46.64
▷ Minimum class complexity1.00
▷ Maximum class complexity546.00
Average method complexity6.11
▷ Minimum method complexity1.00
▷ Maximum method complexity352.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes78
▷ Abstract classes00.00%
▷ Concrete classes78100.00%
▷ Final classes00.00%
Methods696
▷ Static methods15722.56%
▷ Public methods66395.26%
▷ Protected methods10.14%
▷ Private methods324.60%
Functions30
▷ Named functions30100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
713 compressed PNG files occupy 3.80MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/images/user fields.png0.70KB0.74KB0.00%
includes/images/postinstallation/close-icon.png0.25KB0.26KB0.00%
includes/images/addon-images/addons/mergeticket.png1.10KB1.12KB0.00%
includes/images/admincp/mail-settings.png1.60KB1.62KB0.00%
includes/images/forum.png0.34KB0.34KB0.00%