83% whelp-live-chat

Code Review | Whelp Live Chat

WordPress plugin Whelp Live Chat scored 83% from 54 tests.

About plugin

  • Plugin page: whelp-live-chat
  • Plugin version: 0.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.1
  • WordPress version: 6.3.1
  • First release: Apr 3, 2019
  • Latest release: Apr 3, 2019
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: whelpapp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 588 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.13ms] Passed 4 tests

An overview of server-side resources used by Whelp Live Chat
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.83 ▼3.31
Dashboard /wp-admin3.33 ▲0.0349.96 ▼11.39
Posts /wp-admin/edit.php3.38 ▲0.0251.43 ▼0.93
Add New Post /wp-admin/post-new.php5.91 ▲0.0295.60 ▲2.79
Media Library /wp-admin/upload.php3.25 ▲0.0237.63 ▼0.90

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Whelp Live Chat
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▼1013.65 ▲0.394.48 ▲2.2640.97 ▼5.05
Dashboard /wp-admin2,224 ▲295.88 ▲1.03107.52 ▲3.5882.81 ▲40.24
Posts /wp-admin/edit.php2,101 ▲121.98 ▼0.0433.87 ▼2.3932.32 ▼0.92
Add New Post /wp-admin/post-new.php1,537 ▲1823.40 ▲0.32697.22 ▲58.8861.57 ▲4.32
Media Library /wp-admin/upload.php1,394 ▲64.21 ▲0.04101.39 ▲0.3774.67 ▲29.64

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 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/whelp-live-chat/whelp.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt is a good inspiration

whelp-live-chat/whelp.php 85% from 13 tests

"Whelp Live Chat" version 0.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 143 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("whelp-live-chat.php" instead of "whelp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin136 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13736136

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.36
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/success.png2.51KB1.43KB▼ 42.93%
img/icon.png1.17KB0.74KB▼ 36.45%
img/logo.png8.93KB4.66KB▼ 47.89%