83% fast-live-chat

Code Review | Fast Live Chat

WordPress plugin Fast Live Chat scored83%from 54 tests.

About plugin

  • Plugin page: fast-live-chat
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.7.3
  • WordPress version: 6.3.1
  • First release: Mar 13, 2017
  • Latest release: Mar 18, 2017
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: mrkindy (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /4,803 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.74ms] Passed 4 tests

An overview of server-side resources used by Fast Live Chat
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.94 ▲2.51
Dashboard /wp-admin3.33 ▲0.0345.79 ▼11.85
Posts /wp-admin/edit.php3.38 ▲0.0250.55 ▲2.43
Add New Post /wp-admin/post-new.php5.91 ▲0.0297.13 ▼0.05
Media Library /wp-admin/upload.php3.25 ▲0.0241.63 ▲6.83

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Fast Live Chat
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲8013.70 ▼0.571.69 ▼0.0541.05 ▲3.90
Dashboard /wp-admin2,221 ▲334.94 ▲0.0396.82 ▼9.1079.77 ▲35.61
Posts /wp-admin/edit.php2,104 ▲152.02 ▼0.1639.03 ▲1.3733.73 ▲2.70
Add New Post /wp-admin/post-new.php1,680 ▲14722.53 ▼0.79682.20 ▲2.1755.06 ▼3.37
Media Library /wp-admin/upload.php1,400 ▲94.19 ▲0.0199.93 ▼3.1175.59 ▲35.26

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 4× PHP files output text when accessed directly:
    • > /wp-content/plugins/fast-live-chat/admin-option.php
    • > /wp-content/plugins/fast-live-chat/messanger-live-chat.php
    • > /wp-content/plugins/fast-live-chat/init.php
    • > /wp-content/plugins/fast-live-chat/footer-message.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

fast-live-chat/messanger-live-chat.php 85% from 13 tests

"Fast Live Chat" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("fast-live-chat.php" instead of "messanger-live-chat.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected889 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP5162687781
PO File24049108

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.95
Average class complexity134.00
▷ Minimum class complexity134.00
▷ Maximum class complexity134.00
Average method complexity4.80
▷ Minimum method complexity1.00
▷ Maximum method complexity77.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods35
▷ Static methods925.71%
▷ Public methods3394.29%
▷ Protected methods25.71%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants110.00%
▷ Class constants990.00%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon.png3.37KB0.89KB▼ 73.51%
images/fb-messenger.png6.22KB2.50KB▼ 59.83%