84% hiver-chat

Code Review | Hiver Chat

WordPress plugin Hiver Chat scored84%from 54 tests.

About plugin

  • Plugin page: hiver-chat
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.9
  • WordPress version: 6.3.1
  • First release: Jan 23, 2022
  • Latest release: Jan 31, 2022
  • Number of updates: 6
  • Update frequency: every 2.8 days
  • Top authors: hiverapp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /334 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

A check of server-side resources used by Hiver Chat
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.89 ▼2.98
Dashboard /wp-admin3.32 ▲0.0247.00 ▼2.22
Posts /wp-admin/edit.php3.38 ▲0.0149.23 ▼4.87
Add New Post /wp-admin/post-new.php5.91 ▲0.0182.39 ▼12.25
Media Library /wp-admin/upload.php3.25 ▲0.0135.39 ▲0.26
Hiver Chat /wp-admin/options-general.php?page=hiver-chat3.2131.95

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Hiver Chat
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.37 ▲0.222.21 ▲0.2942.35 ▼0.63
Dashboard /wp-admin2,199 ▲225.58 ▼0.0484.40 ▼1.5438.66 ▼6.08
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0237.82 ▼0.2937.32 ▼1.93
Add New Post /wp-admin/post-new.php1,548 ▲1723.36 ▲0.05655.83 ▼35.6649.22 ▼9.16
Media Library /wp-admin/upload.php1,401 ▲14.19 ▼0.0697.51 ▼10.4341.02 ▼3.90
Hiver Chat /wp-admin/options-general.php?page=hiver-chat8422.0526.5125.34

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/hiver-chat/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hiver-chat/hiverchat.php:22

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 issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: hiver, booking, bot, appointment, support bot...

hiver-chat/hiverchat.php 92% from 13 tests

The entry point to "Hiver Chat" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("hiver-chat.php" instead of "hiverchat.php")

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
No dangerous file extensions were detected152 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP21412120
Markdown111032

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
No PNG images were found in this plugin