84% xenioo-web-chat

Code Review | Xenioo Web Chat

WordPress plugin Xenioo Web Chat scored 84% from 54 tests.

About plugin

  • Plugin page: xenioo-web-chat
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.6
  • WordPress version: 6.3.1
  • First release: Jan 7, 2021
  • Latest release: Jan 7, 2021
  • Number of updates: 7
  • Update frequency: every 1.1 days
  • Top authors: xenioo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 2,255 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.97ms] Passed 4 tests

A check of server-side resources used by Xenioo Web Chat
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0140.39 ▼3.37
Dashboard /wp-admin3.32 ▲0.0242.13 ▼8.49
Posts /wp-admin/edit.php3.37 ▲0.0146.77 ▼0.10
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.07 ▼3.90
Media Library /wp-admin/upload.php3.24 ▲0.0136.49 ▲3.08
Xenioo /wp-admin/options-general.php?page=xenioo3.2133.92

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Xenioo Web Chat
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.18 ▼1.171.83 ▼0.1643.63 ▼6.61
Dashboard /wp-admin2,213 ▲255.84 ▼0.01107.66 ▲2.0335.99 ▼8.67
Posts /wp-admin/edit.php2,093 ▲42.06 ▲0.0542.00 ▲7.8235.47 ▼0.65
Add New Post /wp-admin/post-new.php1,537 ▲2323.29 ▲5.71662.22 ▼21.4655.05 ▼1.35
Media Library /wp-admin/upload.php1,389 ▲44.23 ▼0.01107.09 ▲5.4446.74 ▲1.37
Xenioo /wp-admin/options-general.php?page=xenioo7932.0628.2229.52

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/xenioo-web-chat/xenioo.php:111

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: virtual assistant, engagement, ai, chatbots, leads...

xenioo-web-chat/xenioo.php 92% from 13 tests

The main PHP file in "Xenioo Web Chat" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("xenioo-web-chat.php" instead of "xenioo.php")

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
No dangerous file extensions were detected105 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12810105

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.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