78% hive-support

Code Review | Hive Support - Helpdesk & Customer Support Ticket Plugin for WordPress

WordPress plugin Hive Support - Helpdesk & Customer Support Ticket Plugin for WordPress scored78%from 54 tests.

About plugin

  • Plugin page: hive-support
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.1
  • WordPress version: 6.3.1
  • First release: Jan 9, 2023
  • Latest release: Jan 9, 2023
  • Number of updates: 2
  • Update frequency: every 1.5 days
  • Top authors: hivesupport (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /835 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.31ms] Passed 4 tests

Analyzing server-side resources used by Hive Support - Helpdesk & Customer Support Ticket Plugin for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0638.13 ▼5.74
Dashboard /wp-admin3.36 ▲0.0650.44 ▼0.36
Posts /wp-admin/edit.php3.48 ▲0.1250.46 ▲2.32
Add New Post /wp-admin/post-new.php5.94 ▲0.0689.47 ▼12.74
Media Library /wp-admin/upload.php3.29 ▲0.0638.61 ▲1.62

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 97 new files
Database: no new tables, 12 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
hive_support_settings
hive_support_tickets
hive_support_agents
hive_support_ticket_settings
hive_support_activities
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Hive Support - Helpdesk & Customer Support Ticket Plugin for WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,956 ▲21013.66 ▼0.535.84 ▲4.0842.00 ▼0.83
Dashboard /wp-admin2,254 ▲485.86 ▲0.96100.67 ▼2.4079.63 ▲34.85
Posts /wp-admin/edit.php2,127 ▲301.98 ▼0.0537.01 ▲0.6135.32 ▼2.50
Add New Post /wp-admin/post-new.php1,551 ▲2517.49 ▼0.05727.69 ▲57.8954.39 ▲1.98
Media Library /wp-admin/upload.php1,433 ▲334.13 ▼0.1895.11 ▼22.1174.85 ▲26.53

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 12 options
    • hive_support_ticket_settings
    • hive_support_agent_settings
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • hive_support_agents
    • hive_support_settings
    • widget_recent-posts
    • hive_support_tickets
    • hive_support_activities
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 11× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/hive-support/frontend/templates/views/tickets.php
    • > /wp-content/plugins/hive-support/frontend/api/list_tickets.php
    • > /wp-content/plugins/hive-support/frontend/api/reply_thread.php
    • > /wp-content/plugins/hive-support/frontend/templates/views/thread.php
    • > /wp-content/plugins/hive-support/backend/templates/views/settings.php
    • > /wp-content/plugins/hive-support/frontend/api/submit_form.php
    • > /wp-content/plugins/hive-support/backend/templates/views/agents.php
    • > /wp-content/plugins/hive-support/backend/templates/views/tickets.php
    • > /wp-content/plugins/hive-support/backend/templates/views/activities.php
    • > /wp-content/plugins/hive-support/backend/templates/views/thread.php
  • 24× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/hive-support/backend/templates/dashboard.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/hive-support/backend/api/list_activities.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/hive-support/backend/api/add_agent.php:6
    • > PHP Warning
      include(): Failed opening 'HIVE_SUPPORT_PATHbackend/templates/views/settings/ticket_fields.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/hive-support/backend/templates/views/settings.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/hive-support/backend/templates/views/settings/email_notification.php:20
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/hive-support/backend/templates/views/settings/ticket_fields.php:53
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/hive-support/backend/api/list_agents.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/hive-support/backend/api/update_agent.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/hive-support/backend/api/email_notification_save.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/hive-support/backend/api/ticket_fields_save.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: helpdesk, support plugin, ticketing, support, support ticketing

hive-support/hive-support.php 92% from 13 tests

"Hive Support - Helpdesk & Customer Support Ticket Plugin for WordPress" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected6,131 lines of code in 87 files:
LanguageFilesBlank linesComment linesLines of code
CSS10367702,383
PHP37665992,336
JavaScript10267191,252
SVG3021160

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity16.57
▷ Minimum class complexity1.00
▷ Maximum class complexity75.00
Average method complexity2.79
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods61
▷ Static methods00.00%
▷ Public methods61100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/tickets/no_user_img.png14.27KB6.14KB▼ 56.95%
assets/img/sidebar/sidebar-logo.png23.47KB7.93KB▼ 66.22%