Lightweight JS Snippet Security & Risk Analysis

wordpress.org/plugins/lightweight-js-snippet

Add a small inline JavaScript snippet to one or more specific posts or pages, by post ID. No bloat, no front-end editor.

0 active installs v1.4.1 PHP 7.4+ WP 5.0+ Updated May 4, 2026
headinlinejavascriptpostsnippet
100
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Lightweight JS Snippet Safe to Use in 2026?

Generally Safe

Score 100/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 3mo 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.4.1Current
v1.4
v1.2
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.9.5
Last updatedMay 4, 2026
PHP min version7.4
Downloads1K

Community Trust

Rating0/100
Number of ratings0
Active installs0
Developer Profile

Lightweight JS Snippet Developer Profile

Jonas Hjalmarsson

5 plugins · 760 total installs

79
trust score
Avg Security Score
100/100
Avg Patch Time
408 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