LH Add Roles to Body Class Security & Risk Analysis

wordpress.org/plugins/lh-add-roles-to-body-class

Adds the currently logged in users role (or roles) to the body class in both the front and back end.

40 active installs v1.01 PHP + WP 5.0+ Updated Jul 29, 2022
bodyclasshtmlroletag
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is LH Add Roles to Body Class Safe to Use in 2026?

Generally Safe

Score 85/100

LH Add Roles to Body Class 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

Based on the provided static analysis and vulnerability history, the "lh-add-roles-to-body-class" plugin exhibits a strong security posture. The attack surface appears minimal, with no identified AJAX handlers, REST API routes, shortcodes, or cron events, and crucially, none of these entry points are unprotected. The code also adheres to secure coding practices, demonstrating no dangerous functions, exclusively using prepared statements for SQL queries, and properly escaping all output. There are no identified file operations or external HTTP requests, further reducing potential risks. The absence of any recorded vulnerabilities in its history, including critical or high severity ones, further reinforces this positive assessment.

Vulnerabilities
None known

LH Add Roles to Body Class Security Vulnerabilities

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

LH Add Roles to Body Class Code Analysis

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

LH Add Roles to Body Class Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 3
filterbody_classlh-add-roles-to-body-class.php:75
filteradmin_body_classlh-add-roles-to-body-class.php:78
actionplugins_loadedlh-add-roles-to-body-class.php:103
Maintenance & Trust

LH Add Roles to Body Class Maintenance & Trust

Maintenance Signals

WordPress version tested6.0.11
Last updatedJul 29, 2022
PHP min version
Downloads1K

Community Trust

Rating100/100
Number of ratings1
Active installs40
Developer Profile

LH Add Roles to Body Class Developer Profile

shawfactor

77 plugins · 15K total installs

91
trust score
Avg Security Score
87/100
Avg Patch Time
7 days
View full developer profile
Detection Fingerprints

How We Detect LH Add Roles to Body Class

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

Asset Fingerprints

HTML / DOM Fingerprints

CSS Classes
role-user_id-
FAQ

Frequently Asked Questions about LH Add Roles to Body Class