77% quick-whatsapp

Code Review | Simple Webchat

WordPress plugin Simple Webchat scored77%from 54 tests.

About plugin

  • Plugin page: quick-whatsapp
  • Plugin version: 3.3.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3.1
  • WordPress version: 6.3.1
  • First release: Oct 18, 2017
  • Latest release: Oct 10, 2023
  • Number of updates: 66
  • Update frequency: every 33.1 days
  • Top authors: Annubis (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

2,000+ active /55,861 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Simple Webchat
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0240.39 ▼3.38
Dashboard /wp-admin3.31 ▲0.0153.59 ▲0.78
Posts /wp-admin/edit.php3.36 ▲0.0148.66 ▼4.73
Add New Post /wp-admin/post-new.php5.89 ▲0.0193.18 ▼0.00
Media Library /wp-admin/upload.php3.24 ▲0.0140.48 ▲4.56
Quick WhatsApp /wp-admin/options-general.php?page=QWA_quickwhatsapp3.2036.41

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Simple Webchat
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲1014.39 ▲0.151.69 ▼0.5940.45 ▼4.33
Dashboard /wp-admin2,202 ▲255.57 ▼0.0987.47 ▼4.4240.85 ▼0.34
Posts /wp-admin/edit.php2,110 ▲101.96 ▼0.0734.37 ▼5.7235.32 ▼4.88
Add New Post /wp-admin/post-new.php1,532 ▲623.55 ▼0.23667.04 ▼55.5056.73 ▲1.77
Media Library /wp-admin/upload.php1,407 ▲74.18 ▼0.02107.63 ▲4.5244.51 ▲0.33
Quick WhatsApp /wp-admin/options-general.php?page=QWA_quickwhatsapp1,3211.8229.3546.52

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
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/quick-whatsapp/css/quick-whatsapp-floating-button.php
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/quick-whatsapp/whatsapp-shortcode-chat.php:113
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quick-whatsapp/whatsapp-floating-button.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/quick-whatsapp/simple-webchat-whatsapp-shortcode-gruppe.php:43
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/quick-whatsapp/whatsapp-shortcode-sharing.php:121
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/quick-whatsapp/whatsapp-standard.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quick-whatsapp/whatsapp-button-after-addtocart.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes: Please take inspiration from this readme.txt

quick-whatsapp/simple-webchat.php 77% from 13 tests

The main file in "Simple Webchat" v. 3.3.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.0.1" instead of "3.5")
  • Main file name: The principal plugin file should be the same as the plugin slug ("quick-whatsapp.php" instead of "simple-webchat.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 185 characters long)

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
Everything looks great! No dangerous files found in this plugin3,678 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
CSS21,23392,571
PHP115084261,107

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were 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
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%
Functions32
▷ Named functions32100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
11 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/whatsapp-floatingbutton-w.png2.28KB1.41KB▼ 38.23%
images/whatsapp-chat-clear.png3.78KB1.83KB▼ 51.70%
images/leer.png0.91KB0.09KB▼ 89.72%
images/whatsapp-gruppe.png11.70KB4.29KB▼ 63.30%
images/whatsapp-chat-creativ.png5.90KB2.56KB▼ 56.59%