78% wln-chat

Code Review | WLN Chat Lite

WordPress plugin WLN Chat Lite scored 78% from 54 tests.

About plugin

  • Plugin page: wln-chat
  • Plugin version: 2.5.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.6
  • WordPress version: 6.3.1
  • First release: Nov 24, 2019
  • Latest release: Feb 7, 2021
  • Number of updates: 29
  • Update frequency: every 15.3 days
  • Top authors: betolima09 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,459 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

A check of server-side resources used by WLN Chat Lite
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.18 ▼6.40
Dashboard /wp-admin3.31 ▲0.0148.81 ▼1.29
Posts /wp-admin/edit.php3.36 ▲0.0149.28 ▲1.25
Add New Post /wp-admin/post-new.php5.89 ▲0.0193.90 ▲1.82
Media Library /wp-admin/upload.php3.23 ▲0.0134.18 ▼0.37

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for WLN Chat Lite
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲11013.66 ▼0.751.62 ▼0.3738.94 ▼11.40
Dashboard /wp-admin2,224 ▲365.89 ▲0.0195.10 ▼19.6683.36 ▲41.59
Posts /wp-admin/edit.php2,104 ▲152.15 ▲0.1739.95 ▲3.6738.05 ▲4.99
Add New Post /wp-admin/post-new.php1,536 ▲2218.37 ▲1.00695.94 ▲27.1059.28 ▲7.17
Media Library /wp-admin/upload.php1,406 ▲184.19 ▼0.08114.27 ▲17.9445.65 ▲1.97

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wln-chat/includes/gtag_event.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wln-chat/wln-chat-litle.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wln-chat/style/style.php:11

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: contato de cliente no site, chat no site, chat, app mensagens, contador de cliques...

wln-chat/wln-chat-litle.php 92% from 13 tests

The main file in "WLN Chat Lite" v. 2.5.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wln-chat.php" instead of "wln-chat-litle.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected209 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP44938209

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions4
▷ Named functions4100.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
4 PNG files occupy 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/botao-wln-whatsapp.png16.94KB1.70KB▼ 89.95%
images/icon.png15.89KB1.08KB▼ 93.21%
images/botao-wln-whatsapp-2.png17.15KB1.72KB▼ 89.97%
images/whatsapp-icone.png5.19KB2.40KB▼ 53.79%