93% wp-support-plus-responsive-ticket-system

Code Review | WP Support Plus Responsive Ticket System

WordPress plugin WP Support Plus Responsive Ticket System scored 93% from 54 tests.

About plugin

  • Plugin page: wp-support-plus-r...
  • Plugin version: 9.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.2.2
  • WordPress version: 5.9.2
  • First release: Sep 3, 2014
  • Latest release: Sep 3, 2019
  • Number of updates: 157
  • Update frequency: every 11.6 days
  • Top authors: pradeepmakone07 (100%)

Code review

54 tests

User reviews

203 reviews

Install metrics

5,000+ active / 241,272 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼289.27ms] Passed 4 tests

An overview of server-side resources used by WP Support Plus Responsive Ticket System
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0462.12 ▲4.93
Dashboard /wp-admin3.43 ▲0.0339.10 ▲3.18
Posts /wp-admin/edit.php3.67 ▲0.0342.34 ▲2.81
Add New Post /wp-admin/post-new.php6.91 ▼0.0698.25 ▼1,167.22
Media Library /wp-admin/upload.php3.32 ▲0.0327.00 ▲4.14

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 559 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Support Plus Responsive Ticket System
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,792 ▲3815.66 ▲0.016.59 ▲0.332.28 ▲0.07
Dashboard /wp-admin2,918 ▲576.11 ▼0.09117.68 ▼20.92185.66 ▲25.24
Posts /wp-admin/edit.php2,720 ▲293.37 ▲0.1363.99 ▲0.52175.88 ▲32.69
Add New Post /wp-admin/post-new.php1,679 ▲1816.07 ▲0.54395.74 ▼21.80154.86 ▼1.71
Media Library /wp-admin/upload.php1,724 ▲295.48 ▼0.02147.91 ▲8.69211.25 ▲29.62

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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 take a closer look at the following
  • 40× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/wp-support-plus-responsive-ticket-system/includes/ajax/autocomplete/filters/category.php on line 3
    • > PHP Notice
      Undefined variable: wpdb in wp-content/plugins/wp-support-plus-responsive-ticket-system/includes/ajax/autocomplete/filters/user_type.php on line 38
    • > PHP Notice
      Undefined variable: s in wp-content/plugins/wp-support-plus-responsive-ticket-system/includes/ajax/autocomplete/filters/status.php on line 12
    • > PHP Notice
      Undefined variable: wpdb in wp-content/plugins/wp-support-plus-responsive-ticket-system/includes/ajax/autocomplete/filters/assigned_agent.php on line 7
    • > PHP Notice
      Undefined variable: wpdb in wp-content/plugins/wp-support-plus-responsive-ticket-system/includes/ajax/autocomplete/filters/created_agent.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-support-plus-responsive-ticket-system/includes/ajax/autocomplete/filters/id.php:3
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/wp-support-plus-responsive-ticket-system/includes/ajax/autocomplete/filters/status.php:38
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/wp-support-plus-responsive-ticket-system/includes/ajax/autocomplete/filters/created_agent.php:50
    • > PHP Notice
      Undefined variable: wpdb in wp-content/plugins/wp-support-plus-responsive-ticket-system/includes/ajax/autocomplete/filters/user_type.php on line 3
    • > PHP Notice
      Trying to get property 'base_prefix' of non-object in wp-content/plugins/wp-support-plus-responsive-ticket-system/includes/ajax/autocomplete/filters/created_agent.php on line 7

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (11 tag instead of maximum 10)
You can look at the official readme.txt

wp-support-plus-responsive-ticket-system/wp-support-plus.php 85% from 13 tests

The main file in "WP Support Plus Responsive Ticket System" v. 9.1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "4.4")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-support-plus-responsive-ticket-system.php" instead of "wp-support-plus.php")

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
Everything looks great! No dangerous files found in this plugin116,605 lines of code in 459 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript13813,34926,79865,981
PO File238,88818,11318,086
PHP2224,7451,64015,298
CSS3928520110,411
SVG4003,153
Sass1434341,768
LESS1434441,758
JSON200114
XML10020
Markdown24016

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity32.83
▷ Minimum class complexity1.00
▷ Maximum class complexity174.00
Average method complexity2.72
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes15.56%
Methods334
▷ Static methods10.30%
▷ Public methods32697.60%
▷ Protected methods00.00%
▷ Private methods82.40%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
29 PNG files occupy 0.12MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
asset/css/images/ui-icons_ffffff_256x240.png6.17KB4.18KB▼ 32.17%
asset/css/images/ui-icons_777620_256x240.png4.57KB4.18KB▼ 8.43%
asset/library/DataTables/DataTables-1.10.16/images/sort_desc_disabled.png0.14KB0.25KB0.00%
asset/css/images/ui-icons_cc0000_256x240.png4.52KB4.18KB▼ 7.56%
asset/images/icons/minimize.png0.15KB0.10KB▼ 32.91%