84% callbell-chat-widget

Code Review | Social Chat Widget (⚡ by Callbell)

WordPress plugin Social Chat Widget (⚡ by Callbell) scored84%from 54 tests.

About plugin

  • Plugin page: callbell-chat-widget
  • Plugin version: 0.1.7
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1
  • WordPress version: 6.3.1
  • First release: May 19, 2019
  • Latest release: Jan 26, 2023
  • Number of updates: 24
  • Update frequency: every 56.3 days
  • Top authors: callbell (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /18,456 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
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼8.03ms] Passed 4 tests

A check of server-side resources used by Social Chat Widget (⚡ by Callbell)
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.90 ▼0.42
Dashboard /wp-admin3.31 ▼0.0341.19 ▼16.28
Posts /wp-admin/edit.php3.36 ▲0.0143.22 ▼8.92
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.64 ▼6.50
Media Library /wp-admin/upload.php3.24 ▲0.0140.78 ▲6.61

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Social Chat Widget (⚡ by Callbell)
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,864 ▲10314.45 ▲0.091.82 ▲0.1345.28 ▲4.68
Dashboard /wp-admin2,245 ▲685.56 ▼0.1185.33 ▼0.2879.46 ▲38.97
Posts /wp-admin/edit.php2,150 ▲501.98 ▲0.0333.98 ▼2.8431.21 ▼1.61
Add New Post /wp-admin/post-new.php1,727 ▲19921.99 ▼1.14619.81 ▼26.4944.40 ▼2.41
Media Library /wp-admin/upload.php1,444 ▲414.22 ▲0.08103.30 ▼17.3771.21 ▲21.78

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/callbell-chat-widget/index.php:9

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 96% from 29 tests

readme.txt Passed 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
6 plugin tags: whatsapp button, whatsapp, free whatsapp click-to-chat, whatsapp chat, whatsapp plugin...

callbell-chat-widget/index.php 92% from 13 tests

"Social Chat Widget (⚡ by Callbell)" version 0.1.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("callbell-chat-widget.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin88 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP111752
SVG20236

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions6
▷ Named functions6100.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
3 PNG files occupy 0.30MB with 0.21MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/logo.png44.84KB11.19KB▼ 75.05%
assets/banner-772x250.png61.44KB18.68KB▼ 69.60%
assets/banner-1544x500.png198.36KB55.60KB▼ 71.97%