84% useresponse-live-chat

Code Review | UseResponse Live Chat

WordPress plugin UseResponse Live Chat scored 84% from 54 tests.

About plugin

  • Plugin page: useresponse-live-...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.1
  • WordPress version: 6.3.1
  • First release: Mar 25, 2019
  • Latest release: Mar 25, 2019
  • Number of updates: 8
  • Update frequency: every 0.6 days
  • Top authors: useresponse (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 604 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
Installer ran successfully

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

An overview of server-side resources used by UseResponse Live Chat
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.60 ▼3.31
Dashboard /wp-admin3.32 ▲0.0248.11 ▼6.17
Posts /wp-admin/edit.php3.37 ▲0.0249.46 ▲0.32
Add New Post /wp-admin/post-new.php5.90 ▲0.0291.84 ▼6.84
Media Library /wp-admin/upload.php3.24 ▲0.0231.26 ▼3.59

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

UseResponse Live Chat: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲8013.67 ▼0.711.65 ▼0.3038.94 ▼7.18
Dashboard /wp-admin2,221 ▲295.83 ▲0.8897.18 ▼12.3478.40 ▲38.13
Posts /wp-admin/edit.php2,104 ▲151.98 ▼0.0438.11 ▼5.0533.87 ▼0.27
Add New Post /wp-admin/post-new.php1,527 ▼1523.37 ▲5.31706.77 ▲83.1259.35 ▼1.57
Media Library /wp-admin/upload.php1,400 ▲94.10 ▼0.1394.72 ▼3.3069.24 ▲23.18

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/useresponse-live-chat/useresponse-live-chat.php:10

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)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: useresponse, livechat, helpdesk, chat for support, chat for website...

useresponse-live-chat/useresponse-live-chat.php Passed 13 tests

"UseResponse Live Chat" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
23 characters long description:
Add chat widget to site

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin71 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP111771

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants0
▷ Global constants00.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.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
ur_logo.png2.19KB2.25KB0.00%
ur_ico.png2.62KB1.04KB▼ 60.33%
sources.png9.59KB9.97KB0.00%