68% wp-support-ticket

Code Review | WP Support Ticket

WordPress plugin WP Support Ticket scored68%from 54 tests.

About plugin

  • Plugin page: wp-support-ticket
  • Plugin version: 3.4.7
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-6.2.2
  • WordPress version: 6.3.1
  • First release: Oct 7, 2014
  • Latest release: Jul 10, 2023
  • Number of updates: 81
  • Update frequency: every 39.5 days
  • Top authors: avi.megladon (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active /11,606 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.32MB] [CPU: ▼3.12ms] Passed 4 tests

Analyzing server-side resources used by WP Support Ticket
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.3249.15 ▲0.51
Dashboard /wp-admin3.66 ▲0.3555.33 ▲2.33
Posts /wp-admin/edit.php3.71 ▲0.3559.35 ▲3.98
Add New Post /wp-admin/post-new.php6.20 ▲0.3189.26 ▼19.28
Media Library /wp-admin/upload.php3.52 ▲0.2943.43 ▲8.09
All Tickets /wp-admin/edit.php?post_type=ticket3.5643.22
Add New /wp-admin/post-new.php?post_type=ticket3.5549.59

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 79 new files
Database: 3 new tables, 6 new options
New tables
wp_support_reply_noti
wp_support_attachment
wp_support_reply
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for WP Support Ticket
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,923 ▲16213.45 ▼0.9110.63 ▲8.9442.02 ▼5.12
Dashboard /wp-admin2,244 ▲675.64 ▲0.0498.67 ▲4.5242.88 ▼5.35
Posts /wp-admin/edit.php2,152 ▲522.00 ▼0.0238.05 ▲0.7535.35 ▼0.14
Add New Post /wp-admin/post-new.php1,568 ▲4223.34 ▼0.31687.34 ▼20.4339.60 ▼13.65
Media Library /wp-admin/upload.php1,449 ▲524.26 ▼0.01114.39 ▼2.0748.01 ▲0.77
All Tickets /wp-admin/edit.php?post_type=ticket1,1651.9332.6831.36
Add New /wp-admin/post-new.php?post_type=ticket1,6642.6156.0269.41

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The plugin did not uninstall successfully, leaving 3 tables in the database
    • wp_support_attachment
    • wp_support_reply
    • wp_support_reply_noti
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-support-ticket/view/admin/pro-add.php
    • > /wp-content/plugins/wp-support-ticket/view/admin/recommended-add.php
  • 25× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Form_Class' not found in wp-content/plugins/wp-support-ticket/view/admin/ticket-reply-form.php:4
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_ticket_author() on null in wp-content/plugins/wp-support-ticket/view/admin/ticket-author-form.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/wp-support-ticket/support.php:30
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wp-support-ticket/view/frontend/ticket-create.php on line 1
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-support-ticket/support.php on line 29
    • > PHP Fatal error
      Uncaught Error: Class 'Form_Class' not found in wp-content/plugins/wp-support-ticket/view/admin/ticket-status-form.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Form_Class' not found in wp-content/plugins/wp-support-ticket/view/frontend/reply-add-form.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-support-ticket/view/frontend/ticket-replies.php:20
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/wp-support-ticket/view/admin/ticket-reply-view.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-support-ticket/view/admin/donate.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: Please delete some tags, you are using 22 tag instead of maximum 10
Please take inspiration from this readme.txt

wp-support-ticket/support.php 92% from 13 tests

The main PHP script in "WP Support Ticket" version 3.4.7 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-support-ticket.php" instead of "support.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected3,990 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
PHP312761581,575
CSS433661,439
JavaScript6155602906
PO File134070

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity15.31
▷ Minimum class complexity1.00
▷ Maximum class complexity54.00
Average method complexity3.27
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods82
▷ Static methods1315.85%
▷ Public methods82100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants15100.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
33 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/ui-bg_glass_100_fdf5ce_1x400.png0.34KB0.16KB▼ 54.02%
assets/images/ui-icons_ef8c08_256x240.png4.44KB4.17KB▼ 6.02%
assets/images/ui-bg_flat_15_cd0a0a_40x100.png0.20KB0.08KB▼ 57.77%
assets/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png0.32KB0.14KB▼ 56.02%
assets/images/ui-icons_ffffff_256x240.png6.15KB4.17KB▼ 32.13%