84% support-ticket

Code Review | Support Ticket

WordPress plugin Support Ticket scored84%from 54 tests.

About plugin

  • Plugin page: support-ticket
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Aug 10, 2015
  • Latest release: Apr 25, 2018
  • Number of updates: 26
  • Update frequency: every 38.1 days
  • Top authors: websupporter (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /5,060 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.28MB] [CPU: ▼8.05ms] Passed 4 tests

This is a short check of server-side resources used by Support Ticket
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2836.03 ▼5.15
Dashboard /wp-admin3.60 ▲0.2645.69 ▼13.79
Posts /wp-admin/edit.php3.71 ▲0.3645.50 ▼0.96
Add New Post /wp-admin/post-new.php6.18 ▲0.3092.38 ▼12.31
Media Library /wp-admin/upload.php3.52 ▲0.2934.79 ▲3.81
Tickets /wp-admin/admin.php?page=sts3.5534.53
New Ticket /wp-admin/admin.php?page=sts-new3.4933.76
Settings /wp-admin/admin.php?page=sts-settings3.5235.75

Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Support Ticket
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8513.23 ▼1.151.66 ▲0.1341.25 ▲1.89
Dashboard /wp-admin2,234 ▲435.80 ▲0.9398.88 ▼3.0240.19 ▼1.25
Posts /wp-admin/edit.php2,123 ▲342.01 ▲0.0237.11 ▲2.1633.03 ▼0.54
Add New Post /wp-admin/post-new.php1,558 ▲1623.09 ▲4.81627.46 ▲32.4649.90 ▲0.35
Media Library /wp-admin/upload.php1,419 ▲284.24 ▲0.08100.02 ▲3.7543.15 ▼0.58
Tickets /wp-admin/admin.php?page=sts1,0651.9334.2125.10
New Ticket /wp-admin/admin.php?page=sts-new8951.8933.5928.48
Settings /wp-admin/admin.php?page=sts-settings1,7802.5349.0543.21

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% 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
The following issues need your attention
  • 25× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/support-ticket/admin/inc/ticket-table.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/support-ticket/inc/mail.php:100
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/support-ticket/inc/mail.php:100
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/support-ticket/admin/admin.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/support-ticket/templates/shortcodes/ticket-create-done.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/support-ticket/inc/metaboxes/settings/user-roles.php:92
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/support-ticket/inc/metaboxes/ticket/metafields.php:81
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/support-ticket/admin/ticket-single.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/support-ticket/inc/metaboxes/settings/user-agent.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/support-ticket/inc/metaboxes/settings/email.php:44

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
6 plugin tags: support, ticket, helpdesk, crm, help...

support-ticket/support-ticket.php Passed 13 tests

The main PHP file in "Support Ticket" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
48 characters long description:
Easy to use support ticket system for WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin3,587 lines of code in 41 files:
LanguageFilesBlank linesComment linesLines of code
PHP334341,0452,245
PO File3306402726
CSS1560269
SVG2162177
JavaScript12423126
HTML14044

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity6.60
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.90
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods31
▷ Static methods00.00%
▷ Public methods3096.77%
▷ Protected methods00.00%
▷ Private methods13.23%
Functions66
▷ Named functions6395.45%
▷ Anonymous functions34.55%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/logo.png61.67KB22.19KB▼ 64.02%
assets/img/logo-small.png7.35KB3.41KB▼ 53.57%