10% wp-desklite

Code Review | WP DeskLite - Helpdesk and Support Plugin

WordPress plugin WP DeskLite - Helpdesk and Support Plugin scored10%from 54 tests.

About plugin

  • Plugin page: wp-desklite
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.4
  • WordPress version: 6.3.1
  • First release: May 4, 2020
  • Latest release: May 15, 2020
  • Number of updates: 10
  • Update frequency: every 1.6 days
  • Top authors: codeflock (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /519 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/wp-desklite/includes/wpdl-formatting-functions.php+119
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼1.66MB] [CPU: ▼54.94ms] Passed 4 tests

This is a short check of server-side resources used by WP DeskLite - Helpdesk and Support Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.33 ▼1.136.27 ▼33.99
Dashboard /wp-admin2.35 ▼0.997.26 ▼55.02
Posts /wp-admin/edit.php2.35 ▼1.007.74 ▼43.54
Add New Post /wp-admin/post-new.php2.35 ▼3.538.94 ▼87.22
Media Library /wp-admin/upload.php2.35 ▼0.876.75 ▼26.52
Add ticket /wp-admin/post-new.php?post_type=wpdl_ticket2.357.62
Settings /wp-admin/edit.php?post_type=wpdl_ticket&page=wpdl-settings2.369.57
Departments /wp-admin/edit-tags.php?taxonomy=wpdl_ticket_dep&post_type=wpdl_ticket2.367.01
Ticket Types /wp-admin/edit-tags.php?taxonomy=wpdl_ticket_type&post_type=wpdl_ticket2.368.14
Tickets /wp-admin/edit.php?post_type=wpdl_ticket2.367.49

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 104 new files
Database: no new tables, 13 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
wpdl_meta_box_errors
wpdl_version
db_upgraded
wpdl_support_roles
wpdl_remove_all_data
wpdl_attachments
widget_recent-comments
...

Browser metrics Passed 4 tests

A check of browser resources used by WP DeskLite - Helpdesk and Support Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,937 ▲19114.08 ▼0.229.90 ▲8.1542.99 ▼2.35
Dashboard /wp-admin2,247 ▲624.85 ▼0.05112.48 ▼4.7943.77 ▼0.27
Posts /wp-admin/edit.php2,130 ▲412.00 ▼0.0133.82 ▼1.1033.66 ▼5.09
Add New Post /wp-admin/post-new.php1,562 ▲2523.26 ▲4.90664.06 ▲2.7974.34 ▲10.56
Media Library /wp-admin/upload.php1,429 ▲384.29 ▲0.0995.05 ▼3.1943.99 ▲0.88
Add ticket /wp-admin/post-new.php?post_type=wpdl_ticket2,2926.72147.1572.47
Settings /wp-admin/edit.php?post_type=wpdl_ticket&page=wpdl-settings1,1482.6946.6932.38
Departments /wp-admin/edit-tags.php?taxonomy=wpdl_ticket_dep&post_type=wpdl_ticket1,4272.2634.9032.57
Ticket Types /wp-admin/edit-tags.php?taxonomy=wpdl_ticket_type&post_type=wpdl_ticket1,4242.2531.2531.08
Tickets /wp-admin/edit.php?post_type=wpdl_ticket1,2512.4533.9728.06

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/wp-desklite/includes/wpdl-formatting-functions.php+119
    Array and string offset access syntax with curly braces is deprecated
  • Zombie WordPress options were found after uninstall: 13 options
    • widget_recent-comments
    • theysaidso_admin_options
    • wpdl_version
    • wpdl_support_roles
    • wpdl_attachments
    • wpdl_remove_all_data
    • widget_recent-posts
    • db_upgraded
    • wpdl_woocommerce
    • widget_theysaidso_widget
    • ...

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
  • 36 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=wpdl_ticket
    • > POST request to /wp-admin/admin-ajax.php
    • > Deprecated in wp-content/plugins/wp-desklite/includes/wpdl-formatting-functions.php+121
    Array and string offset access syntax with curly braces is deprecated

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: helpdesk, support, support ticket, ticket system, tickets

wp-desklite/wp-desklite.php Passed 13 tests

The principal PHP file in "WP DeskLite - Helpdesk and Support Plugin" v. 1.0.0 is loaded by WordPress automatically on each request
51 characters long description:
A Simple Helpdesk and Support Plugin for WordPress.

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
There were no executable files found in this plugin11,816 lines of code in 93 files:
LanguageFilesBlank linesComment linesLines of code
PHP791,8192,3896,705
SVG3003,362
CSS5201201,035
JavaScript6133128714

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.35
Average class complexity18.10
▷ Minimum class complexity1.00
▷ Maximum class complexity130.00
Average method complexity2.76
▷ Minimum method complexity1.00
▷ Maximum method complexity76.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes39
▷ Abstract classes615.38%
▷ Concrete classes3384.62%
▷ Final classes13.03%
Methods381
▷ Static methods7720.21%
▷ Public methods31382.15%
▷ Protected methods5414.17%
▷ Private methods143.67%
Functions80
▷ Named functions80100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants12100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin