62% yds-support-ticket-system

Code Review | YDS Support Ticket System

WordPress plugin YDS Support Ticket System scored 62% from 54 tests.

About plugin

  • Plugin page: yds-support-ticke...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.5
  • WordPress version: 6.3.1
  • First release: Jun 9, 2016
  • Latest release: Jun 9, 2016
  • Number of updates: 5
  • Update frequency: every 5.8 days
  • Top authors: Ydesignservices (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active / 2,779 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼0.12ms] Passed 4 tests

A check of server-side resources used by YDS Support Ticket System
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.42 ▲4.70
Dashboard /wp-admin3.39 ▲0.0850.21 ▲2.17
Posts /wp-admin/edit.php3.44 ▲0.0851.95 ▲3.81
Add New Post /wp-admin/post-new.php5.97 ▲0.0894.62 ▼11.14
Media Library /wp-admin/upload.php3.31 ▲0.0847.91 ▲15.43
Create New Ticket /wp-admin/admin.php?page=create-new-ticket3.3340.05
Priority /wp-admin/admin.php?page=priority-settings3.3037.93
Category /wp-admin/admin.php?page=category-settings3.3036.26
Settings /wp-admin/admin.php?page=yds-support-settings3.3038.21
All Tickets /wp-admin/admin.php?page=manage-support-ticket3.3638.83

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 61 new files
Database: 6 new tables, 9 new options
New tables
wp_ydsts_priority
wp_ydsts_category
wp_ydsts_ticket
wp_ydsts_ticket_thread
wp_ydsts_attachments
wp_ydsts_agent_settings
New WordPress options
widget_recent-posts
ydsts_general_settings
yds_support_page
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
ydsts_email_settings
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for YDS Support Ticket System
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,947 ▲19013.68 ▼0.935.87 ▲3.6437.83 ▼12.71
Dashboard /wp-admin2,247 ▲565.86 ▲0.7895.70 ▼7.3071.08 ▲26.12
Posts /wp-admin/edit.php2,133 ▲442.06 ▲0.0638.23 ▲3.3935.26 ▲0.97
Add New Post /wp-admin/post-new.php1,698 ▲17822.00 ▼1.23696.74 ▲81.7354.06 ▲6.28
Media Library /wp-admin/upload.php1,423 ▲354.19 ▼0.02105.48 ▲3.6243.89 ▼0.24
Create New Ticket /wp-admin/admin.php?page=create-new-ticket9592.2432.7338.83
Priority /wp-admin/admin.php?page=priority-settings1,0852.2435.3630.80
Category /wp-admin/admin.php?page=category-settings9912.2536.6530.43
Settings /wp-admin/admin.php?page=yds-support-settings9602.3434.5331.27
All Tickets /wp-admin/admin.php?page=manage-support-ticket9712.2533.1734.51

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
The following items require your attention
  • Zombie tables detected upon uninstall: 6 tables
    • wp_ydsts_attachments
    • wp_ydsts_ticket_thread
    • wp_ydsts_agent_settings
    • wp_ydsts_priority
    • wp_ydsts_category
    • wp_ydsts_ticket
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • widget_recent-comments
    • yds_support_page
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • ydsts_email_settings
    • ydsts_general_settings

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=yds-support-settings
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
    • > GET request to /wp-admin/admin.php?page=yds-support-settings
    • > Notice in wp-content/plugins/yds-support-ticket-system/includes/admin/settings/settings.php+66
    Undefined index: default_admin_email

SRP 50% 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 fix the following items
  • 28× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/yds-support-ticket-system/includes/admin/sendmail/newticketadminAlert.php:3
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/yds-support-ticket-system/includes/admin/adminsearchFilter.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/yds-support-ticket-system/includes/admin/settings/settings.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/yds-support-ticket-system/includes/admin/sendmail/ticketresponceMail.php:3
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/yds-support-ticket-system/includes/admin/adminsearchFilter.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/yds-support-ticket-system/includes/admin/adminsearchFilter.php:49
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/yds-support-ticket-system/includes/admin/create-support-categories.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/yds-support-ticket-system/includes/admin/addpriority.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_currentuserinfo() in wp-content/plugins/yds-support-ticket-system/includes/view/getuserTicket.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/yds-support-ticket-system/includes/admin/viewticketDetail.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=manage-support-ticket
    • > Javascript (severe) in unknown
    /wp-content/plugins/yds-support-ticket-system/asset/js/yds_ticket_management.js?ver=1.0.0 290:26 Uncaught TypeError: $(...).live is not a function

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: support, ticket, crm, support plugin, ticket plugin...

yds-support-ticket-system/yds-support-ticket-system.php 92% from 13 tests

The main file in "YDS Support Ticket System" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 471 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
Good job! No executable or dangerous file extensions detected7,304 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
CSS590693,769
PHP29198522,265
SVG100685
JavaScript211217585

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity9.75
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes4100.00%
Methods42
▷ Static methods00.00%
▷ Public methods4095.24%
▷ Protected methods00.00%
▷ Private methods24.76%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
asset/images/downarrow.png0.29KB0.19KB▼ 35.25%
asset/images/edit.png1.26KB0.55KB▼ 56.04%
asset/images/delete.png1.13KB0.21KB▼ 81.75%
asset/images/icon-maintain.png3.12KB0.56KB▼ 82.19%
asset/images/active-aarrow.png1.05KB0.26KB▼ 75.40%