78% cresta-whatsapp-chat

Code Review | Cresta Help Chat

WordPress plugin Cresta Help Chat scored78%from 54 tests.

About plugin

  • Plugin page: cresta-whatsapp-chat
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.4
  • WordPress version: 6.3.1
  • First release: Jan 5, 2018
  • Latest release: Nov 7, 2023
  • Number of updates: 123
  • Update frequency: every 17.3 days
  • Top authors: CrestaProject (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

10,000+ active /185,155 total downloads


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.18MB] [CPU: ▼2.28ms] Passed 4 tests

Server-side resources used by Cresta Help Chat
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1743.49 ▲1.80
Dashboard /wp-admin3.49 ▲0.1846.23 ▼4.13
Posts /wp-admin/edit.php3.60 ▲0.2449.33 ▲2.58
Add New Post /wp-admin/post-new.php6.07 ▲0.1886.82 ▼9.38
Media Library /wp-admin/upload.php3.41 ▲0.1836.84 ▲3.81

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Cresta Help Chat
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6114.22 ▼0.111.82 ▲0.2638.72 ▼3.38
Dashboard /wp-admin2,199 ▲185.63 ▼0.0989.48 ▼13.4836.02 ▼3.48
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0040.05 ▲1.6735.60 ▲3.96
Add New Post /wp-admin/post-new.php6,241 ▲4,71521.21 ▼1.79904.37 ▲249.3662.73 ▲6.59
Media Library /wp-admin/upload.php1,407 ▲44.15 ▼0.1398.10 ▼6.0243.41 ▼0.28
Cresta Help Chat /wp-admin/cresta-whatsapp-chat.php260.410.0714.26

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/cresta-whatsapp-chat/uninstall.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/cresta-whatsapp-chat.php
    • > Network (severe)
    wp-admin/cresta-whatsapp-chat.php - Failed to load resource: the server responded with a status of 404 (Not Found)


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Cresta Help Chat Settings Page), #2 (Cresta Help Chat floating button), #3 (Cresta Help Chat open floating button), #4 (Cresta Help Chat shortcode button), #5 (Cresta Help Chat open shortcode button)
The official readme.txt is a good inspiration

cresta-whatsapp-chat/cresta-whatsapp-chat.php 92% from 13 tests

The main file in "Cresta Help Chat" v. 1.3.2 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:
  • Description: The description should be shorter than 140 characters (currently 268 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,576 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions18100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
12 compressed PNG files occupy 0.32MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings