Benchmarks
Plugin footprint 22% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin cannot be installed
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▲1.09MB] [CPU: ▼4.20ms] Passed 4 tests
A check of server-side resources used by CodeBard Help Desk
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.56 ▲1.10 | 54.33 ▲13.28 |
Dashboard /wp-admin | 4.39 ▲1.08 | 54.43 ▲1.15 |
Posts /wp-admin/edit.php | 4.44 ▲1.09 | 65.49 ▲15.02 |
Add New Post /wp-admin/post-new.php | 6.99 ▲1.10 | 93.66 ▼40.55 |
Media Library /wp-admin/upload.php | 4.31 ▲1.08 | 48.55 ▲9.34 |
Add new /wp-admin/post-new.php?post_type=cb_p3_ticket | 4.44 | 63.02 |
Departments /wp-admin/edit-tags.php?taxonomy=cb_p3_support&post_type=cb_p3_ticket | 4.32 | 44.39 |
Tickets /wp-admin/edit.php?post_type=cb_p3_ticket | 4.36 | 46.24 |
Server storage [IO: ▲0.46MB] [DB: ▲0.09MB] 67% from 3 tests
A short overview of filesystem and database impact
These are issues you should consider
- You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/codebard-help-desk/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 84 new files
Database: 8 new tables, 12 new options
New tables |
---|
wp_cb_p3_int |
wp_cb_p3_decimal |
wp_cb_p3_department |
wp_cb_p3_attachment |
wp_cb_p3_date |
wp_cb_p3_text |
wp_cb_p3_reply |
wp_cb_p3_longtext |
New WordPress options |
---|
widget_theysaidso_widget |
cb_p3_lang_en-US |
widget_recent-comments |
db_upgraded |
widget_codebard_help_desk_sidebar_user_widget |
cb_p3_lang_es-ES |
cb_p3_options |
cb_p3_support_children |
cb_p3_lang_hi-IN |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
A check of browser resources used by CodeBard Help Desk
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,889 ▲128 | 13.21 ▼1.19 | 1.92 ▲0.15 | 41.03 ▲2.39 |
Dashboard /wp-admin | 2,253 ▲53 | 5.05 ▲0.17 | 98.61 ▼10.20 | 70.42 ▲28.00 |
Posts /wp-admin/edit.php | 2,147 ▲50 | 2.03 ▲0.02 | 41.57 ▲1.22 | 38.68 ▲2.59 |
Add New Post /wp-admin/post-new.php | 1,569 ▲43 | 23.04 ▲5.48 | 756.78 ▲90.41 | 56.20 ▼2.50 |
Media Library /wp-admin/upload.php | 1,444 ▲44 | 4.25 ▲0.06 | 104.23 ▼2.48 | 74.64 ▲27.60 |
Add new /wp-admin/post-new.php?post_type=cb_p3_ticket | 2,478 | 7.84 | 191.36 | 132.01 |
Departments /wp-admin/edit-tags.php?taxonomy=cb_p3_support&post_type=cb_p3_ticket | 1,424 | 2.32 | 28.32 | 39.55 |
Tickets /wp-admin/edit.php?post_type=cb_p3_ticket | 1,119 | 1.96 | 32.59 | 33.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.09MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/codebard-help-desk/uninstall.php+53
Undefined index: prefix
- Zombie tables detected upon uninstall: 8 tables
- wp_cb_p3_department
- wp_cb_p3_int
- wp_cb_p3_attachment
- wp_cb_p3_date
- wp_cb_p3_decimal
- wp_cb_p3_reply
- wp_cb_p3_text
- wp_cb_p3_longtext
- Zombie WordPress options were found after uninstall: 12 options
- cb_p3_lang_hi-IN
- cb_p3_support_children
- db_upgraded
- cb_p3_lang_es-ES
- cb_p3_lang_en-US
- cb_p3_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 6× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/codebard-help-desk/plugin/includes/setting_sections/reset_settings_form.php
- > /wp-content/plugins/codebard-help-desk/plugin/includes/setting_sections/admin_settings_page_footer.php
- > /wp-content/plugins/codebard-help-desk/plugin/includes/setting_sections/admin_settings_form_header.php
- > /wp-content/plugins/codebard-help-desk/plugin/includes/setting_sections/dashboard_general_magical.php
- > /wp-content/plugins/codebard-help-desk/plugin/includes/setting_sections/admin_settings_form_footer.php
- > /wp-content/plugins/codebard-help-desk/plugin/includes/setting_sections/admin_settings_page_header.php
- 22× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/codebard-help-desk/core/includes/default_internal_vars.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/codebard-help-desk/plugin/includes/setting_sections/sidebar_widgets.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/codebard-help-desk/plugin/includes/default_internal_vars.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/codebard-help-desk/plugin/includes/setting_sections/departments.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/codebard-help-desk/plugin/includes/hardcoded_vars.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/codebard-help-desk/plugin/includes/setting_sections/addons.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/codebard-help-desk/plugin/includes/setting_sections/general.php:4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/codebard-help-desk/plugin/includes/default_options.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/codebard-help-desk/plugin/includes/setting_sections/staff.php:4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/codebard-help-desk/plugin/includes/setting_sections/extras.php:4
- > 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)
No browser issues were found
Optimizations
Plugin configuration 86% from 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
8 plugin tags: tickets, help desk, support ticket system, help desk system, support tickets...
codebard-help-desk/index.php 69% from 13 tests
The entry point to "CodeBard Help Desk" version 1.1.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Domain Path: The domain path is invalid: folder "/lang" does not exist
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: The principal plugin file should be the same as the plugin slug ("codebard-help-desk.php" instead of "index.php")
- Description: Keep the plugin description shorter than 140 characters (currently 187 characters long)
Code Analysis Passed 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 plugin7,700 lines of code in 58 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 3,577 | 584 | 6,924 |
CSS | 2 | 271 | 0 | 563 |
Smarty | 24 | 34 | 19 | 173 |
JavaScript | 1 | 33 | 21 | 40 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 155.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 401.00 |
Average method complexity | 4.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 198 | |
▷ Static methods | 1 | 0.51% |
▷ Public methods | 196 | 98.99% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.01% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/help-desk-name-only-logo.png | 4.90KB | 1.90KB | ▼ 61.12% |
images/patreon-medium-button.png | 8.85KB | 3.75KB | ▼ 57.61% |
images/logo.png | 10.84KB | 5.57KB | ▼ 48.62% |
images/woo_logo.png | 24.50KB | 9.82KB | ▼ 59.91% |
images/admin_delete_icon.png | 0.49KB | 0.43KB | ▼ 10.82% |