71% buttonizer-multifunctional-button

Code Review | Floating Chat Widget: Contact Chat Icons, Telegram Chat, Line Messenger, WeChat, Email, SMS, Call Button – Buttonizer

WordPress plugin Floating Chat Widget: Contact Chat Icons, Telegram Chat, Line Messenger, WeChat, Email, SMS, Call Button – Buttonizer scored71%from 54 tests.

About plugin

  • Plugin page: buttonizer-multif...
  • Plugin version: 3.4.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Aug 31, 2017
  • Latest release: Oct 26, 2023
  • Number of updates: 234
  • Update frequency: every 9.6 days
  • Top authors: buttonizer (100%)

Code review

54 tests

User reviews

96 reviews

Install metrics

80,000+ active /1,562,581 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▲0.78ms] Passed 4 tests

This is a short check of server-side resources used by Floating Chat Widget: Contact Chat Icons, Telegram Chat, Line Messenger, WeChat, Email, SMS, Call Button – Buttonizer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0341.50 ▼0.30
Dashboard /wp-admin3.34 ▲0.0346.14 ▼0.77
Posts /wp-admin/edit.php3.39 ▲0.0346.69 ▲1.08
Add New Post /wp-admin/post-new.php5.95 ▲0.0691.44 ▲3.10
Media Library /wp-admin/upload.php3.26 ▲0.0337.63 ▲5.26
Buttonizer /wp-admin/admin.php?page=Buttonizer3.2839.31

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 443 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Floating Chat Widget: Contact Chat Icons, Telegram Chat, Line Messenger, WeChat, Email, SMS, Call Button – Buttonizer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,866 ▲10514.19 ▼0.171.57 ▼0.1442.42 ▼2.27
Dashboard /wp-admin2,252 ▲725.52 ▼0.1084.33 ▼13.2880.87 ▲37.25
Posts /wp-admin/edit.php2,160 ▲631.98 ▼0.0236.49 ▼1.5742.37 ▲10.32
Add New Post /wp-admin/post-new.php1,592 ▲6623.06 ▲0.28702.26 ▼1.8369.72 ▲9.94
Media Library /wp-admin/upload.php1,457 ▲574.18 ▼0.0797.39 ▼7.2065.81 ▲17.16
Buttonizer /wp-admin/admin.php?page=Buttonizer1,29211.46206.32107.00
Edit buttons /wp-admin/admin.php?page=Buttonizer#/editor1,29111.78220.8080.25
I need support /wp-admin/admin.php?page=Buttonizer#/support1,50412.66172.5679.38

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 4× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/buttonizer-multifunctional-button/app/Legacy/Utils/Maintain.php
    • > /wp-content/plugins/buttonizer-multifunctional-button/app/Legacy/Admin/Admin.php
    • > /wp-content/plugins/buttonizer-multifunctional-button/app/Legacy/Licensing/License.php
    • > /wp-content/plugins/buttonizer-multifunctional-button/app/Admin/Admin.php
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/buttonizer-multifunctional-button/app/Legacy/Admin/Template.php on line 14
    • > PHP Fatal error
      Uncaught Error: Class 'Buttonizer\\Utils\\Settings' not found in wp-content/plugins/buttonizer-multifunctional-button/legacy.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/buttonizer-multifunctional-button/app/Admin/AdminTemplate.php:44
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/buttonizer-multifunctional-button/EnvVars.php:19
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/screen.php): failed to open stream: No such file or directory in wp-content/plugins/buttonizer-multifunctional-button/app/Legacy/Admin/Template.php on line 14
    • > PHP Fatal error
      Uncaught Error: Class 'Buttonizer\\Utils\\Settings' not found in wp-content/plugins/buttonizer-multifunctional-button/init.php:89
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/buttonizer-multifunctional-button/EnvVars.php:19
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/screen.php' (include_path='.:/usr/share/php') in wp-content/plugins/buttonizer-multifunctional-button/app/Legacy/Admin/Template.php on line 14

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=Buttonizer#/editor
    • > Network (severe)
    index.php/wp-json/buttonizer/editor_start_session?nonce=058986e0f5 - Failed to load resource: the server responded with a status of 401 (Unauthorized)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention: You can look at the official readme.txt

buttonizer-multifunctional-button/buttonizer.php 85% from 13 tests

Analyzing the main PHP file in "Floating Chat Widget: Contact Chat Icons, Telegram Chat, Line Messenger, WeChat, Email, SMS, Call Button – Buttonizer" version 3.4.1
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("buttonizer-multifunctional-button.php" instead of "buttonizer.php")
  • Description: The description should be shorter than 140 characters (currently 217 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin166,195 lines of code in 222 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1027,29122,041113,746
PHP1698,85419,20936,948
JSON121013,765
PO File74,21610,868803
CSS167658657
SVG772261
HTML11015

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
The following items need your attention
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity54.53
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.48
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces22
Interfaces0
Traits0
Classes91
▷ Abstract classes22.20%
▷ Concrete classes8997.80%
▷ Final classes00.00%
Methods1,456
▷ Static methods24016.48%
▷ Public methods1,02470.33%
▷ Protected methods171.17%
▷ Private methods41528.50%
Functions180
▷ Named functions10759.44%
▷ Anonymous functions7340.56%
Constants164
▷ Global constants11771.34%
▷ Class constants4728.66%
▷ Public constants47100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
166 PNG files occupy 2.09MB with 1.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/legacy/images/templates/template-126.png2.97KB1.12KB▼ 62.48%
assets/legacy/images/templates/template-56.png5.06KB2.07KB▼ 59.07%
assets/legacy/images/templates/template-148.png9.69KB4.30KB▼ 55.66%
assets/legacy/images/templates/template-135.png5.56KB2.50KB▼ 54.97%
assets/legacy/images/templates/template-16.png6.24KB2.41KB▼ 61.35%