10% kb-support

Code Review | KB Support - WordPress Help Desk and Knowledge Base

WordPress plugin KB Support - WordPress Help Desk and Knowledge Base scored10%from 54 tests.

About plugin

  • Plugin page: kb-support
  • Plugin version: 1.5.91
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.3
  • WordPress version: 6.3.1
  • First release: Jan 10, 2017
  • Latest release: Oct 3, 2023
  • Number of updates: 170
  • Update frequency: every 14.4 days
  • Top authors: kbsupport (64.12%)mikeyhoward1977 (20%)raldea89 (11.18%)giucu91 (3.53%)wpchill (2.35%)

Code review

54 tests

User reviews

21 reviews

Install metrics

2,000+ active /49,049 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/kb-support/includes/tickets/ticket-actions.php+28
    Undefined index: open

Server metrics [RAM: ▲1.17MB] [CPU: ▲12.65ms] Passed 4 tests

Server-side resources used by KB Support - WordPress Help Desk and Knowledge Base
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.17 ▲0.7256.52 ▲12.46
Dashboard /wp-admin4.66 ▲1.3692.97 ▲43.95
Posts /wp-admin/edit.php4.68 ▲1.3362.19 ▲11.02
Add New Post /wp-admin/post-new.php7.59 ▲1.70106.69 ▲13.99
Media Library /wp-admin/upload.php4.51 ▲1.2848.55 ▲13.14
Getting Started with KB Support /wp-admin/index.php?page=kbs-getting-started4.4645.00
Categories /wp-admin/edit-tags.php?taxonomy=ticket_category&post_type=kbs_ticket4.5044.74
KBS Upgrades /wp-admin/admin.php?page=kbs-upgrades4.4446.48
Tags /wp-admin/edit-tags.php?taxonomy=article_tag&post_type=article4.5046.22
Companies /wp-admin/edit.php?post_type=kbs_company4.6554.81
LITE vs Premium /wp-admin/edit.php?post_type=kbs_ticket&page=kbs-lite-vs-pro4.5749.50
Welcome to KB Support /wp-admin/index.php?page=kbs-about4.4543.34
Tickets /wp-admin/edit.php?post_type=kbs_ticket4.6655.31
KB Articles /wp-admin/edit.php?post_type=article4.6655.71
Submission Forms /wp-admin/edit.php?post_type=kbs_form4.7360.05

Server storage [IO: ▲6.28MB] [DB: ▲0.02MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 216 new files
Database: 2 new tables, 15 new options
New tables
wp_kbs_customermeta
wp_kbs_customers
New WordPress options
kbs_version
wp_kbs_customers_db_version
widget_theysaidso_widget
widget_recent-posts
kbs_settings
widget_kbs_popular_articles_widget
theysaidso_admin_options
can_compress_scripts
_kbs_table_check
kbs_completed_upgrades
...

Browser metrics Passed 4 tests

KB Support - WordPress Help Desk and Knowledge Base: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,241 ▲50613.70 ▼0.976.51 ▲4.5543.63 ▼6.80
Dashboard /wp-admin2,536 ▲3485.04 ▼0.84109.73 ▼5.1678.56 ▲32.87
Posts /wp-admin/edit.php2,194 ▲1082.08 ▲0.0736.23 ▼1.9933.44 ▼1.22
Add New Post /wp-admin/post-new.php1,608 ▲7523.69 ▲0.52593.55 ▼92.2060.77 ▲4.31
Media Library /wp-admin/upload.php1,490 ▲1054.28 ▲0.1297.51 ▼5.0142.68 ▼2.64
Getting Started with KB Support /wp-admin/index.php?page=kbs-getting-started1,2091.7924.6653.36
Categories /wp-admin/edit-tags.php?taxonomy=ticket_category&post_type=kbs_ticket1,3672.2231.7027.37
KBS Upgrades /wp-admin/admin.php?page=kbs-upgrades2,1073.1650.8246.38
Tags /wp-admin/edit-tags.php?taxonomy=article_tag&post_type=article1,3462.3630.6029.84
Companies /wp-admin/edit.php?post_type=kbs_company1,5924.7862.0728.47
LITE vs Premium /wp-admin/edit.php?post_type=kbs_ticket&page=kbs-lite-vs-pro1,6624.6056.5370.35
Welcome to KB Support /wp-admin/index.php?page=kbs-about1,2472.0031.5947.50
Tickets /wp-admin/edit.php?post_type=kbs_ticket1,6844.7669.3691.31
KB Articles /wp-admin/edit.php?post_type=article1,6414.9458.8730.46
Submission Forms /wp-admin/edit.php?post_type=kbs_form2,1014.8761.6730.47

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie tables detected upon uninstall: 2 tables
    • wp_kbs_customermeta
    • wp_kbs_customers
  • The uninstall procedure has failed, leaving 15 options in the database
    • widget_recent-posts
    • kbs_completed_upgrades
    • widget_kbs_article_categories_tags_widget
    • kbs_doing_upgrade
    • widget_theysaidso_widget
    • _kbs_table_check
    • can_compress_scripts
    • kbs_version
    • wp_kbs_customers_db_version
    • widget_kbs_popular_articles_widget
    • ...

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/kb-support/includes/admin/forms/forms.php
  • 9× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/kb-support/templates/ticket-history.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/kb-support/templates/shortcode-profile-editor.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function kbs_get_ticket_label_singular() in wp-content/plugins/kb-support/templates/view-ticket.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function kbs_get_article_label_singular() in wp-content/plugins/kb-support/templates/shortcode-search.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/kb-support/templates/shortcode-login.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/kb-support/templates/shortcode-form.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/kb-support/includes/admin/upsells/class-kbs-admin-upsells.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/kb-support/templates/shortcode-register.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/kb-support/includes/admin/upsells/lite-vs-pro-page.php:5

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=kbs_form
    • > Javascript (severe) in unknown
    /wp-content/plugins/kb-support/assets/js/admin-conditions-scripts.min.js?ver=1.5.90 0:1380 Uncaught TypeError: $ is not a function

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: support ticket, ticket system, help desk, helpdesk, knowledge base

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

"KB Support - WordPress Help Desk and Knowledge Base" version 1.5.91's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
74 characters long description:
The best help desk tool for WordPress. Simple yet effective. Feature rich.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin48,258 lines of code in 169 files:
LanguageFilesBlank linesComment linesLines of code
PHP1358,86113,97331,337
PO File22,4643,0227,918
CSS155634754,599
JavaScript143841422,693
SVG2021,685
Markdown111026

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity35.72
▷ Minimum class complexity2.00
▷ Maximum class complexity244.00
Average method complexity4.06
▷ Minimum method complexity1.00
▷ Maximum method complexity59.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes50
▷ Abstract classes12.00%
▷ Concrete classes4998.00%
▷ Final classes12.04%
Methods570
▷ Static methods81.40%
▷ Public methods50488.42%
▷ Protected methods254.39%
▷ Private methods417.19%
Functions788
▷ Named functions77498.22%
▷ Anonymous functions141.78%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
30 PNG files occupy 1.13MB with 0.63MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/images/ui-icons_ffffff_256x240.png6.33KB4.18KB▼ 33.99%
assets/images/screenshots/11-data-export.png41.20KB14.21KB▼ 65.50%
assets/images/icon-256x256.png6.98KB3.16KB▼ 54.73%
assets/images/screenshots/11-additional-agents-metabox.png36.69KB12.72KB▼ 65.33%
assets/css/images/ui-bg_highlight-hard_65_fee4bd_1x100.png0.36KB0.15KB▼ 58.33%