78% jitbit-helpdesk

Code Review | Jitbit Help Desk Ticketing System for Wordpress

WordPress plugin Jitbit Help Desk Ticketing System for Wordpress scored78%from 54 tests.

About plugin

  • Plugin page: jitbit-helpdesk
  • Plugin version: 0.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.6
  • WordPress version: 6.3.1
  • First release: Oct 22, 2013
  • Latest release: Jun 19, 2018
  • Number of updates: 10
  • Update frequency: every 170.1 days
  • Top authors: maxt3r (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,556 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.41ms] Passed 4 tests

An overview of server-side resources used by Jitbit Help Desk Ticketing System for Wordpress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.90 ▲0.91
Dashboard /wp-admin3.31 ▲0.0154.32 ▲4.02
Posts /wp-admin/edit.php3.36 ▲0.0044.73 ▼0.22
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.98 ▼19.14
Media Library /wp-admin/upload.php3.23 ▲0.0033.81 ▲0.82
Jitbit Helpdesk /wp-admin/plugins.php?page=hd-elements3.1729.01

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Jitbit Help Desk Ticketing System for Wordpress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.17 ▼1.411.89 ▲0.0946.18 ▲0.49
Dashboard /wp-admin2,207 ▲195.82 ▲0.9698.93 ▼12.5442.70 ▼2.30
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0238.92 ▲3.3831.32 ▼2.26
Add New Post /wp-admin/post-new.php1,546 ▲918.29 ▲0.01612.90 ▲6.7159.13 ▼3.70
Media Library /wp-admin/upload.php1,386 ▼24.25 ▲0.05101.80 ▲2.7241.84 ▼1.49
Jitbit Helpdesk /wp-admin/plugins.php?page=hd-elements7972.0325.8125.08

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/plugins.php?page=hd-elements
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/plugins.php?page=hd-elements
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% 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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jitbit-helpdesk/helpdesk.php:26

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 96% from 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
3 plugin tags: widget, helpdesk, help-desk-software

jitbit-helpdesk/helpdesk.php 92% from 13 tests

Analyzing the main PHP file in "Jitbit Help Desk Ticketing System for Wordpress" version 0.2.1
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("jitbit-helpdesk.php" instead of "helpdesk.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin53 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1121753

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin