52% elex-helpdesk-customer-support-ticket-system

Code Review | ELEX WordPress HelpDesk & Customer Ticketing System

WordPress plugin ELEX WordPress HelpDesk & Customer Ticketing System scored52%from 54 tests.

About plugin

  • Plugin page: elex-helpdesk-cus...
  • Plugin version: 3.2.1
  • PHP compatiblity: 7.1.8+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: May 27, 2020
  • Latest release: Oct 19, 2023
  • Number of updates: 30
  • Update frequency: every 41.3 days
  • Top authors: elextensions (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

400+ active /11,979 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲4.65MB] [CPU: ▲43.90ms] Passed 4 tests

Analyzing server-side resources used by ELEX WordPress HelpDesk & Customer Ticketing System
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /7.97 ▲4.50150.47 ▲108.85
Dashboard /wp-admin8.01 ▲4.6788.91 ▲30.84
Posts /wp-admin/edit.php8.14 ▲4.78136.18 ▲85.51
Add New Post /wp-admin/post-new.php10.58 ▲4.69118.32 ▲14.09
Media Library /wp-admin/upload.php7.95 ▲4.7279.63 ▲45.17
Agents /wp-admin/admin.php?page=wsdesk_agents8.03137.31
Reports /wp-admin/admin.php?page=wsdesk_reports7.9370.01
E-Mail /wp-admin/admin.php?page=wsdesk_email7.9981.11
Go Premium! /wp-admin/admin.php?page=wsdesk_premium7.94123.21
Tickets /wp-admin/admin.php?page=wsdesk_tickets8.2084.13
Settings /wp-admin/admin.php?page=wsdesk_settings8.10112.09

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2,227 new files
Database: 6 new tables, 9 new options
New tables
wp_wsdesk_settings
wp_wsdesk_archived_ticketsmeta
wp_wsdesk_settingsmeta
wp_wsdesk_ticketsmeta
wp_wsdesk_archived_tickets
wp_wsdesk_tickets
New WordPress options
widget_recent-comments
wsdesk_setup_wizard
widget_recent-posts
theysaidso_admin_options
wsdesk_version_
widget_theysaidso_widget
elex-helpdesk-customer-support-ticket-system/elex-helpdesk-customer-support-ticket-system.php_activation_date
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by ELEX WordPress HelpDesk & Customer Ticketing System
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,078 ▲29214.34 ▲0.001.90 ▲0.1442.62 ▲0.30
Dashboard /wp-admin2,453 ▲2735.54 ▼0.1390.59 ▼1.5243.12 ▲4.05
Posts /wp-admin/edit.php2,362 ▲2802.14 ▲0.1636.71 ▲1.1838.49 ▲3.47
Add New Post /wp-admin/post-new.php1,787 ▲26123.31 ▼0.22696.76 ▲15.8463.71 ▲16.08
Media Library /wp-admin/upload.php1,661 ▲2644.16 ▼0.04107.66 ▲6.3552.27 ▲5.13
Agents /wp-admin/admin.php?page=wsdesk_agents1,5212.6468.3436.18
Reports /wp-admin/admin.php?page=wsdesk_reports1,3195.39272.2841.02
E-Mail /wp-admin/admin.php?page=wsdesk_email1,9962.9244.7649.34
Go Premium! /wp-admin/admin.php?page=wsdesk_premium1,3822.0025.0042.87
Tickets /wp-admin/admin.php?page=wsdesk_tickets3,5715.18125.7241.72
Settings /wp-admin/admin.php?page=wsdesk_settings4,4743.4965.0343.07

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
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 6 tables in the database
    • wp_wsdesk_ticketsmeta
    • wp_wsdesk_settings
    • wp_wsdesk_settingsmeta
    • wp_wsdesk_archived_ticketsmeta
    • wp_wsdesk_tickets
    • wp_wsdesk_archived_tickets
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • can_compress_scripts
    • wsdesk_setup_wizard
    • wsdesk_version_
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • elex-helpdesk-customer-support-ticket-system/elex-helpdesk-customer-support-ticket-system.php_activation_date
    • db_upgraded
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please take a closer look at the following
  • 4× PHP files output text when accessed directly:
    • > /wp-content/plugins/elex-helpdesk-customer-support-ticket-system/review_and_troubleshoot_notify/resources/logo.php
    • > /wp-content/plugins/elex-helpdesk-customer-support-ticket-system/views/tickets/eh_crm_table_loader.php
    • > /wp-content/plugins/elex-helpdesk-customer-support-ticket-system/vendor/zendesk/zendesk_api_client_php/tests/bootstrap.php
    • > /wp-content/plugins/elex-helpdesk-customer-support-ticket-system/vendor/zendesk/zendesk_api_client_php/index.php
  • 585× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Container\\ContainerInterface' not found in wp-content/plugins/elex-helpdesk-customer-support-ticket-system/vendor/illuminate/contracts/Container/Container.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Doctrine\\Inflector\\WordInflector' not found in wp-content/plugins/elex-helpdesk-customer-support-ticket-system/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/Transformations.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'Carbon\\Exceptions\\InvalidArgumentException' not found in wp-content/plugins/elex-helpdesk-customer-support-ticket-system/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidTimeZoneException.php:16
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/elex-helpdesk-customer-support-ticket-system/vendor/nesbot/carbon/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/elex-helpdesk-customer-support-ticket-system/vendor/nesbot/carbon/sponsors.php on line 14
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/elex-helpdesk-customer-support-ticket-system/vendor/symfony/translation/Tests/DataCollector/TranslationDataCollectorTest.php:18
    • > PHP Fatal error
      Uncaught Error: Interface 'Illuminate\\Contracts\\Support\\CanBeEscapedWhenCastToString' not found in wp-content/plugins/elex-helpdesk-customer-support-ticket-system/vendor/illuminate/collections/LazyCollection.php:14
    • > PHP Fatal error
      Uncaught ReflectionException: Class Symfony\\Component\\Translation\\Translator does not exist in wp-content/plugins/elex-helpdesk-customer-support-ticket-system/vendor/nesbot/carbon/src/Carbon/Translator.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Zendesk\\API\\Resources\\ResourceAbstract' not found in wp-content/plugins/elex-helpdesk-customer-support-ticket-system/vendor/zendesk/zendesk_api_client_php/src/Zendesk/API/Resources/Core/UserFields.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Illuminate\\Support\\Facades\\Facade' not found in wp-content/plugins/elex-helpdesk-customer-support-ticket-system/vendor/illuminate/support/Facades/Storage.php:48
    • > PHP Fatal error
      Uncaught Error: Class 'Illuminate\\Support\\Facades\\Facade' not found in wp-content/plugins/elex-helpdesk-customer-support-ticket-system/vendor/illuminate/support/Facades/Date.php:88

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wsdesk_tickets
    • > Deprecation (warning) in unknown
    /wp-content/plugins/elex-helpdesk-customer-support-ticket-system/assets/js/quill.min.js?ver=3.1.2 6 Listener added for a synchronous 'DOMNodeInserted' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: ticket system, support ticket, tickets, woocommerce, helpdesk

elex-helpdesk-customer-support-ticket-system/elex-helpdesk-customer-support-ticket-system.php 92% from 13 tests

The main PHP script in "ELEX WordPress HelpDesk & Customer Ticketing System" version 3.2.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis 3% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Almost there! Just fix the following issues
  • Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
    • .bat - Batch File in Windows
      • wp-content/plugins/elex-helpdesk-customer-support-ticket-system/vendor/bin/carbon.bat
      • wp-content/plugins/elex-helpdesk-customer-support-ticket-system/vendor/nesbot/carbon/bin/carbon.bat
164,901 lines of code in 1,921 files:
LanguageFilesBlank linesComment linesLines of code
PHP1,75717,00948,982101,151
JSON311017,459
JavaScript261,02639415,960
PO File136,19010,56315,838
Markdown352,02015,526
XSD499764,991
CSS24157713,434
XML18154394
reStructuredText1747874
YAML77250
Qt Linguist10010
DOS Batch2009
make1214
INI1001

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 201)
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity10.68
▷ Minimum class complexity1.00
▷ Maximum class complexity511.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity201.00
Code structure
Namespaces133
Interfaces167
Traits55
Classes613
▷ Abstract classes274.40%
▷ Concrete classes58695.60%
▷ Final classes6711.43%
Methods5,229
▷ Static methods94718.11%
▷ Public methods4,61888.32%
▷ Protected methods3526.73%
▷ Private methods2594.95%
Functions971
▷ Named functions20421.01%
▷ Anonymous functions76778.99%
Constants286
▷ Global constants289.79%
▷ Class constants25890.21%
▷ Public constants24594.96%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
39 PNG files occupy 1.31MB with 0.70MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/dynamic_pricing.png90.78KB22.92KB▼ 74.75%
assets/img/message_icon.png2.14KB1.31KB▼ 38.68%
assets/img/wschat.png99.98KB24.89KB▼ 75.10%
assets/img/gpf.png80.41KB19.81KB▼ 75.37%
assets/css/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%