84% hybrid-chat

Code Review | Live Chat (+ Chatbots) with Slack for Wordpress

WordPress plugin Live Chat (+ Chatbots) with Slack for Wordpress scored 84% from 54 tests.

About plugin

  • Plugin page: hybrid-chat
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.5
  • WordPress version: 6.3.1
  • First release: Jan 22, 2019
  • Latest release: Aug 25, 2020
  • Number of updates: 10
  • Update frequency: every 58.6 days
  • Top authors: hybridchat (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

80+ active / 2,688 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
Install script ran successfully

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

Server-side resources used by Live Chat (+ Chatbots) with Slack for Wordpress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.31 ▼3.90
Dashboard /wp-admin3.33 ▲0.0247.24 ▼18.25
Posts /wp-admin/edit.php3.38 ▲0.0255.69 ▲10.21
Add New Post /wp-admin/post-new.php5.91 ▲0.0296.64 ▼2.90
Media Library /wp-admin/upload.php3.25 ▲0.0232.24 ▼4.13
Hybrid.Chat /wp-admin/options-general.php?page=aFhfc_options3.2232.84

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Live Chat (+ Chatbots) with Slack for Wordpress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8314.42 ▲0.122.69 ▲0.5450.21 ▲1.97
Dashboard /wp-admin2,207 ▲195.85 ▲0.85121.05 ▲2.4047.94 ▲2.56
Posts /wp-admin/edit.php2,096 ▲71.98 ▼0.0649.30 ▲7.4952.57 ▲14.62
Add New Post /wp-admin/post-new.php1,414 ▼11917.91 ▼3.28697.45 ▼62.8159.40 ▼14.73
Media Library /wp-admin/upload.php1,395 ▲104.12 ▼0.08110.57 ▼27.0346.15 ▼7.48
Hybrid.Chat /wp-admin/options-general.php?page=aFhfc_options8402.1734.5241.31

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/hybrid-chat/Hybrid_Chat.php:59
    • > PHP Notice
      Undefined variable: plugin_id in wp-content/plugins/hybrid-chat/options.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/hybrid-chat/options.php:7
    • > PHP Notice
      Undefined variable: plugin_id in wp-content/plugins/hybrid-chat/options.php on line 6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

hybrid-chat/Hybrid_Chat.php 92% from 13 tests

Analyzing the main PHP file in "Live Chat (+ Chatbots) with Slack for Wordpress" version 1.0
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("hybrid-chat.php" instead of "Hybrid_Chat.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected89 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP381689

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.68
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods5100.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There were not PNG files found in your plugin