90% wp-help-desk

Code Review | WP Help Desk

WordPress plugin WP Help Desk scored90%from 54 tests.

About plugin

  • Plugin page: wp-help-desk
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9.4
  • WordPress version: 6.3.1
  • First release: Apr 3, 2018
  • Latest release: Apr 3, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: seothemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /559 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.29MB] [CPU: ▼3.09ms] Passed 4 tests

Analyzing server-side resources used by WP Help Desk
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2845.28 ▲2.04
Dashboard /wp-admin3.58 ▲0.2850.55 ▲0.17
Posts /wp-admin/edit.php3.70 ▲0.3449.59 ▼1.22
Add New Post /wp-admin/post-new.php6.26 ▲0.3787.74 ▼12.04
Media Library /wp-admin/upload.php3.51 ▲0.2735.73 ▲0.74
Add New /wp-admin/post-new.php?post_type=article6.2580.79
All Articles /wp-admin/edit.php?post_type=article3.5535.97
Topics /wp-admin/edit-tags.php?taxonomy=topic&post_type=article3.5034.49

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 9 new options
New WordPress options
can_compress_scripts
widget_wp_help_desk_search_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_wp_help_desk_widget
widget_theysaidso_widget
wp_help_desk_version
db_upgraded

Browser metrics Passed 4 tests

WP Help Desk: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,942 ▲19613.63 ▼0.958.66 ▲6.9043.38 ▼2.36
Dashboard /wp-admin2,234 ▲435.97 ▲0.0798.33 ▼15.0342.25 ▲0.88
Posts /wp-admin/edit.php2,120 ▲311.99 ▼0.0234.13 ▼3.3031.57 ▼3.16
Add New Post /wp-admin/post-new.php1,559 ▲3723.11 ▼0.07629.32 ▼19.0248.75 ▼6.05
Media Library /wp-admin/upload.php1,422 ▲344.19 ▲0.0195.64 ▼2.5143.49 ▲0.91
Add New /wp-admin/post-new.php?post_type=article6,18524.43964.0730.15
All Articles /wp-admin/edit.php?post_type=article1,0981.9329.4530.77
Topics /wp-admin/edit-tags.php?taxonomy=topic&post_type=article1,2932.1327.3626.94

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 9 options in the database
    • theysaidso_admin_options
    • widget_wp_help_desk_search_widget
    • can_compress_scripts
    • widget_recent-posts
    • wp_help_desk_version
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_wp_help_desk_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: template, plugin, wordpress

wp-help-desk/wp-help-desk.php 92% from 13 tests

The main file in "WP Help Desk" v. 0.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/lang/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin7,432 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
JSON2006,242
PHP10280672919
JavaScript78486205
Markdown123036
Sass11129
CSS1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity15.12
▷ Minimum class complexity4.00
▷ Maximum class complexity61.00
Average method complexity3.22
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods51
▷ Static methods23.92%
▷ Public methods4996.08%
▷ Protected methods00.00%
▷ Private methods23.92%
Functions6
▷ Named functions350.00%
▷ Anonymous functions350.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin