68% octrace-support

Code Review | WordPress HelpDesk & Support Ticket System Plugin - Octrace Support

WordPress plugin WordPress HelpDesk & Support Ticket System Plugin - Octrace Support scored68%from 54 tests.

About plugin

  • Plugin page: octrace-support
  • Plugin version: 1.2.6
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Oct 30, 2020
  • Latest release: Nov 25, 2023
  • Number of updates: 71
  • Update frequency: every 15.8 days
  • Top authors: octrace (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /2,307 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.65MB] [CPU: ▼10.14ms] Passed 4 tests

An overview of server-side resources used by WordPress HelpDesk & Support Ticket System Plugin - Octrace Support
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.23 ▲0.7338.87 ▼28.11
Dashboard /wp-admin4.10 ▲0.8049.38 ▼2.03
Posts /wp-admin/edit.php4.15 ▲0.3149.97 ▼9.82
Add New Post /wp-admin/post-new.php6.68 ▲0.7999.01 ▼0.60
Media Library /wp-admin/upload.php4.01 ▲0.7737.36 ▼0.26
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius4.3637.25

Server storage [IO: ▲4.14MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 259 new files
Database: no new tables, 9 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
fs_accounts
fs_active_plugins
widget_theysaidso_widget
fs_debug_mode

Browser metrics Passed 4 tests

An overview of browser requirements for WordPress HelpDesk & Support Ticket System Plugin - Octrace Support
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,894 ▲13214.74 ▲0.841.62 ▼0.0927.07 ▼16.99
Dashboard /wp-admin2,302 ▲1255.66 ▲0.1496.14 ▼2.2243.90 ▲0.90
Posts /wp-admin/edit.php2,205 ▲1022.03 ▲0.0340.98 ▲0.0936.47 ▼0.95
Add New Post /wp-admin/post-new.php6,343 ▲4,81725.84 ▲2.99849.73 ▲173.5433.65 ▼30.34
Media Library /wp-admin/upload.php1,502 ▲1054.20 ▼0.0095.88 ▼10.3744.62 ▲4.15
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius1,1591.6732.4433.83

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/octrace-support/freemius/includes/class-freemius.php+8546
    Undefined property: stdClass::$plugins
  • This plugin does not fully uninstall, leaving 9 options in the database
    • fs_active_plugins
    • fs_accounts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • fs_debug_mode
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/octrace-support/Admin/views/components/placeholder-agents.php
    • > /wp-content/plugins/octrace-support/Admin/views/components/placeholder-dashboard.php
  • 182× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\UploadedFileInterface' not found in wp-content/plugins/octrace-support/vendor/guzzlehttp/psr7/src/UploadedFile.php:10
    • > PHP Notice
      Undefined variable: index in wp-content/plugins/octrace-support/Admin/views/modals/edit-status.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/octrace-support/Admin/views/agents.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/octrace-support/vendor/psr/log/Psr/Log/NullLogger.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/octrace-support/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:22
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/octrace-support/vendor/guzzlehttp/psr7/src/Stream.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/octrace-support/vendor/monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\GroupHandler' not found in wp-content/plugins/octrace-support/vendor/monolog/monolog/src/Monolog/Handler/WhatFailureGroupHandler.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\MailHandler' not found in wp-content/plugins/octrace-support/vendor/monolog/monolog/src/Monolog/Handler/MandrillHandler.php:22
    • > PHP Fatal error
      Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/octrace-support/vendor/monolog/monolog/src/Monolog/Processor/GitProcessor.php:22

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)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: help, support ticket, ticket system, support desk, tickets...

octrace-support/octrace-support.php Passed 13 tests

Analyzing the main PHP file in "WordPress HelpDesk & Support Ticket System Plugin - Octrace Support" version 1.2.6
95 characters long description:
Help desk & support ticket system plugin that helps you manage your support requests with ease.

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin100,155 lines of code in 514 files:
LanguageFilesBlank linesComment linesLines of code
PHP42415,85840,97172,969
JSON210018,521
Markdown201,33704,085
CSS165021232,479
JavaScript9151771,105
XML1300467
PO File1183242444
YAML211353
SVG60020
make1409
Bourne Shell1203

PHP code 0% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 3,096)
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 106)
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity33.99
▷ Minimum class complexity1.00
▷ Maximum class complexity3,096.00
Average method complexity4.17
▷ Minimum method complexity1.00
▷ Maximum method complexity106.00
Code structure
Namespaces32
Interfaces33
Traits8
Classes272
▷ Abstract classes114.04%
▷ Concrete classes26195.96%
▷ Final classes218.05%
Methods3,405
▷ Static methods38711.37%
▷ Public methods2,65177.86%
▷ Protected methods1755.14%
▷ Private methods57917.00%
Functions272
▷ Named functions16159.19%
▷ Anonymous functions11140.81%
Constants436
▷ Global constants11827.06%
▷ Class constants31872.94%
▷ Public constants29893.71%

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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%