83% banckle-helpdesk

Code Review | Banckle Helpdesk

WordPress plugin Banckle Helpdesk scored83%from 54 tests.

About plugin

  • Plugin page: banckle-helpdesk
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-3.9
  • WordPress version: 6.3.1
  • First release: May 7, 2014
  • Latest release: May 7, 2014
  • Number of updates: 2
  • Update frequency: every 3.0 days
  • Top authors: imranwar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,181 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.46ms] Passed 4 tests

An overview of server-side resources used by Banckle Helpdesk
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.61 ▼0.02
Dashboard /wp-admin3.32 ▼0.0243.73 ▼15.67
Posts /wp-admin/edit.php3.38 ▲0.0245.44 ▲2.26
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.55 ▼0.42
Media Library /wp-admin/upload.php3.25 ▲0.0235.80 ▲2.88

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_bhticketcaptureformwidget
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Banckle Helpdesk: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.32 ▼0.051.58 ▼0.0341.39 ▼0.13
Dashboard /wp-admin2,198 ▲215.59 ▼0.0882.13 ▼8.0736.24 ▼2.50
Posts /wp-admin/edit.php2,100 ▼01.96 ▲0.0034.86 ▼0.1733.02 ▼4.99
Add New Post /wp-admin/post-new.php1,526 ▼223.12 ▼0.07667.27 ▼0.6757.53 ▲0.58
Media Library /wp-admin/upload.php1,400 ▼34.22 ▼0.09109.36 ▲14.9445.84 ▲4.42

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_bhticketcaptureformwidget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% 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 50% 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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/banckle-helpdesk/bhticketcaptureform.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 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Banckle Helpdesk Contact Capture Form Widget Code.), #2 (Banckle Helpdesk Dashboard.), #3 (Banckle Helpdesk Deals.)
  • Tags: There are too many tags (24 tag instead of maximum 10)
You can take inspiration from this readme.txt

banckle-helpdesk/bhticketcaptureform.php 85% from 13 tests

"Banckle Helpdesk" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 332 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("banckle-helpdesk.php" instead of "bhticketcaptureform.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin63 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1282663

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.04
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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 are no PNG files in this plugin