79% supportcandy

Code Review | SupportCandy - Helpdesk & Support Ticket System

WordPress plugin SupportCandy - Helpdesk & Support Ticket System scored 79% from 54 tests.

About plugin

  • Plugin page: supportcandy
  • Plugin version: 3.2.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Aug 15, 2018
  • Latest release: Sep 25, 2023
  • Number of updates: 113
  • Update frequency: every 16.5 days
  • Top authors: supportcandy (100%)

Code review

54 tests

User reviews

224 reviews

Install metrics

10,000+ active / 294,774 total downloads

Benchmarks

Plugin footprint 65% 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: ▲4.09MB] [CPU: ▲17.63ms] Passed 4 tests

A check of server-side resources used by SupportCandy - Helpdesk & Support Ticket System
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /7.58 ▲4.1259.78 ▲20.59
Dashboard /wp-admin7.37 ▲4.0760.75 ▲16.35
Posts /wp-admin/edit.php7.48 ▲4.1370.56 ▲23.04
Add New Post /wp-admin/post-new.php10.02 ▲4.13107.47 ▲11.35
Media Library /wp-admin/upload.php7.29 ▲4.0658.16 ▲22.21

Server storage [IO: ▲10.67MB] [DB: ▲0.05MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 551 new files
Database: 18 new tables, 44 new options
New tables
wp_psmsc_ticket_tags
wp_psmsc_scheduled_tasks
wp_psmsc_priorities
wp_psmsc_categories
wp_psmsc_attachments
wp_psmsc_email_notifications
wp_psmsc_custom_fields
wp_psmsc_options
wp_psmsc_threads
wp_psmsc_email_otp
...
New WordPress options
wpsc-en-general
wpsc-ticket-widget
wpsc-ap-general
can_compress_scripts
wpsc-tl-ms-advanced
wpsc-gs-page-settings
wpsc-ctl-list-items
wpsc-ap-modal
wpsc-te-guest-user
wpsc-gs-file-attachments
...

Browser metrics Passed 4 tests

An overview of browser requirements for SupportCandy - Helpdesk & Support Ticket System
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,290 ▲55517.05 ▲2.4840.41 ▲38.4141.09 ▼2.54
Dashboard /wp-admin2,309 ▲1185.03 ▲0.1898.85 ▼4.8576.25 ▲25.35
Posts /wp-admin/edit.php2,189 ▲1002.04 ▲0.0337.78 ▲3.2238.86 ▲5.05
Add New Post /wp-admin/post-new.php1,755 ▲24121.96 ▲4.42739.35 ▲71.8560.83 ▲7.08
Media Library /wp-admin/upload.php1,491 ▲1064.19 ▼0.0290.91 ▼19.9371.46 ▲25.97

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure failed, leaving 18 tables in the database
    • wp_psmsc_holidays
    • wp_psmsc_scheduled_tasks
    • wp_psmsc_working_hrs
    • wp_psmsc_email_notifications
    • wp_psmsc_categories
    • wp_psmsc_email_otp
    • wp_psmsc_custom_fields
    • wp_psmsc_statuses
    • wp_psmsc_threads
    • wp_psmsc_customers
    • ...
  • Zombie WordPress options were found after uninstall: 44 options
    • wpsc-string-translation
    • wpsc-ap-ticket-list
    • wpsc_db_version
    • wpsc-te-agent
    • wpsc-term-and-conditions
    • wpsc-email-templates
    • can_compress_scripts
    • wpsc-ap-modal
    • wpsc-te-advanced
    • wpsc-gs-thankyou-page-settings
    • ...

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% 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: There are too many tags (14 tag instead of maximum 10)
The official readme.txt is a good inspiration

supportcandy/supportcandy.php Passed 13 tests

This is the main PHP file of "SupportCandy - Helpdesk & Support Ticket System" version 3.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
51 characters long description:
Easy & Powerful support ticket system for WordPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin130,219 lines of code in 492 files:
LanguageFilesBlank linesComment linesLines of code
PHP18314,57422,05270,108
JavaScript1944,6369,13124,549
PO File1711,12151,26023,518
CSS4633229811,111
SVG4601373
Markdown41040287
Sass2578273

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity57.18
▷ Minimum class complexity1.00
▷ Maximum class complexity613.00
Average method complexity5.16
▷ Minimum method complexity1.00
▷ Maximum method complexity66.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes177
▷ Abstract classes00.00%
▷ Concrete classes177100.00%
▷ Final classes17598.87%
Methods2,280
▷ Static methods2,11792.85%
▷ Public methods2,21096.93%
▷ Protected methods00.00%
▷ Private methods703.07%
Functions116
▷ Named functions3025.86%
▷ Anonymous functions8674.14%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
27 PNG files occupy 0.56MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
asset/images/satisfaction-survey.png25.26KB7.80KB▼ 69.14%
asset/images/gravity-forms.png25.32KB7.70KB▼ 69.58%
asset/images/automatic-close-tickets.png22.84KB6.92KB▼ 69.71%
asset/images/schedule-tickets.png26.71KB8.17KB▼ 69.42%
asset/libs/DataTables/DataTables-1.11.5/images/sort_desc_disabled.png0.14KB0.25KB0.00%