68% helpdesk-support-tickets

Code Review | Helpdesk Support Tickets Plugin for WordPress

WordPress plugin Helpdesk Support Tickets Plugin for WordPress scored 68% from 54 tests.

About plugin

  • Plugin page: helpdesk-support-...
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.3-4.8.1
  • WordPress version: 5.8.1
  • First release: Apr 14, 2017
  • Latest release: Sep 3, 2017
  • Number of updates: 28
  • Update frequency: every 5.1 days
  • Top authors: helpdesksupporttickets (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active / 1,888 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.00MB] [CPU: ▼133.60ms] Passed 4 tests

A check of server-side resources used by Helpdesk Support Tickets Plugin for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.86 ▲1.1443.58 ▲18.59
Dashboard /wp-admin4.09 ▲1.0351.17 ▲5.12
Posts /wp-admin/edit.php4.14 ▲1.0351.37 ▲6.29
Add New Post /wp-admin/post-new.php6.38 ▲0.9598.43 ▼553.95
Media Library /wp-admin/upload.php3.97 ▲0.9741.79 ▲8.13

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 116 new files
Database: 6 new tables, 5 new options
New tables
wp_hst_tickets_statuses
wp_hst_tickets_priorities
wp_hst_tickets_categories
wp_hst_attachments
wp_hst_tickets
wp_hst_tickets_events
New WordPress options
hstDefaultStatusesInstalled
hstDatabaseVersion
hstDefaultPrioritiesInstalled
hstDefaultCategoriesInstalled
hstDefaultStatusLabelsInstalled

Browser metrics Passed 4 tests

Helpdesk Support Tickets Plugin for WordPress: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,717 ▲12115.93 ▲0.059.53 ▲0.6245.41 ▼3.66
Dashboard /wp-admin2,977 ▲465.87 ▼0.04131.31 ▼14.84142.16 ▲28.55
Posts /wp-admin/edit.php2,768 ▲292.69 ▲0.0170.10 ▲2.7385.64 ▼5.53
Add New Post /wp-admin/post-new.php1,682 ▲1218.91 ▼0.29382.95 ▲9.33104.00 ▼4.96
Media Library /wp-admin/upload.php1,759 ▼514.98 ▼0.03127.69 ▼8.44136.90 ▲21.20

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 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: 6 tables
    • wp_hst_tickets
    • wp_hst_tickets_categories
    • wp_hst_tickets_events
    • wp_hst_attachments
    • wp_hst_tickets_priorities
    • wp_hst_tickets_statuses
  • Zombie WordPress options detected upon uninstall: 5 options
    • hstDefaultCategoriesInstalled
    • hstDefaultPrioritiesInstalled
    • hstDatabaseVersion
    • hstDefaultStatusesInstalled
    • hstDefaultStatusLabelsInstalled

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/helpdesk-support-tickets/pages/dashboard.php
  • 26× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/helpdesk-support-tickets/controls/frontend/mytickets.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/helpdesk-support-tickets/controls/settings/settings-system.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/helpdesk-support-tickets/controls/dashboard/modals.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/helpdesk-support-tickets/controls/settings/settings.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/helpdesk-support-tickets/controls/dashboard/customers-list.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/helpdesk-support-tickets/controls/frontend/createticketconfirmation.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/helpdesk-support-tickets/controls/settings/settings-frontend.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/helpdesk-support-tickets/controls/dashboard/tickets-view-ticketdata.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/helpdesk-support-tickets/controls/frontend/home.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'hst_Classes_Notification' not found in wp-content/plugins/helpdesk-support-tickets/controls/settings/settings-notifications.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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 tickets, support, agent, help desk, helpdesk

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

Analyzing the main PHP file in "Helpdesk Support Tickets Plugin for WordPress" version 1.1.4
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: The description should be shorter than 140 characters (currently 212 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin23,688 lines of code in 94 files:
LanguageFilesBlank linesComment linesLines of code
CSS1084517710,346
PHP652,7161,0437,090
JavaScript171,0013913,027
SVG1002,671
PO File1198226554

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity11.63
▷ Minimum class complexity1.00
▷ Maximum class complexity88.00
Average method complexity4.74
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes19
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes00.00%
Methods54
▷ Static methods00.00%
▷ Public methods4787.04%
▷ Protected methods00.00%
▷ Private methods712.96%
Functions69
▷ Named functions69100.00%
▷ Anonymous functions00.00%
Constants46
▷ Global constants46100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
9 compressed PNG files occupy 0.09MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/sending_email_32.png2.13KB1.56KB▼ 26.81%
images/check_32.png2.06KB1.70KB▼ 17.69%
images/redcross_32.png1.63KB1.38KB▼ 15.05%
images/warning_32.png1.32KB1.37KB0.00%
images/add_32.png0.65KB0.61KB▼ 5.41%