73% qnachat

Code Review | QNA Chat - All-in-One Solution for Live Chat, Tag-Based FAQs, and Customer Support

WordPress plugin QNA Chat - All-in-One Solution for Live Chat, Tag-Based FAQs, and Customer Support scored73%from 54 tests.

About plugin

  • Plugin page: qnachat
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.4
  • WordPress version: 6.3.1
  • First release: Nov 11, 2023
  • Latest release: Nov 11, 2023
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: aleswebs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /11 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.20MB] [CPU: ▼2.93ms] Passed 4 tests

An overview of server-side resources used by QNA Chat - All-in-One Solution for Live Chat, Tag-Based FAQs, and Customer Support
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2743.13 ▲5.46
Dashboard /wp-admin3.50 ▲0.1648.52 ▼12.08
Posts /wp-admin/edit.php3.62 ▲0.2647.63 ▼1.02
Add New Post /wp-admin/post-new.php6.08 ▲0.2092.97 ▼4.08
Media Library /wp-admin/upload.php3.43 ▲0.2038.33 ▲5.86
FAQs Settings /wp-admin/admin.php?page=qnac_faqs3.4633.40
Advanced Settings /wp-admin/admin.php?page=qnac_advanced_settings3.4738.94
QnAChat /wp-admin/admin.php?page=qnac3.4132.07

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 65 new files
Database: 1 new table, 9 new options
New tables
wp_qnac_chats
New WordPress options
widget_recent-comments
qnac_cu
theysaidso_admin_options
qnac_advanced_settings
db_upgraded
qnac_settings
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for QNA Chat - All-in-One Solution for Live Chat, Tag-Based FAQs, and Customer Support
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,016 ▲25413.43 ▼1.059.40 ▲7.8351.84 ▲8.99
Dashboard /wp-admin2,251 ▲735.62 ▼0.2592.95 ▼13.8441.96 ▲0.15
Posts /wp-admin/edit.php2,156 ▲531.98 ▼0.0441.35 ▲0.2335.98 ▼2.38
Add New Post /wp-admin/post-new.php1,545 ▲1923.38 ▲0.50605.98 ▲17.3558.06 ▲6.31
Media Library /wp-admin/upload.php1,463 ▲604.23 ▼0.0798.11 ▼3.4840.97 ▲0.04
FAQs Settings /wp-admin/admin.php?page=qnac_faqs1,1031.6927.3626.03
Advanced Settings /wp-admin/admin.php?page=qnac_advanced_settings1,3553.3643.4164.57
QnAChat /wp-admin/admin.php?page=qnac1,3492.7650.3036.89

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_qnac_chats
  • This plugin does not fully uninstall, leaving 9 options in the database
    • can_compress_scripts
    • qnac_advanced_settings
    • qnac_cu
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • qnac_settings

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=qnac_faqs
    • > Warning in wp-content/plugins/qnachat/includes/faqs_settings.php+13
    Invalid argument supplied for foreach()
    • > GET request to /wp-admin/admin.php?page=qnac
    • > Notice in wp-content/plugins/qnachat/includes/chats_manager.php+12
    Undefined index: mute

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)
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Requires at least: Invalid plugin version format
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5 in qnachat/assets to your readme.txt
You can take inspiration from this readme.txt

qnachat/index.php 85% from 13 tests

"QNA Chat - All-in-One Solution for Live Chat, Tag-Based FAQs, and Customer Support" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("qnachat.php" instead of "index.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 176 characters long)

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 plugin5,033 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
PHP17171862,071
CSS43401,732
JavaScript58801,098
SVG1053132

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions51
▷ Named functions51100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 compressed PNG files occupy 0.13MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/user-info.png2.19KB2.17KB▼ 1.34%
assets/images/no-wifi.png1.24KB1.45KB0.00%
assets/images/name.png1.36KB1.67KB0.00%
assets/images/request.png1.75KB2.05KB0.00%
assets/images/bot.png14.94KB5.87KB▼ 60.69%