10% yalst-live-chat

Code Review | yalst Live Chat

WordPress plugin yalst Live Chat scored10%from 54 tests.

About plugin

  • Plugin page: yalst-live-chat
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.7.1
  • WordPress version: 6.3.1
  • First release: Jul 13, 2015
  • Latest release: Apr 11, 2016
  • Number of updates: 24
  • Update frequency: every 23.6 days
  • Top authors: visisoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,179 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/yalst-live-chat/plugin_files/widget/yalst-widget.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; yalst_widget has a deprecated constructor

Server metrics [RAM: ▼1.93MB] [CPU: ▼48.72ms] Passed 4 tests

An overview of server-side resources used by yalst Live Chat
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.45 ▼37.95
Dashboard /wp-admin2.08 ▼1.225.72 ▼40.64
Posts /wp-admin/edit.php2.08 ▼1.275.50 ▼38.97
Add New Post /wp-admin/post-new.php2.08 ▼3.816.14 ▼77.31
Media Library /wp-admin/upload.php2.08 ▼1.155.09 ▼30.49
Integration /wp-admin/admin.php?page=yalst_integration2.086.53
Registration /wp-admin/admin.php?page=yalst_registration2.086.67

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 7 new options
New WordPress options
widget_live_chat
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for yalst Live Chat
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲8413.16 ▼1.491.76 ▼0.0242.03 ▼3.05
Dashboard /wp-admin2,236 ▲484.91 ▼0.95102.67 ▼1.2470.33 ▲31.84
Posts /wp-admin/edit.php2,125 ▲362.09 ▲0.0639.64 ▲2.8532.73 ▼3.52
Add New Post /wp-admin/post-new.php1,702 ▲16924.78 ▲1.58684.21 ▲8.6358.77 ▼4.58
Media Library /wp-admin/upload.php1,418 ▲304.28 ▲0.10113.12 ▲13.6344.61 ▲3.07
Integration /wp-admin/admin.php?page=yalst_integration1,2472.0733.0531.07
Registration /wp-admin/admin.php?page=yalst_registration1,1052.2529.8624.77

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/yalst-live-chat/plugin_files/widget/yalst-widget.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; yalst_widget has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_live_chat
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=yalst_registration
    • > Deprecated in wp-content/plugins/yalst-live-chat/plugin_files/widget/yalst-widget.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; yalst_widget has a deprecated constructor
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=yalst_registration
    • > Deprecated in wp-content/plugins/yalst-live-chat/plugin_files/widget/yalst-widget.php+71
    Function create_function() is deprecated
    • > GET request to /wp-admin/admin.php?page=yalst_integration
    • > Notice in wp-content/plugins/yalst-live-chat/plugin_files/classes/IntegrationHelper.class.php+10
    Undefined index: yalstReiterIntegrationInput

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/yalst-live-chat/plugin_files/widget/yalst-widget.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/yalst-live-chat/plugin_files/widget/yalst-widget.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (Wordpress-Plugin: Eine Einstellungsseite mit Einbindungscode. (Wordpress plugin: A setting page with integration code.)), #2 (Operator-Konsole: Der Arbeitsplatz der Operatoren mit Live-Besucher-Monitor. (Operator Console: The workplace of operators with live visitors monitor.)), #3 (Chatfenster: Das yalst-Chatfenster auf Besucherseite mit minimalen Anpassungen. (Chat window: The yalst chat window on the visitor side with minimal adjustments.)), #4 (Klickpfadstatistik: Eine von mehr als 60 grafisch aufbereiteten und exportierbaren Liveauswertungen und -statistiken. (Clickstream statistics: One of over 60 graphically prepared and exportable Live evaluations and statistics.)), #5 (Arbeitszeitstatistik: Eine von mehr als 60 grafisch aufbereiteten und exportierbaren Liveauswertungen und -statistiken. (Working time statistics: One of over 60 graphically prepared and exportable Live evaluations and statistics.))
  • Tags: There are too many tags (21 tag instead of maximum 10)
You can look at the official readme.txt

yalst-live-chat/wp-yalst-live-chat-software.php 69% from 13 tests

The main file in "yalst Live Chat" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Description: Keep the plugin description shorter than 140 characters (currently 150 characters long)
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Main file name: The principal plugin file should be the same as the plugin slug ("yalst-live-chat.php" instead of "wp-yalst-live-chat-software.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,167 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP813843582
PO File282142275
CSS1431210
JavaScript183100

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity5.71
▷ Minimum class complexity1.00
▷ Maximum class complexity21.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes114.29%
▷ Concrete classes685.71%
▷ Final classes116.67%
Methods24
▷ Static methods312.50%
▷ Public methods1979.17%
▷ Protected methods312.50%
▷ Private methods28.33%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.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
12 PNG files occupy 0.41MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
plugin_files/images/tabchat.png8.01KB2.06KB▼ 74.28%
screenshot-1.png43.36KB19.95KB▼ 53.98%
plugin_files/images/reiter.png4.87KB1.02KB▼ 78.98%
screenshot-2.png169.49KB49.10KB▼ 71.03%
plugin_files/images/widget.png6.90KB1.57KB▼ 77.20%