68% simple-support-ticket-system

Code Review | Support Ticket System

WordPress plugin Support Ticket System scored68%from 54 tests.

About plugin

  • Plugin page: simple-support-ti...
  • Plugin version: 1.3.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.1
  • WordPress version: 6.3.1
  • First release: Sep 2, 2015
  • Latest release: Jan 27, 2017
  • Number of updates: 77
  • Update frequency: every 6.7 days
  • Top authors: en0x (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

20+ active /5,952 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 gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.37ms] Passed 4 tests

Server-side resources used by Support Ticket System
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.05 ▼9.29
Dashboard /wp-admin3.35 ▲0.0551.94 ▲1.84
Posts /wp-admin/edit.php3.40 ▲0.0549.10 ▼3.06
Add New Post /wp-admin/post-new.php5.93 ▲0.0595.10 ▼6.95
Media Library /wp-admin/upload.php3.27 ▲0.0537.71 ▲6.22
Users /wp-admin/admin.php?page=users-unique-identifier3.2934.34
General /wp-admin/admin.php?page=general-unique-identifier3.3039.03

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 47 new files
Database: 1 new table, 6 new options
New tables
wp_sts_options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Support Ticket System
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.31 ▼0.071.80 ▼0.1840.25 ▼3.49
Dashboard /wp-admin2,221 ▲505.67 ▲0.0589.57 ▼11.2638.53 ▼5.39
Posts /wp-admin/edit.php2,123 ▲231.99 ▼0.0234.76 ▼1.8634.03 ▼1.88
Add New Post /wp-admin/post-new.php1,574 ▲2923.03 ▼0.01656.01 ▲52.6854.73 ▲11.81
Media Library /wp-admin/upload.php1,423 ▲294.31 ▲0.0696.22 ▼1.1045.31 ▲2.25
Users /wp-admin/admin.php?page=users-unique-identifier8972.0322.7631.42
General /wp-admin/admin.php?page=general-unique-identifier9732.0323.4840.06

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
The following items require your attention
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_sts_options
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
  • 22× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/simple-support-ticket-system/includes/db-update.php
    • > /wp-content/plugins/simple-support-ticket-system/includes/install.php
    • > /wp-content/plugins/simple-support-ticket-system/includes/logout.php
    • > /wp-content/plugins/simple-support-ticket-system/includes/form-functions.php
    • > /wp-content/plugins/simple-support-ticket-system/includes/admin/options-functions.php
    • > /wp-content/plugins/simple-support-ticket-system/includes/ajax.php
    • > /wp-content/plugins/simple-support-ticket-system/includes/login.php
    • > /wp-content/plugins/simple-support-ticket-system/includes/admin/general-save.php
    • > /wp-content/plugins/simple-support-ticket-system/includes/system-functions.php
    • > /wp-content/plugins/simple-support-ticket-system/includes/system.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined index: user in wp-content/plugins/simple-support-ticket-system/includes/setcookie.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === simple-support-ticket-system === )
You can take inspiration from this readme.txt

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

This is the main PHP file of "Support Ticket System" version 1.3.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
115 characters long description:
Simple and fast ticket system to receive and store Problems of Customers or Visitors, with a great search function.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin5,112 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript71631081,868
PHP241321301,778
CSS555261,241
PO File197111225

PHP code Passed 2 tests

An short overview of 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.32
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions34
▷ Named functions34100.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
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/expand.png4.71KB3.07KB▼ 34.76%
img/change.png5.05KB3.10KB▼ 38.49%
img/take.png3.88KB1.72KB▼ 55.56%
img/logout.png2.39KB1.10KB▼ 53.93%
img/done.png2.50KB1.26KB▼ 49.55%