83% whatshelp-chat-button

Code Review | Chat Button by GetButton.io

WordPress plugin Chat Button by GetButton.io scored83%from 54 tests.

About plugin

  • Plugin page: whatshelp-chat-bu...
  • Plugin version: 1.8.12
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-6.3
  • WordPress version: 6.3.1
  • First release: Oct 3, 2016
  • Latest release: Aug 12, 2023
  • Number of updates: 72
  • Update frequency: every 34.8 days
  • Top authors: whatshelp (100%)

Code review

54 tests

User reviews

169 reviews

Install metrics

40,000+ active /508,248 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.01MB] [CPU: ▼6.88ms] Passed 4 tests

Server-side resources used by Chat Button by GetButton.io
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.43 ▼5.03
Dashboard /wp-admin3.31 ▲0.0147.04 ▼7.19
Posts /wp-admin/edit.php3.36 ▲0.0145.62 ▼6.45
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.51 ▼8.84
Media Library /wp-admin/upload.php3.23 ▲0.0132.41 ▼0.11

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Chat Button by GetButton.io
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲8713.22 ▼1.152.02 ▼0.8044.05 ▼10.40
Dashboard /wp-admin2,209 ▲274.86 ▼0.97111.34 ▲6.1374.72 ▲29.64
Posts /wp-admin/edit.php2,107 ▲182.02 ▲0.0334.97 ▼5.5533.17 ▼4.65
Add New Post /wp-admin/post-new.php1,536 ▼323.02 ▼0.21701.07 ▲59.2153.24 ▲1.81
Media Library /wp-admin/upload.php1,403 ▲184.17 ▼0.0497.60 ▼5.0146.80 ▲1.21

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/whatshelp-chat-button/whatshelp.php:171

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

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

whatshelp-chat-button/whatshelp.php 85% from 13 tests

The entry point to "Chat Button by GetButton.io" version 1.8.12 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 264 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("whatshelp-chat-button.php" instead of "whatshelp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin132 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12021132

PHP code Passed 2 tests

A brief analysis 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.25
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%
Functions8
▷ Named functions8100.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/whatshelp_logo.png14.32KB8.86KB▼ 38.10%
img/getbutton_logo.png5.21KB3.16KB▼ 39.37%