Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.59MB] [CPU: ▼38.52ms] Passed 4 tests
Server-side resources used by Ruby Help Desk
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.39 ▼0.08 | 15.97 ▼25.84 |
Dashboard /wp-admin | 3.42 ▲0.12 | 19.99 ▼27.38 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 21.84 ▼24.88 |
Add New Post /wp-admin/post-new.php | 3.42 ▼2.47 | 18.41 ▼75.97 |
Media Library /wp-admin/upload.php | 3.43 ▲0.19 | 19.35 ▼15.73 |
Products /wp-admin/edit-tags.php?taxonomy=tickets_products&post_type=support_ticket | 3.43 | 20.66 |
All Tickets /wp-admin/edit.php?post_type=support_ticket | 3.43 | 21.12 |
Custom Fields /wp-admin/edit.php?post_type=support_ticket&page=ruby-help-desk-custom-fields | 3.43 | 18.00 |
Replies Templates /wp-admin/edit.php?post_type=replies_template | 3.43 | 19.90 |
Create Ticket /wp-admin/post-new.php?post_type=support_ticket | 3.43 | 19.71 |
Settings /wp-admin/edit.php?post_type=support_ticket&page=ruby-help-desk-settings | 3.43 | 30.09 |
Knowledgebase /wp-admin/edit.php?post_type=help_knowledgebase | 3.43 | 17.71 |
Statuses /wp-admin/edit-tags.php?taxonomy=tickets_status&post_type=support_ticket | 3.43 | 19.93 |
Server storage [IO: ▲0.36MB] [DB: ▲0.02MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 59 new files
Database: no new tables, 21 new options
New WordPress options |
---|
rhd_ticket_status_closed |
rhd_[ruby_help_desk_signup] |
rhd_[ruby_help_desk_login] |
widget_theysaidso_widget |
rhd_seeded |
rhd_attachments |
rhd_general |
theysaidso_admin_options |
rhd_sync_products |
tickets_products_children |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ruby Help Desk
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,221 ▲486 | 15.55 ▲1.18 | 1.86 ▲0.04 | 41.97 ▼2.07 |
Dashboard /wp-admin | 2,562 ▲373 | 6.75 ▲1.80 | 141.11 ▲20.89 | 51.20 ▲8.99 |
Posts /wp-admin/edit.php | 2,377 ▲291 | 3.61 ▲1.57 | 58.11 ▲20.61 | 34.49 ▲0.27 |
Add New Post /wp-admin/post-new.php | 1,618 ▲85 | 23.58 ▲0.43 | 677.84 ▲12.72 | 39.94 ▼13.88 |
Media Library /wp-admin/upload.php | 1,510 ▲125 | 4.41 ▲0.23 | 92.31 ▼6.23 | 39.57 ▼3.94 |
Products /wp-admin/edit-tags.php?taxonomy=tickets_products&post_type=support_ticket | 1,654 | 3.47 | 44.53 | 32.24 |
All Tickets /wp-admin/edit.php?post_type=support_ticket | 1,382 | 3.63 | 50.61 | 27.76 |
Custom Fields /wp-admin/edit.php?post_type=support_ticket&page=ruby-help-desk-custom-fields | 1,517 | 3.38 | 54.45 | 36.75 |
Replies Templates /wp-admin/edit.php?post_type=replies_template | 1,350 | 3.64 | 48.84 | 26.69 |
Create Ticket /wp-admin/post-new.php?post_type=support_ticket | 2,018 | 7.79 | 169.03 | 61.83 |
Settings /wp-admin/edit.php?post_type=support_ticket&page=ruby-help-desk-settings | 1,257 | 3.53 | 46.76 | 26.64 |
Knowledgebase /wp-admin/edit.php?post_type=help_knowledgebase | 1,358 | 3.59 | 52.46 | 28.17 |
Statuses /wp-admin/edit-tags.php?taxonomy=tickets_status&post_type=support_ticket | 1,848 | 3.86 | 61.39 | 32.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/ruby-help-desk/public/class-ruby-help-desk-public.php+298
Undefined variable: ticket_id
- Zombie WordPress options were found after uninstall: 21 options
- rhd_[my_tickets]
- rhd_attachments
- rhd_general
- widget_recent-comments
- theysaidso_admin_options
- tickets_products_children
- can_compress_scripts
- db_upgraded
- rhd_[ruby_help_desk_login]
- rhd_ticket_status_new
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 11 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=tickets_status&post_type=support_ticket
- > Notice in wp-content/plugins/ruby-help-desk/public/class-ruby-help-desk-public.php+298
Undefined variable: ticket_id
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=support_ticket
- > Notice in wp-content/plugins/ruby-help-desk/admin/partials/ruby-help-desk-ticket-options-metabox.php+20
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 9× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/ruby-help-desk/admin/partials/ruby-help-desk-ticket-message-metabox.php
- > /wp-content/plugins/ruby-help-desk/admin/partials/emails/reply_added_author.php
- > /wp-content/plugins/ruby-help-desk/admin/partials/emails/ticket_reassigned.php
- > /wp-content/plugins/ruby-help-desk/admin/partials/emails/ticket_opened_assignee.php
- > /wp-content/plugins/ruby-help-desk/public/partials/shortcodes/shortcode-knowledgebase.php
- > /wp-content/plugins/ruby-help-desk/admin/partials/ruby-help-desk-ticket-replies-metabox.php
- > /wp-content/plugins/ruby-help-desk/admin/partials/emails/ticket_closed.php
- > /wp-content/plugins/ruby-help-desk/admin/partials/emails/reply_added_assignee.php
- > /wp-content/plugins/ruby-help-desk/admin/partials/emails/ticket_opened_author.php
- 27× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: tickets_object in wp-content/plugins/ruby-help-desk/admin/partials/widgets/status.php on line 8
- > PHP Notice
Undefined variable: products in wp-content/plugins/ruby-help-desk/public/partials/shortcodes/shortcode-knowledgebase.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ruby-help-desk/public/partials/shortcodes/shortcode-my-tickets.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ruby-help-desk/admin/partials/pages/custom-fields.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/ruby-help-desk/admin/partials/replies_templates/metabox_tags.php:8
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/ruby-help-desk/public/partials/signup.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ruby-help-desk/admin/partials/emails/ticket_opened_assignee.php:94
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ruby-help-desk/admin/partials/emails/reply_added_author.php:94
- > PHP Notice
Undefined variable: attachments in wp-content/plugins/ruby-help-desk/admin/partials/ruby-help-desk-ticket-message-metabox.php on line 25
- > PHP Fatal error
Uncaught Error: Call to a member function get_avatar() on null in wp-content/plugins/ruby-help-desk/admin/partials/ruby-help-desk-ticket-details-metabox.php:15
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: admin, helpdesk
ruby-help-desk/ruby-help-desk.php Passed 13 tests
Analyzing the main PHP file in "Ruby Help Desk" version 1.3.4
57 characters long description:
A simple Help Desk to support your customers efficiently.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin4,805 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 564 | 1,507 | 3,565 |
CSS | 4 | 85 | 22 | 749 |
PO File | 1 | 143 | 195 | 316 |
JavaScript | 1 | 28 | 14 | 175 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 18.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 71.00 |
Average method complexity | 2.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 170 | |
▷ Static methods | 15 | 8.82% |
▷ Public methods | 157 | 92.35% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 7.65% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/ui-icons_777777_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
admin/images/ui-icons_777620_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
admin/images/ui-icons_555555_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |
admin/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
admin/images/vfb-form-items.png | 4.38KB | 3.21KB | ▼ 26.74% |