67% buttonizer-multifunctional-button

Code Review | Smart Floating / Sticky Buttons - Call, Sharing, Chat Widgets & More – Buttonizer

WordPress plugin Smart Floating / Sticky Buttons - Call, Sharing, Chat Widgets & More – Buttonizer scored 67% from 54 tests.

About plugin

  • Plugin page: buttonizer-multif...
  • Plugin version: 2.5.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 5.8.1
  • First release: Aug 31, 2017
  • Latest release: Nov 18, 2021
  • Number of updates: 153
  • Update frequency: every 10.1 days
  • Top authors: buttonizer (100%)

Code review

54 tests

User reviews

37 reviews

Install metrics

70,000+ active / 599,486 total downloads

Benchmarks

Plugin footprint 65% 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.50MB] [CPU: ▼137.75ms] Passed 4 tests

This is a short check of server-side resources used by Smart Floating / Sticky Buttons - Call, Sharing, Chat Widgets & More – Buttonizer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.24 ▲0.4136.85 ▲7.39
Dashboard /wp-admin3.64 ▲0.5948.72 ▲2.65
Posts /wp-admin/edit.php3.69 ▲0.5949.90 ▲7.01
Add New Post /wp-admin/post-new.php5.99 ▲0.5690.81 ▼562.90
Media Library /wp-admin/upload.php3.43 ▲0.4338.98 ▲2.23
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius3.7532.30

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 229 new files
Database: no new tables, 6 new options
New WordPress options
fs_gdpr
fs_debug_mode
fs_accounts
fs_active_plugins
buttonizer_buttons
buttonizer_settings

Browser metrics Passed 4 tests

Checking browser requirements for Smart Floating / Sticky Buttons - Call, Sharing, Chat Widgets & More – Buttonizer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,816 ▲21016.75 ▲1.2132.38 ▲21.1344.69 ▼3.63
Dashboard /wp-admin3,032 ▲986.10 ▲0.14142.83 ▼10.81145.56 ▲38.04
Posts /wp-admin/edit.php2,822 ▲862.71 ▼0.0164.73 ▲5.9993.92 ▲8.68
Add New Post /wp-admin/post-new.php1,704 ▲2118.66 ▼0.07403.18 ▼16.71112.98 ▲10.52
Media Library /wp-admin/upload.php1,817 ▲105.02 ▼0.00142.31 ▼16.27153.06 ▲42.81
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius1,5052.1059.4270.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/buttonizer-multifunctional-button/freemius/includes/class-freemius.php+8552
    Undefined property: stdClass::$plugins
  • The uninstall procedure has failed, leaving 6 options in the database
    • fs_active_plugins
    • fs_gdpr
    • buttonizer_settings
    • fs_accounts
    • fs_debug_mode
    • buttonizer_buttons

Smoke tests 50% 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
  • 5× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/buttonizer-multifunctional-button/app/Licensing/License.php
    • > /wp-content/plugins/buttonizer-multifunctional-button/app/Utils/Maintain.php
    • > /wp-content/plugins/buttonizer-multifunctional-button/app/Admin/Admin.php
    • > /wp-content/plugins/buttonizer-multifunctional-button/freemius/templates/ajax-loader.php
    • > /wp-content/plugins/buttonizer-multifunctional-button/buttonizer.php
  • 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > 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/Admin/template.php on line 14
    • > 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/Admin/template.php on line 14
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/buttonizer-multifunctional-button/freemius/templates/account/partials/addon.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function freemius() in wp-content/plugins/buttonizer-multifunctional-button/freemius/templates/partials/network-activation.php:6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/buttonizer-multifunctional-button/freemius/templates/account/partials/addon.php on line 7
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/buttonizer-multifunctional-button/freemius/templates/account/partials/addon.php on line 6
    • > 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/Admin/template.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/buttonizer-multifunctional-button/freemius/templates/account/partials/addon.php:9
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/buttonizer-multifunctional-button/freemius/templates/account/partials/addon.php on line 6
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/buttonizer-multifunctional-button/freemius/templates/account/partials/addon.php on line 7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

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 "Smart Floating / Sticky Buttons - Call, Sharing, Chat Widgets & More – Buttonizer" version 2.5.4
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 217 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("buttonizer-multifunctional-button.php" instead of "buttonizer.php")

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 plugin137,162 lines of code in 170 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript822,17318,39290,030
PHP1357,84817,40433,839
PO File105,8986,58312,962
CSS132958259
SVG10169
JSON3003

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 2,907)
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity62.16
▷ Minimum class complexity1.00
▷ Maximum class complexity2,907.00
Average method complexity4.48
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces15
Interfaces0
Traits0
Classes70
▷ Abstract classes22.86%
▷ Concrete classes6897.14%
▷ Final classes00.00%
Methods1,278
▷ Static methods19215.02%
▷ Public methods88469.17%
▷ Protected methods151.17%
▷ Private methods37929.66%
Functions139
▷ Named functions9669.06%
▷ Anonymous functions4330.94%
Constants135
▷ Global constants11081.48%
▷ Class constants2518.52%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
assets/images/transparent.png0.24KB0.17KB▼ 28.34%
assets/images/logo.png13.35KB6.90KB▼ 48.29%
assets/images/plugin-icon.png9.13KB3.80KB▼ 58.42%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%