10% keybe-widget-chat

Code Review | Keybe Widget Chat

WordPress plugin Keybe Widget Chat scored10%from 54 tests.

About plugin

  • Plugin page: keybe-widget-chat
  • Plugin version: 0.1
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.1
  • WordPress version: 6.3.1
  • First release: Jan 26, 2023
  • Latest release: Jan 26, 2023
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: keybe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /389 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/keybe-widget-chat/keybe-widget-chat.php+22
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.97MB] [CPU: ▼60.35ms] Passed 4 tests

Server-side resources used by Keybe Widget Chat
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.02 ▼1.446.00 ▼41.87
Dashboard /wp-admin2.05 ▼1.306.30 ▼59.46
Posts /wp-admin/edit.php2.05 ▼1.316.57 ▼43.96
Add New Post /wp-admin/post-new.php2.05 ▼3.845.74 ▼96.10
Media Library /wp-admin/upload.php2.05 ▼1.186.30 ▼31.84
keybe Widget Chat /wp-admin/options-general.php?page=keybe-widget-chat2.056.11

Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] 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
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Keybe Widget Chat: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.69 ▲0.341.89 ▼0.0843.33 ▼2.33
Dashboard /wp-admin2,202 ▲285.55 ▼0.0786.87 ▼13.0741.56 ▼3.25
Posts /wp-admin/edit.php2,104 ▲41.94 ▼0.0640.44 ▲3.7237.35 ▼1.61
Add New Post /wp-admin/post-new.php1,529 ▲323.66 ▲0.38630.60 ▼48.7253.95 ▼2.63
Media Library /wp-admin/upload.php1,407 ▲104.19 ▼0.0197.59 ▼6.3447.40 ▲4.85
keybe Widget Chat /wp-admin/options-general.php?page=keybe-widget-chat7992.0024.6525.82

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/keybe-widget-chat/keybe-widget-chat.php+22
    Trying to access array offset on value of type bool
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=keybe-widget-chat
    • > Notice in wp-content/plugins/keybe-widget-chat/includes/settings-page.php+29
    Trying to access array offset on value of type bool

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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: whatsapp, omnichannel, sales, chat, keybe

keybe-widget-chat/keybe-widget-chat.php 92% from 13 tests

The principal PHP file in "Keybe Widget Chat" v. 0.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "6.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin57 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3122257

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
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
PNG images were not found in this plugin