89% lime-talk-live-chat

Code Review | Lime Talk Live Chat

WordPress plugin Lime Talk Live Chat scored89%from 54 tests.

About plugin

  • Plugin page: lime-talk-live-chat
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jul 7, 2016
  • Latest release: Apr 9, 2023
  • Number of updates: 20
  • Update frequency: every 123.8 days
  • Top authors: limetalk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /2,558 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
This plugin's installer ran successfully

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

Server-side resources used by Lime Talk Live Chat
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.42 ▼0.0526.08 ▼20.03
Dashboard /wp-admin3.34 ▲0.0348.19 ▼2.45
Posts /wp-admin/edit.php3.39 ▲0.0352.10 ▲1.50
Add New Post /wp-admin/post-new.php5.92 ▲0.0393.64 ▼12.28
Media Library /wp-admin/upload.php3.26 ▲0.0335.88 ▼2.86

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Lime Talk Live Chat
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲9113.18 ▼1.201.88 ▲0.0039.61 ▼4.04
Dashboard /wp-admin2,218 ▲305.89 ▲0.9896.65 ▼3.3339.76 ▼2.24
Posts /wp-admin/edit.php2,101 ▲122.06 ▲0.0539.76 ▼2.0235.06 ▼0.41
Add New Post /wp-admin/post-new.php1,552 ▲2418.06 ▼0.06600.06 ▼74.8770.18 ▲11.31
Media Library /wp-admin/upload.php1,397 ▲64.20 ▲0.00100.48 ▼5.2643.14 ▼2.15

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: Too many tags (39 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

lime-talk-live-chat/limetalk.php 92% from 13 tests

"Lime Talk Live Chat" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("lime-talk-live-chat.php" instead of "limetalk.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin244 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP26411241
CSS1003

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity2.50
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.23
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes150.00%
▷ Concrete classes150.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods1292.31%
▷ Protected methods17.69%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.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
PNG images were not found in this plugin