90% helpdeskwp

Code Review | Help Desk WP

WordPress plugin Help Desk WP scored 90% from 54 tests.

About plugin

  • Plugin page: helpdeskwp
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.9
  • WordPress version: 6.3.1
  • First release: Dec 24, 2021
  • Latest release: Jan 30, 2022
  • Number of updates: 9
  • Update frequency: every 4.1 days
  • Top authors: helpdeskwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 409 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▲12.15ms] Passed 4 tests

Analyzing server-side resources used by Help Desk WP
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1748.49 ▼2.65
Dashboard /wp-admin3.48 ▲0.1768.22 ▲13.48
Posts /wp-admin/edit.php3.60 ▲0.2471.96 ▲22.02
Add New Post /wp-admin/post-new.php6.46 ▲0.57143.21 ▲44.79
Media Library /wp-admin/upload.php3.38 ▲0.1653.35 ▲15.75

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 83 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
ticket_priority_children
ticket_status_children
ticket_type_children
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Help Desk WP
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,951 ▲16214.73 ▼0.001.84 ▼1.2042.39 ▼5.44
Dashboard /wp-admin2,357 ▲1486.45 ▲0.61135.83 ▲31.8441.83 ▲1.54
Posts /wp-admin/edit.php2,263 ▲1773.36 ▲1.3852.17 ▲16.0330.29 ▼3.26
Add New Post /wp-admin/post-new.php1,549 ▲1218.51 ▼4.75637.03 ▼9.7836.60 ▼29.93
Media Library /wp-admin/upload.php1,405 ▲234.13 ▼0.1881.45 ▼24.1243.07 ▼0.89

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • ticket_priority_children
    • ticket_status_children
    • ticket_type_children
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6, #7 in helpdeskwp/assets to your readme.txt
Please take inspiration from this readme.txt

helpdeskwp/helpdeskwp.php Passed 13 tests

The main PHP script in "Help Desk WP" version 1.2.0 is automatically included on every request by WordPress
30 characters long description:
Help Desk and customer support

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin7,152 lines of code in 78 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3944524,153
PHP224286551,718
Sass519701,039
CSS5173235
SVG7007

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity9.53
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity2.13
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods113
▷ Static methods2522.12%
▷ Public methods10088.50%
▷ Protected methods00.00%
▷ Private methods1311.50%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin