Free Plugin by DrGlenn

DrGlenn Code

Lightweight site customization without the attack surface. Add sitewide CSS & JS, inject header/footer HTML, reuse safe snippets, and optionally render PHP with strict safeguards.

Why This Exists

Companion products that manage code snippets (like popular header/footer & snippet managers) are frequent attack vectors when they grow too complex or enable risky execution paths. DrGlenn Code takes the opposite approach: a single file, zero tracking, minimal features, and secure defaults.

It does the 95% of tasks most site owners need—without dragging in bloat you’ll never use.

Security-first design: optional PHP is off by default, runs only for admins, and caches output for visitors. Dangerous functions are blocked and any error flips a safety switch.

Quick Highlights

Lightweight No Tracking Head & Footer Site CSS & JS Shortcodes Guarded PHP (opt‑in)

  • Works with any theme and most caching setups.
  • No external requests; settings live in your DB.
  • Safe defaults that won’t white‑screen your site.

Features (v2.3)

Global Output

  • Header HTML: verification tags, pixels, or structured markup added to <head>.
  • Sitewide CSS: one <style id="dgc-site-css"> printed in the head.
  • Footer HTML: scripts or hooks printed before </body>.
  • Sitewide JS: one <script id="dgc-site-js"> in the footer.

Reusable Snippets

  • HTML snippets (output inline): [dgc_html id="note"]
  • CSS snippets (queued & printed once in head): [dgc_css id="card" ]
  • JS snippets (queued & printed once in footer): [dgc_js id="gallery"]

Optional PHP (Guarded)

  • Off by default; enable only when needed.
  • Admin‑only execution; visitors see cached output.
  • Dangerous functions blocked (exec/system/shell_exec, file writes, etc.).
  • Auto safety switch: any error disables PHP snippets and posts an admin notice.
Shortcode: [dgc_php id="calc"]. Must return a string, e.g. return date('Y');

What It Prints

<!-- head -->
<style id="dgc-site-css"> ... </style>
<!-- header HTML -->

<!-- footer -->
<script id="dgc-site-js"> ... </script>
<!-- footer HTML -->

Installation

  1. Download the zip: drg-code.zip
  2. In WordPress: Plugins → Add NewUpload Plugin → choose the zip → Install Now.
  3. Click Activate, then go to Settings → DrGlenn Code.
macOS tip: If your browser tries to open the file, hold Option while clicking.

Usage

  • Enter your header/footer HTML (admins only), site CSS & JS.
  • Create reusable HTML/CSS/JS snippets and place them with shortcodes.
  • Enable PHP snippets only if you truly need them—admin renders & caches.

Download

Security‑minded by design. Nothing you don’t need. Single file, easy to audit.

Disclaimer: Provided free, as‑is, without warranty. Misconfigured or unsafe custom code can still break your site. Use backups, test on staging, and keep your WordPress, themes, and plugins updated.

© DrGlenn. GPL‑2.0+. No tracking. ZIP is served from fixmyhackedwebsite.com.