68% wp-ticket

Code Review | Customer Service Software & Support Ticket System

WordPress plugin Customer Service Software & Support Ticket System scored68%from 54 tests.

About plugin

  • Plugin page: wp-ticket
  • Plugin version: 5.13
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.2
  • WordPress version: 6.3.1
  • First release: Dec 3, 2014
  • Latest release: Jun 21, 2023
  • Number of updates: 178
  • Update frequency: every 17.6 days
  • Top authors: emarket-design (100%)

Code review

54 tests

User reviews

27 reviews

Install metrics

600+ active /44,648 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲5.23MB] [CPU: ▲41.90ms] 75% from 4 tests

A check of server-side resources used by Customer Service Software & Support Ticket System
Please fix the following
  • Extra RAM: The extra memory usage must be under 5MB (currently 5.23MB on /wp-admin/edit.php?post_type=emd_ticket)
PageMemory (MB)CPU Time (ms)
Home /7.98 ▲4.5170.55 ▲33.42
Dashboard /wp-admin8.82 ▲5.52136.26 ▲86.29
Posts /wp-admin/edit.php8.83 ▲5.4893.23 ▲43.36
Add New Post /wp-admin/post-new.php11.37 ▲5.48133.25 ▲42.02
Media Library /wp-admin/upload.php8.67 ▲5.4485.70 ▲48.80
Glossary /wp-admin/admin.php?page=wp_ticket_com_glossary8.6467.73
Support /wp-admin/admin.php?page=wp_ticket_com_support8.6868.01
CSV Import/Export /wp-admin/admin.php?page=operations_emd_agent8.6465.51
Notifications /wp-admin/admin.php?page=wp_ticket_com_notify8.6975.27
Settings /wp-admin/admin.php?page=wp_ticket_com_settings8.6973.47
Statuses /wp-admin/edit-tags.php?taxonomy=ticket_status&post_type=emd_ticket8.7071.51
Plugins /wp-admin/admin.php?page=wp_ticket_com_store8.6880.25
CSV Import/Export /wp-admin/admin.php?page=operations_emd_ticket8.6467.00
Add New Agent /wp-admin/post-new.php?post_type=emd_agent8.7784.67
All Tickets /wp-admin/edit.php?post_type=emd_ticket8.7773.65

Server storage [IO: ▲3.15MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 361 new files
Database: 3 new tables, 39 new options
New tables
wp_p2p
wp_emd_sessions
wp_p2pmeta
New WordPress options
emd_activated_plugins
db_upgraded
emd_form_id_submit_tickets
wp_ticket_com_activation_date
widget_recent-posts
wp_ticket_com_glob_forms_list
wp_ticket_com_add_caps
wp_ticket_com_has_woocommerce_forms_list
widget_recent-comments
wp_ticket_com_has_woocommerce
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Customer Service Software & Support Ticket System
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,063 ▲32813.30 ▼1.061.88 ▲0.1939.15 ▼1.38
Dashboard /wp-admin2,464 ▲2754.87 ▼0.07116.56 ▼2.8254.52 ▲12.00
Posts /wp-admin/edit.php2,308 ▲2192.16 ▲0.1538.51 ▼3.1935.94 ▼0.58
Add New Post /wp-admin/post-new.php1,757 ▲24322.51 ▲4.92684.10 ▼13.5858.89 ▲7.52
Media Library /wp-admin/upload.php1,608 ▲2204.25 ▲0.09102.21 ▼3.2146.64 ▼0.53
Glossary /wp-admin/admin.php?page=wp_ticket_com_glossary1,3911.8526.7034.27
Support /wp-admin/admin.php?page=wp_ticket_com_support1,3111.8627.0351.37
CSV Import/Export /wp-admin/admin.php?page=operations_emd_agent1,0701.7127.6235.67
Notifications /wp-admin/admin.php?page=wp_ticket_com_notify2,3723.6350.3629.16
Settings /wp-admin/admin.php?page=wp_ticket_com_settings2,1452.7038.6832.60
Statuses /wp-admin/edit-tags.php?taxonomy=ticket_status&post_type=emd_ticket1,6552.3433.1042.53
Plugins /wp-admin/admin.php?page=wp_ticket_com_store1,3301.8524.9337.98
CSV Import/Export /wp-admin/admin.php?page=operations_emd_ticket1,0671.7222.9933.60
Add New Agent /wp-admin/post-new.php?post_type=emd_agent1,8753.3462.8558.09
All Tickets /wp-admin/edit.php?post_type=emd_ticket1,4012.3834.9336.17

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie tables were found after uninstall: 3 tables
    • wp_p2pmeta
    • wp_emd_sessions
    • wp_p2p
  • Zombie WordPress options detected upon uninstall: 33 options
    • wp_ticket_com_glob_forms_list
    • wp_ticket_com_init_tax
    • widget_recent-posts
    • wp_ticket_com_notify_list
    • widget_theysaidso_widget
    • emd_form_id_submit_tickets
    • emd_form_id_search_tickets
    • db_upgraded
    • can_compress_scripts
    • wp_ticket_com_version
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 6× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-ticket/layouts/shc-search-tickets-footer.php
    • > /wp-content/plugins/wp-ticket/layouts/shc-support-tickets-footer.php
    • > /wp-content/plugins/wp-ticket/layouts/widget-recent-tickets-sidebar-footer.php
    • > /wp-content/plugins/wp-ticket/layouts/widget-recent-tickets-dashboard-footer.php
    • > /wp-content/plugins/wp-ticket/layouts/widget-recent-tickets-dashboard-header.php
    • > /wp-content/plugins/wp-ticket/layouts/widget-recent-tickets-sidebar-header.php
  • 40× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function emd_is_item_visible() in wp-content/plugins/wp-ticket/layouts/shc-search-tickets-header.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_active_sidebar() in wp-content/plugins/wp-ticket/layouts/emd-sidebar.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wp-ticket/includes/admin/plugin-support.php:48
    • > PHP Fatal error
      Uncaught Error: Call to undefined function emd_is_item_visible() in wp-content/plugins/wp-ticket/layouts/shc-support-tickets-header.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-ticket/includes/admin/shortcode-list-functions.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-ticket/assets/ext/posts-to-posts/scb/load.php:32
    • > PHP Notice
      Undefined variable: post in wp-content/plugins/wp-ticket/layouts/shc-support-tickets-content.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-ticket/layouts/shc-support-tickets-content.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-ticket/assets/ext/posts-to-posts/debug-utils.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_permalink() in wp-content/plugins/wp-ticket/layouts/emd-register.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

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: customer support, helpdesk, help desk, ticket system, support ticket

wp-ticket/wp-ticket.php 85% from 13 tests

"Customer Service Software & Support Ticket System" version 5.13's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 154 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected35,982 lines of code in 264 files:
LanguageFilesBlank linesComment linesLines of code
PHP1582,4055,27727,308
JavaScript535357315,927
CSS431581292,671
HTML96074
SVG1002

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity16.43
▷ Minimum class complexity1.00
▷ Maximum class complexity148.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity73.00
Code structure
Namespaces0
Interfaces2
Traits0
Classes125
▷ Abstract classes118.80%
▷ Concrete classes11491.20%
▷ Final classes21.75%
Methods802
▷ Static methods30137.53%
▷ Public methods67383.92%
▷ Protected methods9011.22%
▷ Private methods394.86%
Functions276
▷ Named functions27599.64%
▷ Anonymous functions10.36%
Constants31
▷ Global constants2064.52%
▷ Class constants1135.48%
▷ Public constants11100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
81 compressed PNG files occupy 0.58MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/ext/emd-meta-box/img/jqueryui/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
assets/ext/emd-meta-box/img/jqueryui/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%
assets/ext/emd-meta-box/img/jqueryui/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%
assets/img/jui-img/ui-bg_glass_95_fef1ec_1x400.png0.11KB0.14KB0.00%
assets/img/clipboard.png1.01KB1.06KB0.00%