84% sticky-action-buttons

Code Review | Sticky Action Buttons

WordPress plugin Sticky Action Buttons scored 84% from 54 tests.

About plugin

  • Plugin page: sticky-action-but...
  • Plugin version: 1.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-5.7
  • WordPress version: 6.3.1
  • First release: Jun 18, 2021
  • Latest release: Jul 10, 2021
  • Number of updates: 7
  • Update frequency: every 3.3 days
  • Top authors: praveentamil (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 608 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
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼8.54ms] Passed 4 tests

Analyzing server-side resources used by Sticky Action Buttons
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1141.15 ▼3.68
Dashboard /wp-admin3.36 ▲0.0644.67 ▼0.71
Posts /wp-admin/edit.php3.41 ▲0.0646.37 ▲0.62
Add New Post /wp-admin/post-new.php5.94 ▲0.0684.18 ▼30.39
Media Library /wp-admin/upload.php3.28 ▲0.0634.72 ▲0.63

Server storage [IO: ▲1.30MB] [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, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Sticky Action Buttons: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲18613.94 ▼0.499.69 ▲7.5646.62 ▲2.88
Dashboard /wp-admin2,229 ▲414.85 ▼1.06101.57 ▲0.6239.81 ▼3.82
Posts /wp-admin/edit.php2,109 ▲172.04 ▼0.0139.42 ▼2.2534.75 ▼0.84
Add New Post /wp-admin/post-new.php1,531 ▲1117.84 ▼5.16683.32 ▼15.0964.37 ▼7.92
Media Library /wp-admin/upload.php1,408 ▲204.18 ▼0.01106.68 ▲5.3844.42 ▼1.48

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 take a closer look at the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/sticky-action-buttons/sticky-action-buttons.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function menu_page_url() in wp-content/plugins/sticky-action-buttons/admin/sabs_admin_options.php:49
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sticky-action-buttons/public/sabs_container.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
8 plugin tags: call, email button, whatsapp button, sticky action buttons, support button...

sticky-action-buttons/sticky-action-buttons.php Passed 13 tests

This is the main PHP file of "Sticky Action Buttons" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
110 characters long description:
Add Floating Buttons on your website for Click to Chat with WhatsApp, Send Mail and even Click to Call buttons

Code Analysis Passed 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
No dangerous file extensions were detected1,733 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP3110100728
Markdown21350568
CSS2386234
JavaScript25824203

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code1.03
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%
Functions19
▷ Named functions1894.74%
▷ Anonymous functions15.26%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected