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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.23 ▲0.73 | 38.87 ▼28.11 |
Dashboard /wp-admin | 4.10 ▲0.80 | 49.38 ▼2.03 |
Posts /wp-admin/edit.php | 4.15 ▲0.31 | 49.97 ▼9.82 |
Add New Post /wp-admin/post-new.php | 6.68 ▲0.79 | 99.01 ▼0.60 |
Media Library /wp-admin/upload.php | 4.01 ▲0.77 | 37.36 ▼0.26 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 4.36 | 37.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,894 ▲132 | 14.74 ▲0.84 | 1.62 ▼0.09 | 27.07 ▼16.99 |
Dashboard /wp-admin | 2,302 ▲125 | 5.66 ▲0.14 | 96.14 ▼2.22 | 43.90 ▲0.90 |
Posts /wp-admin/edit.php | 2,205 ▲102 | 2.03 ▲0.03 | 40.98 ▲0.09 | 36.47 ▼0.95 |
Add New Post /wp-admin/post-new.php | 6,343 ▲4,817 | 25.84 ▲2.99 | 849.73 ▲173.54 | 33.65 ▼30.34 |
Media Library /wp-admin/upload.php | 1,502 ▲105 | 4.20 ▼0.00 | 95.88 ▼10.37 | 44.62 ▲4.15 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,159 | 1.67 | 32.44 | 33.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 424 | 15,858 | 40,971 | 72,969 |
JSON | 21 | 0 | 0 | 18,521 |
Markdown | 20 | 1,337 | 0 | 4,085 |
CSS | 16 | 502 | 123 | 2,479 |
JavaScript | 9 | 151 | 77 | 1,105 |
XML | 13 | 0 | 0 | 467 |
PO File | 1 | 183 | 242 | 444 |
YAML | 2 | 11 | 3 | 53 |
SVG | 6 | 0 | 0 | 20 |
make | 1 | 4 | 0 | 9 |
Bourne Shell | 1 | 2 | 0 | 3 |
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 code | 0.50 |
Average class complexity | 33.99 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 106.00 |
Code structure | ||
---|---|---|
Namespaces | 32 | |
Interfaces | 33 | |
Traits | 8 | |
Classes | 272 | |
▷ Abstract classes | 11 | 4.04% |
▷ Concrete classes | 261 | 95.96% |
▷ Final classes | 21 | 8.05% |
Methods | 3,405 | |
▷ Static methods | 387 | 11.37% |
▷ Public methods | 2,651 | 77.86% |
▷ Protected methods | 175 | 5.14% |
▷ Private methods | 579 | 17.00% |
Functions | 272 | |
▷ Named functions | 161 | 59.19% |
▷ Anonymous functions | 111 | 40.81% |
Constants | 436 | |
▷ Global constants | 118 | 27.06% |
▷ Class constants | 318 | 72.94% |
▷ Public constants | 298 | 93.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |