10% ticket-help-desk-system-lite

Code Review | Support Helpdesk Ticket System Lite

WordPress plugin Support Helpdesk Ticket System Lite scored10%from 54 tests.

About plugin

  • Plugin page: ticket-help-desk-...
  • Plugin version: 4.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Apr 24, 2020
  • Latest release: Nov 13, 2023
  • Number of updates: 23
  • Update frequency: every 56.5 days
  • Top authors: zinger252 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,291 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/ticket-help-desk-system-lite/index-ticket-helpdesk.php+22
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.95MB] [CPU: ▼53.98ms] Passed 4 tests

An overview of server-side resources used by Support Helpdesk Ticket System Lite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.425.39 ▼40.06
Dashboard /wp-admin2.07 ▼1.286.33 ▼53.47
Posts /wp-admin/edit.php2.07 ▼1.296.51 ▼37.87
Add New Post /wp-admin/post-new.php2.07 ▼3.827.32 ▼84.50
Media Library /wp-admin/upload.php2.07 ▼1.165.35 ▼29.42
All Tickets /wp-admin/edit.php?post_type=tickets2.075.55
Add New Company /wp-admin/post-new.php?post_type=companies2.076.75
Add New Ticket /wp-admin/post-new.php?post_type=tickets2.075.82
All Companies /wp-admin/edit.php?post_type=companies2.078.16
Configure Helpdesk /wp-admin/admin.php?page=m_helpdesk_form2.075.50
Email Settings /wp-admin/admin.php?page=m_helpdesk_form_email2.077.05

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 174 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Support Helpdesk Ticket System Lite
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,016 ▲26915.95 ▲1.6131.93 ▲30.2838.13 ▼6.19
Dashboard /wp-admin2,279 ▲1055.56 ▲0.0286.74 ▼14.2438.97 ▼4.73
Posts /wp-admin/edit.php2,190 ▲902.00 ▲0.0041.93 ▲4.2935.00 ▼1.11
Add New Post /wp-admin/post-new.php1,599 ▲7323.37 ▲0.21652.91 ▲3.1450.24 ▼4.46
Media Library /wp-admin/upload.php1,490 ▲874.12 ▼0.0798.32 ▼4.9043.42 ▼0.10
All Tickets /wp-admin/edit.php?post_type=tickets1,1511.9135.5829.85
Add New Company /wp-admin/post-new.php?post_type=companies1,5312.5053.0856.32
Add New Ticket /wp-admin/post-new.php?post_type=tickets1,5822.5250.7447.21
All Companies /wp-admin/edit.php?post_type=companies1,1481.9633.9528.28
Configure Helpdesk /wp-admin/admin.php?page=m_helpdesk_form1,2552.0330.4823.53
Email Settings /wp-admin/admin.php?page=m_helpdesk_form_email1,0792.0427.3019.73

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/ticket-help-desk-system-lite/index-ticket-helpdesk.php+22
    Trying to access array offset on value of type bool
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=m_helpdesk_form_email
    • > Notice in wp-content/plugins/ticket-help-desk-system-lite/index-ticket-helpdesk.php+22
    Trying to access array offset on value of type bool
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=m_helpdesk_form_email
    • > Notice in wp-content/plugins/ticket-help-desk-system-lite/index-ticket-helpdesk.php+22
    Trying to access array offset on value of type null
    • > GET request to /wp-admin/post-new.php?post_type=companies
    • > Warning in wp-content/plugins/ticket-help-desk-system-lite/includes/backend-posttype-metas/backend-posttype-companies.php+54
    count(): Parameter must be an array or an object that implements Countable
    • > GET request to /wp-admin/post-new.php?post_type=tickets
    • > Notice in wp-content/plugins/ticket-help-desk-system-lite/includes/backend-posttype-metas/backend-posttype-tickets.php+77
    Trying to get property 'display_name' of non-object

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 152× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'mhelpdeskAdminPageFramework_View' not found in wp-content/plugins/ticket-help-desk-system-lite/admin/factory/AdminPageFramework/AdminPageFramework_Controller.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'mhelpdeskAdminPageFramework_Factory' not found in wp-content/plugins/ticket-help-desk-system-lite/admin/factory/AdminPageFramework/AdminPageFramework_Router.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'mhelpdeskAdminPageFramework_Script_Base' not found in wp-content/plugins/ticket-help-desk-system-lite/admin/factory/AdminPageFramework_Factory/view/AdminPageFramework_Script/AdminPageFramework_Script_OptionStorage.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_login_form() in wp-content/plugins/ticket-help-desk-system-lite/themes/style/login.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'mhelpdeskAdminPageFramework_Menu_Controller' not found in wp-content/plugins/ticket-help-desk-system-lite/admin/factory/AdminPageFramework/AdminPageFramework_Model.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ticket-help-desk-system-lite/themes/style/company-controls/companies.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ticket-help-desk-system-lite/themes/style/customer-controls/customer-tickets.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'mhelpdeskAdminPageFramework_FieldType_image' not found in wp-content/plugins/ticket-help-desk-system-lite/admin/factory/AdminPageFramework_Factory/view/AdminPageFramework_FieldType/AdminPageFramework_FieldType_media.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'mhelpdeskAdminPageFramework_Factory_Router' not found in wp-content/plugins/ticket-help-desk-system-lite/admin/factory/AdminPageFramework_Factory/AdminPageFramework_Factory_Model.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'mhelpdeskAdminPageFramework_FieldType_text' not found in wp-content/plugins/ticket-help-desk-system-lite/admin/factory/AdminPageFramework_Factory/view/AdminPageFramework_FieldType/AdminPageFramework_FieldType_section_title.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: support, ticket system, helpdesk, ticket, support system

ticket-help-desk-system-lite/index-ticket-helpdesk.php 85% from 13 tests

The principal PHP file in "Support Helpdesk Ticket System Lite" v. 4.5 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ticket-help-desk-system-lite.php" instead of "index-ticket-helpdesk.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected16,387 lines of code in 170 files:
LanguageFilesBlank linesComment linesLines of code
PHP1622,8161,96415,749
CSS49732561
JavaScript413777

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity11.88
▷ Minimum class complexity1.00
▷ Maximum class complexity54.00
Average method complexity2.54
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes122
▷ Abstract classes4738.52%
▷ Concrete classes7561.48%
▷ Final classes22.67%
Methods861
▷ Static methods16519.16%
▷ Public methods42148.90%
▷ Protected methods17620.44%
▷ Private methods26430.66%
Functions36
▷ Named functions36100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants215.38%
▷ Class constants1184.62%
▷ Public constants11100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin