Scroll to Top Button Security & Risk Analysis

wordpress.org/plugins/scroll-to-top-button

Displays a button in the bottom right corner for smooth scrolling to the top of the page.

1K active installs v1.1 PHP + WP 3.5+ Updated Jan 31, 2021
buttonscrollscroll-to-topsmooth-scroll
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Scroll to Top Button Safe to Use in 2026?

Generally Safe

Score 85/100

Scroll to Top Button has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 5yr ago
Risk Assessment

The "scroll-to-top-button" v1.1 plugin exhibits a generally positive security posture based on the provided static analysis and vulnerability history. The absence of reported CVEs and the plugin's focus on preventing SQL injection through prepared statements are significant strengths. The static analysis indicates a very small attack surface with no discoverable AJAX handlers, REST API routes, shortcodes, or cron events, and crucially, none of these are unprotected. This lack of entry points significantly reduces the potential for external exploitation.

However, there are areas for improvement. The output escaping is only 50% properly handled, meaning that half of the plugin's outputs are not being sanitized. This could lead to cross-site scripting (XSS) vulnerabilities if user-supplied data is directly echoed into the output. The complete absence of nonce and capability checks, while not immediately exploitable due to the limited attack surface, represents a missed opportunity to reinforce security and could become a concern if the plugin were to evolve and introduce new entry points without these fundamental security measures.

In conclusion, while the plugin is currently very low risk due to its minimal attack surface and clean vulnerability history, the unescaped output is a notable weakness that should be addressed. The lack of nonce and capability checks, though not a direct vulnerability in this version, indicates a potential area for future security hardening.

Key Concerns

  • Half of outputs are not properly escaped
  • No nonce checks implemented
  • No capability checks implemented
Vulnerabilities
None known

Scroll to Top Button Security Vulnerabilities

No known vulnerabilities — this is a good sign.
Code Analysis
Analyzed Mar 16, 2026

Scroll to Top Button Code Analysis

Dangerous Functions
0
Raw SQL Queries
0
0 prepared
Unescaped Output
6
6 escaped
Nonce Checks
0
Capability Checks
0
File Operations
0
External Requests
0
Bundled Libraries
0

Output Escaping

50% escaped12 total outputs
Attack Surface

Scroll to Top Button Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 3
actionwp_headscroll-to-top-button.php:42
actionadmin_menuscroll-to-top-button.php:43
actionadmin_initscroll-to-top-button.php:44
Maintenance & Trust

Scroll to Top Button Maintenance & Trust

Maintenance Signals

WordPress version tested5.6.17
Last updatedJan 31, 2021
PHP min version
Downloads28K

Community Trust

Rating100/100
Number of ratings8
Active installs1K
Developer Profile

Scroll to Top Button Developer Profile

renp

1 plugin · 1K total installs

84
trust score
Avg Security Score
85/100
Avg Patch Time
30 days
View full developer profile
Detection Fingerprints

How We Detect Scroll to Top Button

Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.

Asset Fingerprints

Asset Paths
/wp-content/plugins/scroll-to-top-button/assets/css/style.css/wp-content/plugins/scroll-to-top-button/assets/js/scroll-to-top.js
Script Paths
/wp-content/plugins/scroll-to-top-button/assets/js/scroll-to-top.js
Version Parameters
scroll-to-top-button/assets/css/style.css?ver=scroll-to-top-button/assets/js/scroll-to-top.js?ver=

HTML / DOM Fingerprints

Data Attributes
id="scroll_to_top_button_scheme"name="scroll_to_top_button_option[scheme]"id="scroll_to_top_button_size"name="scroll_to_top_button_option[size]"
JS Globals
scrollTopParams
FAQ

Frequently Asked Questions about Scroll to Top Button