72% wats

Code Review | Wordpress Advanced Ticket System, Elite Support Helpdesk

WordPress plugin Wordpress Advanced Ticket System, Elite Support Helpdesk scored72%from 54 tests.

About plugin

  • Plugin page: wats
  • Plugin version: 1.0.65
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 14, 2009
  • Latest release: Mar 30, 2023
  • Number of updates: 208
  • Update frequency: every 24.2 days
  • Top authors: firebird75 (100%)

Code review

54 tests

User reviews

58 reviews

Install metrics

300+ active /101,516 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲1.16MB] [CPU: ▲4.12ms] Passed 4 tests

This is a short check of server-side resources used by Wordpress Advanced Ticket System, Elite Support Helpdesk
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.66 ▲1.2046.99 ▲6.24
Dashboard /wp-admin4.50 ▲1.1952.27 ▲2.78
Posts /wp-admin/edit.php4.55 ▲1.1951.04 ▲3.34
Add New Post /wp-admin/post-new.php7.01 ▲1.1394.46 ▲7.19
Media Library /wp-admin/upload.php4.35 ▲1.1338.52 ▲4.11
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=ticket4.3546.39
Tickets /wp-admin/edit.php?post_type=ticket4.4740.96
Add New /wp-admin/post-new.php?post_type=ticket4.5551.82

Server storage [IO: ▲2.45MB] [DB: ▲0.08MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 62 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
wats
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
category_children

Browser metrics Passed 4 tests

A check of browser resources used by Wordpress Advanced Ticket System, Elite Support Helpdesk
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,090 ▲32914.37 ▲0.001.66 ▲0.0944.74 ▲4.19
Dashboard /wp-admin2,479 ▲3025.69 ▲0.0285.58 ▼3.9265.27 ▲24.55
Posts /wp-admin/edit.php2,140 ▲371.97 ▼0.0436.44 ▼1.9932.95 ▼4.05
Add New Post /wp-admin/post-new.php1,569 ▲4323.21 ▲0.45580.58 ▼78.6595.17 ▲21.63
Media Library /wp-admin/upload.php1,437 ▲374.16 ▼0.0799.88 ▲6.5372.97 ▲31.84
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=ticket1,4982.1226.8832.40
Wats Options /wp-admin/wats-head.php260.420.0713.25
Tickets /wp-admin/edit.php?post_type=ticket1,1891.9331.4028.30
Add New /wp-admin/post-new.php?post_type=ticket2,3526.09153.96101.44

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 8 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • category_children
    • wats
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 25% 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/wats/wats-js-commons.php
    • > /wp-content/plugins/wats/wats-options-ajax.php
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wats/wats-dashboard.php:61
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wats/theme/ticket-access-denied.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function have_comments() in wp-content/plugins/wats/theme/comments-ticket.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wats/theme/single-ticket.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wats/wats-dashboard.php:61

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/wats-head.php
    • > Network (severe)
    wp-admin/wats-head.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% 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:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can look at the official readme.txt

wats/wats.php 92% from 13 tests

The main PHP file in "Wordpress Advanced Ticket System, Elite Support Helpdesk" ver. 1.0.65 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

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
No dangerous file extensions were detected27,918 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
PO File149,00511,86521,371
PHP151,1861,2025,992
JavaScript2117204323
CSS23920232

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
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%
Functions152
▷ Named functions152100.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants14100.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
5 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/modify.png3.90KB0.40KB▼ 89.80%
img/help.png1.51KB1.18KB▼ 21.83%
img/accept.png3.95KB0.61KB▼ 84.69%
img/support.png3.18KB0.56KB▼ 82.43%
img/blue-grad.png0.40KB0.31KB▼ 22.14%