84% creame-whatsapp-me

Code Review | Joinchat

WordPress plugin Joinchat scored84%from 54 tests.

About plugin

  • Plugin page: creame-whatsapp-me
  • Plugin version: 5.0.15
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.0-6.4
  • WordPress version: 6.3.1
  • First release: Feb 12, 2018
  • Latest release: Nov 16, 2023
  • Number of updates: 195
  • Update frequency: every 10.9 days
  • Top authors: creapuntome (68.72%)pacotole (31.79%)

Code review

54 tests

User reviews

179 reviews

Install metrics

600,000+ active /9,308,360 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.59MB] [CPU: ▼4.08ms] Passed 4 tests

An overview of server-side resources used by Joinchat
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.87 ▲0.4142.95 ▲1.05
Dashboard /wp-admin3.99 ▲0.6550.48 ▼12.01
Posts /wp-admin/edit.php4.05 ▲0.6950.15 ▲6.25
Add New Post /wp-admin/post-new.php6.55 ▲0.6686.09 ▼9.72
Media Library /wp-admin/upload.php3.86 ▲0.6338.54 ▲4.35
Welcome to Joinchat /wp-admin/admin.php?page=joinchat-onboard3.8334.96
Joinchat /wp-admin/admin.php?page=joinchat3.8032.95

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 74 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Joinchat: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲3614.01 ▼0.271.72 ▼0.3343.70 ▼0.03
Dashboard /wp-admin2,222 ▲455.53 ▼0.1589.40 ▼26.0039.94 ▼12.79
Posts /wp-admin/edit.php2,133 ▲331.98 ▲0.0438.70 ▲1.0033.80 ▼2.70
Add New Post /wp-admin/post-new.php1,688 ▲15323.70 ▼1.65628.60 ▼29.8648.58 ▼20.47
Media Library /wp-admin/upload.php1,430 ▲274.22 ▲0.02101.38 ▲2.0242.02 ▼1.13
Welcome to Joinchat /wp-admin/admin.php?page=joinchat-onboard8881.9437.2655.70
Joinchat /wp-admin/admin.php?page=joinchat8881.8737.1428.79

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

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
Good news, no errors were detected

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 have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Core\\Common\\Modules\\Finder\\Base_Category' not found in wp-content/plugins/creame-whatsapp-me/includes/class-joinchat-elementor-finder.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
You can look at the official readme.txt

creame-whatsapp-me/joinchat.php 92% from 13 tests

The main PHP file in "Joinchat" ver. 5.0.15 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("creame-whatsapp-me.php" instead of "joinchat.php")

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 plugin9,230 lines of code in 59 files:
LanguageFilesBlank linesComment linesLines of code
CSS14332103,121
PHP281,1062,0513,118
JavaScript152164892,896
JSON10094
SVG1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity24.39
▷ Minimum class complexity1.00
▷ Maximum class complexity76.00
Average method complexity3.05
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
Methods188
▷ Static methods3820.21%
▷ Public methods17090.43%
▷ Protected methods00.00%
▷ Private methods189.57%
Functions10
▷ Named functions220.00%
▷ Anonymous functions880.00%
Constants9
▷ Global constants666.67%
▷ Class constants333.33%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
8 compressed PNG files occupy 0.33MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/onboard-01.png9.52KB10.63KB0.00%
admin/img/onboard-02.png31.92KB33.67KB0.00%
admin/img/onboard-04.png12.21KB12.20KB0.07%
admin/img/qr.png3.52KB3.49KB▼ 1.00%
admin/img/onboard-05.png11.46KB11.44KB0.17%