84% weconnect

Code Review | Chatbots and Live (video) Chat for your Website

WordPress plugin Chatbots and Live (video) Chat for your Website scored84%from 54 tests.

About plugin

  • Plugin page: weconnect
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 25, 2020
  • Latest release: Jun 16, 2023
  • Number of updates: 19
  • Update frequency: every 60.4 days
  • Top authors: weconnectchat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /548 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Analyzing server-side resources used by Chatbots and Live (video) Chat for your Website
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.24 ▼5.69
Dashboard /wp-admin3.33 ▼0.0149.35 ▼15.05
Posts /wp-admin/edit.php3.38 ▲0.0249.22 ▼2.51
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.47 ▼7.42
Media Library /wp-admin/upload.php3.25 ▲0.0234.49 ▼2.76
WeConnect.chat /wp-admin/options-general.php?page=WeConnectchat3.2232.17

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
WeConnectchat-plugin-settings
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Chatbots and Live (video) Chat for your Website
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7214.41 ▲0.032.09 ▲0.4145.15 ▲3.01
Dashboard /wp-admin2,202 ▲255.65 ▼0.0289.32 ▼1.1338.51 ▼7.12
Posts /wp-admin/edit.php2,104 ▲72.04 ▲0.0440.52 ▲1.6535.27 ▲2.04
Add New Post /wp-admin/post-new.php1,548 ▲1723.31 ▼0.01665.65 ▲9.0648.28 ▼6.42
Media Library /wp-admin/upload.php1,407 ▲74.23 ▲0.0297.49 ▼5.8544.29 ▼0.41
WeConnect.chat /wp-admin/options-general.php?page=WeConnectchat8362.0425.0428.29

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • WeConnectchat-plugin-settings
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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 _e() in wp-content/plugins/weconnect/options.php:2

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 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Requires at least: Version not formatted correctly
  • Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6, #7 in weconnect/assets to your readme.txt
The official readme.txt might help

weconnect/weconnect.php Passed 13 tests

This is the main PHP file of "Chatbots and Live (video) Chat for your Website" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
40 characters long description:
A conversational messaging bot platform.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin94 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2481794

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity3.29
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
No PNG files were detected