84% chat-lite

Code Review | Chat Lite

WordPress plugin Chat Lite scored84%from 54 tests.

About plugin

  • Plugin page: chat-lite
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.5.1
  • WordPress version: 6.3.1
  • First release: Oct 8, 2020
  • Latest release: Oct 8, 2020
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: adiel987654554 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /400 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
Installer ran successfully

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

This is a short check of server-side resources used by Chat Lite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.23 ▲3.63
Dashboard /wp-admin3.32 ▲0.0246.67 ▼2.09
Posts /wp-admin/edit.php3.37 ▲0.0245.03 ▼2.22
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.20 ▼13.44
Media Library /wp-admin/upload.php3.25 ▲0.0236.52 ▼1.20
Whatsapp Lite /wp-admin/options-general.php?page=whatsapp_lite3.2130.00

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Chat Lite
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4314.23 ▼0.071.55 ▼0.0243.07 ▼1.05
Dashboard /wp-admin2,199 ▲195.65 ▲0.1191.79 ▲1.3135.86 ▼0.95
Posts /wp-admin/edit.php2,104 ▲11.99 ▲0.0536.38 ▼0.8536.78 ▲5.62
Add New Post /wp-admin/post-new.php1,531 ▲522.79 ▼0.22597.33 ▼16.2958.22 ▼8.62
Media Library /wp-admin/upload.php1,404 ▲104.22 ▼0.02100.56 ▲3.6241.84 ▼3.22
Whatsapp Lite /wp-admin/options-general.php?page=whatsapp_lite7932.0023.7924.62

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chat-lite/chat-lite.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: whatsapp chat, chat lite, whatsapp, whatsapp business

chat-lite/chat-lite.php 85% from 13 tests

The principal PHP file in "Chat Lite" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Domain Path: The domain path folder was not found ("/languages")

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
Success! There were no dangerous files found in this plugin70 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1342270

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected