Lightweight JS Snippet Security & Risk Analysis

wordpress.org/plugins/lightweight-js-snippet

Easy and really lightweight insert script functionality to a specific page.

0 active installs v1.2 PHP 5.7+ WP 5.0+ Updated Oct 7, 2022
insert-on-one-pagejavascriptsnippet
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Lightweight JS Snippet Safe to Use in 2026?

Generally Safe

Score 85/100

Lightweight JS Snippet has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 3yr ago
Risk Assessment

The plugin "lightweight-js-snippet" v1.2 exhibits a strong security posture based on the provided static analysis and vulnerability history. The absence of any identified attack surface points, including AJAX handlers, REST API routes, shortcodes, or cron events, significantly reduces the potential for external exploitation. Furthermore, the code signals indicate robust security practices, with no dangerous functions, all SQL queries using prepared statements, and a high percentage of output escaping. The lack of file operations and external HTTP requests also contributes positively to its security. The vulnerability history being completely clean reinforces this assessment, suggesting a well-maintained and secure codebase over time. However, a notable area for improvement is the complete absence of nonce checks and capability checks. While the current lack of an attack surface mitigates immediate risk, future updates that introduce entry points without these essential security measures could create significant vulnerabilities. The clean slate in terms of vulnerabilities and taint flows is a strong positive, indicating good development practices, but the missing authentication checks on potential future entry points are a concern for long-term security.

Key Concerns

  • Missing nonce checks on potential entry points
  • Missing capability checks on potential entry points
  • Low percentage of output escaping (14%)
Vulnerabilities
None known

Lightweight JS Snippet Security Vulnerabilities

No known vulnerabilities — this is a good sign.
Version History

Lightweight JS Snippet Release Timeline

v1.2Current
v1.1
v1.0
Code Analysis
Analyzed Apr 16, 2026

Lightweight JS Snippet Code Analysis

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

Output Escaping

86% escaped7 total outputs
Attack Surface

Lightweight JS Snippet Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 6
actionadmin_menuadmin-settings.php:7
actionadmin_initadmin-settings.php:15
filterplugin_action_links_fabolous-login-screen/fabolous-login-screen.phpadmin-settings.php:75
actionadmin_headadmin-settings.php:99
actionadmin_enqueue_scriptsadmin-settings.php:111
actionwp_headlightweight-js-snippet.php:70
Maintenance & Trust

Lightweight JS Snippet Maintenance & Trust

Maintenance Signals

WordPress version tested6.0.11
Last updatedOct 7, 2022
PHP min version5.7
Downloads906

Community Trust

Rating0/100
Number of ratings0
Active installs0
Developer Profile

Lightweight JS Snippet Developer Profile

Jonas Hjalmarsson

4 plugins · 660 total installs

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

How We Detect Lightweight JS Snippet

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/lightweight-js-snippet/js/code-editor.js
Script Paths
/wp-content/plugins/lightweight-js-snippet/js/code-editor.js

HTML / DOM Fingerprints

Data Attributes
id="jhljs-script"id="jhljs-post"
FAQ

Frequently Asked Questions about Lightweight JS Snippet