90% letmehelp

Code Review | LetMeHelp - Support & Help Desk Assistant

WordPress plugin LetMeHelp - Support & Help Desk Assistant scored90%from 54 tests.

About plugin

  • Plugin page: letmehelp
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.2
  • WordPress version: 6.3.1
  • First release: Apr 4, 2023
  • Latest release: Apr 14, 2023
  • Number of updates: 5
  • Update frequency: every 2.0 days
  • Top authors: taskotr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /165 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.26MB] [CPU: ▼3.27ms] Passed 4 tests

An overview of server-side resources used by LetMeHelp - Support & Help Desk Assistant
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2841.15 ▲3.56
Dashboard /wp-admin3.60 ▲0.2549.21 ▼6.34
Posts /wp-admin/edit.php3.65 ▲0.2945.27 ▲2.28
Add New Post /wp-admin/post-new.php6.16 ▲0.2783.08 ▼12.13
Media Library /wp-admin/upload.php3.46 ▲0.2338.19 ▲3.11

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 34 new files
Database: 3 new tables, 9 new options
New tables
wp_letmehelp_links_keywords
wp_letmehelp_keywords
wp_letmehelp_links
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
letmehelp_links_keywords_table_version
can_compress_scripts
letmehelp_links_table_version
db_upgraded
letmehelp_keywords_table_version
widget_theysaidso_widget

Browser metrics Passed 4 tests

LetMeHelp - Support & Help Desk Assistant: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.35 ▲0.001.87 ▲0.3344.66 ▲7.30
Dashboard /wp-admin2,211 ▲335.58 ▼0.1483.78 ▼17.5340.46 ▲2.40
Posts /wp-admin/edit.php2,116 ▲162.01 ▼0.0033.43 ▼1.2035.43 ▼3.51
Add New Post /wp-admin/post-new.php6,379 ▲4,84427.68 ▲9.67931.79 ▲261.6859.28 ▼18.92
Media Library /wp-admin/upload.php1,419 ▲194.20 ▼0.04102.91 ▼10.2144.47 ▼2.26

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (Screenshot of the LetMeHelp plugin's 'Add New Link' interface in the Settings page.), #2 (Screenshot of the LetMeHelp plugin's interface for managing existing Links on the Settings page.), #3 (Screenshot of the LetMeHelp block in the editor, displaying the Block Settings interface.), #4 (Screenshot of the LetMeHelp block in the editor, displaying the Block Preview interface.), #5 (Screenshot of the Subject Form: The first step of the multi-step process, where users enter their subject/reason for contacting the website.), #6 (Screenshot of the "Result" section: This screenshot showcases the section that appears if the user enters a keyword that matches one of the assigned links.), #7 (Screenshot of the "Nothing Found" section: This screenshot showcases the section that appears if the user enters a keyword that does not match any of the assigned links.), #8 (Screenshot of the Destionation Page: This screenshot showcases the destionation page that appears if the user is unable to find a pre-existing solution. Note, the plugin does not include contact form functionality.)
You can look at the official readme.txt

letmehelp/letmehelp.php Passed 13 tests

"LetMeHelp - Support & Help Desk Assistant" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
111 characters long description:
This plugin helps to reduce support reqests, by showing possible help links before making a new support reqest.

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
Success! There were no dangerous files found in this plugin2,323 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP233891,2791,888
JSON200429
CSS4004
JavaScript3012

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity15.69
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity3.07
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes17.69%
Methods96
▷ Static methods4041.67%
▷ Public methods7982.29%
▷ Protected methods00.00%
▷ Private methods1717.71%
Functions32
▷ Named functions26.25%
▷ Anonymous functions3093.75%
Constants15
▷ Global constants533.33%
▷ Class constants1066.67%
▷ Public constants10100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected