83% tp-chat-lite

Code Review | TP Chat Lite

WordPress plugin TP Chat Lite scored83%from 54 tests.

About plugin

  • Plugin page: tp-chat-lite
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.1-5.7.2
  • WordPress version: 6.3.1
  • First release: May 21, 2021
  • Latest release: May 21, 2021
  • Number of updates: 9
  • Update frequency: every 0.1 days
  • Top authors: trendyplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,153 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

An overview of server-side resources used by TP Chat Lite
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.13 ▼6.75
Dashboard /wp-admin3.32 ▲0.0250.22 ▼0.58
Posts /wp-admin/edit.php3.37 ▲0.0255.36 ▲5.15
Add New Post /wp-admin/post-new.php5.92 ▲0.0395.19 ▼2.35
Media Library /wp-admin/upload.php3.24 ▲0.0239.12 ▼0.41

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
tpcl_installed
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by TP Chat Lite
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,917 ▲15613.60 ▼0.7511.40 ▲9.5043.10 ▲0.23
Dashboard /wp-admin2,226 ▲465.80 ▲0.1493.11 ▲0.2540.66 ▼2.89
Posts /wp-admin/edit.php2,136 ▲302.25 ▲0.3040.23 ▲4.0536.42 ▲1.30
Add New Post /wp-admin/post-new.php1,561 ▲3518.12 ▼5.03652.01 ▼152.1149.48 ▼19.61
Media Library /wp-admin/upload.php1,425 ▲254.31 ▲0.20103.75 ▼13.2643.23 ▼8.69

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • tpcl_installed
    • widget_recent-comments
    • db_upgraded

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

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 5× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/tp-chat-lite/backend/admin_view.php
    • > /wp-content/plugins/tp-chat-lite/includes/tpcl-dynamic-style.php
    • > /wp-content/plugins/tp-chat-lite/tp-chat-lite.php
    • > /wp-content/plugins/tp-chat-lite/frontend/public_view.php
    • > /wp-content/plugins/tp-chat-lite/includes/tpcl-setting.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: share, social media, button, chat, contact...

tp-chat-lite/tp-chat-lite.php 77% from 13 tests

The main PHP script in "TP Chat Lite" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Description: Please don't use more than 140 characters for the plugin description (currently 163 characters long)
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("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
No dangerous file extensions were detected4,317 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
CSS4598403,832
SVG100268
PHP75665197
JavaScript2151620

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin