84% walkytalky

Code Review | Live Chat & Chatbot Plugin - WalkyTalky

WordPress plugin Live Chat & Chatbot Plugin - WalkyTalky scored 84% from 54 tests.

About plugin

  • Plugin page: walkytalky
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 21, 2022
  • Latest release: Apr 3, 2023
  • Number of updates: 6
  • Update frequency: every 48.5 days
  • Top authors: walkytalky (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 290 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.61MB] [CPU: ▼15.56ms] Passed 4 tests

A check of server-side resources used by Live Chat & Chatbot Plugin - WalkyTalky
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0642.25 ▼8.12
Dashboard /wp-admin3.37 ▲0.0746.14 ▼0.91
Posts /wp-admin/edit.php3.48 ▲0.1352.62 ▲4.90
Add New Post /wp-admin/post-new.php3.24 ▼2.6541.18 ▼55.35
Media Library /wp-admin/upload.php3.29 ▲0.0635.67 ▲2.16

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Live Chat & Chatbot Plugin - WalkyTalky
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,935 ▲18914.49 ▲0.191.95 ▲0.0939.72 ▼5.00
Dashboard /wp-admin2,338 ▲1474.85 ▼1.05110.76 ▲3.3544.32 ▼1.45
Posts /wp-admin/edit.php2,227 ▲1592.07 ▲0.0841.88 ▲4.8536.70 ▲1.21
Add New Post /wp-admin/post-new.php1,556 ▲3723.32 ▼0.18670.52 ▼17.6060.74 ▲1.92
Media Library /wp-admin/upload.php1,523 ▲1324.21 ▲0.0395.93 ▼10.7242.10 ▼3.44

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 8 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • walkytalky_site_id
    • theysaidso_admin_options
    • walkytalky_version
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

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
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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/walkytalky/walkytalky.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: chat plugin, live chat, walkytalky, walky talky, chat...

walkytalky/walkytalky.php 92% from 13 tests

The principal PHP file in "Live Chat & Chatbot Plugin - WalkyTalky" v. 1.1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

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
There were no executable files found in this plugin638 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP1512229416
SVG161198
HTML20119
JavaScript2073
CSS2042

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods2177.78%
▷ Protected methods27.41%
▷ Private methods414.81%
Functions5
▷ Named functions120.00%
▷ Anonymous functions480.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/walkytalky-wp/dist/img/icon-256x256.png35.29KB9.84KB▼ 72.11%