64% talkino

Code Review | Talkino - WordPress Chat Plugin

WordPress plugin Talkino - WordPress Chat Plugin scored64%from 54 tests.

About plugin

  • Plugin page: talkino
  • Plugin version: 2.0.7
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.2.1
  • WordPress version: 6.3.1
  • First release: Sep 13, 2022
  • Latest release: May 19, 2023
  • Number of updates: 46
  • Update frequency: every 5.4 days
  • Top authors: traxconn (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /1,203 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲1.27MB] [CPU: ▲4.58ms] Passed 4 tests

A check of server-side resources used by Talkino - WordPress Chat Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.60 ▲1.1456.96 ▲17.04
Dashboard /wp-admin4.62 ▲1.3257.99 ▲4.00
Posts /wp-admin/edit.php4.66 ▲1.3058.51 ▲7.48
Add New Post /wp-admin/post-new.php7.26 ▲1.3895.74 ▼4.85
Media Library /wp-admin/upload.php4.55 ▲1.3250.76 ▲11.69
Add New /wp-admin/post-new.php?post_type=talkino_agents4.6557.95
Extensions /wp-admin/edit.php?post_type=talkino_agents&page=talkino_extensions_page4.5344.32
All Agents /wp-admin/edit.php?post_type=talkino_agents4.5848.55
Settings /wp-admin/edit.php?post_type=talkino_agents&page=talkino_settings_page4.5244.82

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 72 new files
Database: 1 new table, 77 new options
New tables
wp_talkino_log
New WordPress options
talkino_chatbox_activation
talkino_global_schedule_online_status
talkino_credit
talkino_recaptcha_status
talkino_chatbox_icon
talkino_chatbox_offline_theme_color
talkino_sender_message
talkino_chatbox_animation
talkino_show_on_404
talkino_chatbox_offline_icon_color
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Talkino - WordPress Chat Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,991 ▲20513.33 ▼1.0510.30 ▲8.3244.63 ▲0.56
Dashboard /wp-admin2,228 ▲485.64 ▼0.0390.35 ▼1.8241.18 ▼2.82
Posts /wp-admin/edit.php2,133 ▲512.00 ▼0.0235.32 ▼0.7937.18 ▲0.10
Add New Post /wp-admin/post-new.php1,567 ▲2223.25 ▲0.08638.72 ▼54.3650.81 ▼10.22
Media Library /wp-admin/upload.php1,430 ▲304.39 ▲0.08101.30 ▲2.2644.82 ▼1.16
Add New /wp-admin/post-new.php?post_type=talkino_agents1,8633.8466.46108.19
Extensions /wp-admin/edit.php?post_type=talkino_agents&page=talkino_extensions_page1,0722.1427.5660.24
All Agents /wp-admin/edit.php?post_type=talkino_agents1,1352.3733.7630.08
Settings /wp-admin/edit.php?post_type=talkino_agents&page=talkino_settings_page1,0592.0826.9635.43

Uninstaller [IO: ▲0.93MB] [DB: ▲0.01MB] 25% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin has failed uninstalling correctly, leaving 72 files (0.93MB) in the plugin directory
    • (new file) LICENSE.txt
    • (new file) assets/images/agent-telegram-icon.png
    • (new file) assets/css/dashicons-picker.css
    • (new file) assets/images/agent-phone-icon.png
    • (new file) assets/css/talkino-admin.css
    • (new file) assets/images/agent-messenger-icon.png
    • (new file) assets/images/agent-whatsapp-icon.png
    • (new file) assets/images/default.png
    • (new file) assets/images/agent-email-icon.png
    • (new file) assets/css/talkino-frontend.css
    • ...
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_talkino_log
  • Zombie WordPress options detected upon uninstall: 77 options
    • talkino_sender_email
    • talkino_chatbox_button_color
    • talkino_agent_channel_text_color
    • talkino_receive_weekly_report
    • talkino_chatbox_title_color
    • talkino_agent_field_hover_background_color
    • talkino_bubble_background_color
    • talkino_recaptcha_status
    • talkino_typebot_status
    • talkino_ga_status
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=talkino_agents&page=talkino_settings_page
    • > Network (severe)
    wp-content/plugins/talkino/assets/js/talkino-report.js?ver=2.0.7 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: telegram, whatsapp, chat, facebook messenger, click to chat

talkino/talkino.php 85% from 13 tests

The main file in "Talkino - WordPress Chat Plugin" v. 2.0.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 163 characters long)
  • Requires PHP: Required version does not match the one declared in readme.txt ("7.4" instead of "7.3")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin8,102 lines of code in 50 files:
LanguageFilesBlank linesComment linesLines of code
PHP432,2642,9296,566
JavaScript433632999
CSS310428537

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity33.58
▷ Minimum class complexity1.00
▷ Maximum class complexity275.00
Average method complexity4.57
▷ Minimum method complexity1.00
▷ Maximum method complexity71.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes24
▷ Abstract classes00.00%
▷ Concrete classes24100.00%
▷ Final classes00.00%
Methods219
▷ Static methods135.94%
▷ Public methods20493.15%
▷ Protected methods00.00%
▷ Private methods156.85%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
19 PNG files occupy 0.41MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/default.png0.96KB1.07KB0.00%
assets/images/phone-icon.png27.45KB7.65KB▼ 72.13%
assets/images/shortcode-email-icon.png50.29KB17.93KB▼ 64.34%
assets/images/shortcode-whatsapp-icon.png22.46KB8.58KB▼ 61.81%
assets/images/shortcode-phone-icon.png36.40KB12.53KB▼ 65.59%