74% support-ticket-system-for-woocommerce

Code Review | Helpdesk Support Ticket System for WooCommerce

WordPress plugin Helpdesk Support Ticket System for WooCommerce scored 74% from 54 tests.

About plugin

  • Plugin page: support-ticket-sy...
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.2-6.2
  • WordPress version: 6.3.1
  • First release: Oct 19, 2019
  • Latest release: Jul 13, 2023
  • Number of updates: 24
  • Update frequency: every 56.8 days
  • Top authors: taz_bambu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,773 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.51MB] [CPU: ▼7.18ms] Passed 4 tests

Server-side resources used by Helpdesk Support Ticket System for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.93 ▲0.4740.31 ▼6.71
Dashboard /wp-admin3.85 ▲0.5547.13 ▼1.93
Posts /wp-admin/edit.php3.90 ▲0.5548.85 ▲0.05
Add New Post /wp-admin/post-new.php6.44 ▲0.5586.31 ▼20.12
Media Library /wp-admin/upload.php3.71 ▲0.4839.32 ▲2.96
Support Tickets /wp-admin/admin.php?page=support-ticket-system-woocommerce3.7137.97
Tickets /wp-admin/edit.php?post_type=stsw_tickets3.7638.26

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 20 new files
Database: 1 new table, 7 new options
New tables
wp_stsw_responses
New WordPress options
stswpro_tickets_table_db_version
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Helpdesk Support Ticket System for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,019 ▲28414.08 ▼0.145.81 ▲3.9637.09 ▼6.46
Dashboard /wp-admin2,331 ▲1434.94 ▼0.15106.63 ▲8.54110.49 ▲65.58
Posts /wp-admin/edit.php2,226 ▲1372.25 ▲0.2136.74 ▼2.8456.45 ▲17.82
Add New Post /wp-admin/post-new.php1,775 ▲24222.66 ▼0.62799.86 ▲188.6538.60 ▼28.94
Media Library /wp-admin/upload.php1,504 ▲1164.35 ▲0.1399.38 ▼2.2590.31 ▲45.16
Subject /wp-admin/admin.php?page=#280.440.103.74
Support Tickets /wp-admin/admin.php?page=support-ticket-system-woocommerce9831.8327.3732.65
Tickets /wp-admin/edit.php?post_type=stsw_tickets1,3892.2133.8753.84

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_stsw_responses
  • Zombie WordPress options detected upon uninstall: 7 options
    • stswpro_tickets_table_db_version
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=#
    • > Network (severe)
    wp-admin/admin.php?page=# - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 96% 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: support ticket, helpdesk plugin, ticket system, support, helpdesk

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

The main file in "Helpdesk Support Ticket System for WooCommerce" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("3.0.1" instead of "2.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected3,636 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS481591,466
PHP3338901,395
SVG100685
JavaScript227290

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity51.67
▷ Minimum class complexity7.00
▷ Maximum class complexity100.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods70
▷ Static methods00.00%
▷ Public methods70100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/extendwp.png5.75KB3.37KB▼ 41.46%
images/support-ticket-system-woocommerce-pro.png21.83KB10.57KB▼ 51.60%