Theme Handbook Compliance Auditor

WordPress style.css Validator & Screenshot Checker

Audit your WordPress theme style.css file against official Theme Handbook standards. Validates required headers, license metadata, and checks screenshot.png dimensions.

Compliance Score: 100%
Paste style.css Header Comment Block Live Validation

Theme Header Checklist:

screenshot.png Dimension Check:

Official recommended dimension is 1200 x 900 px (4:3 ratio).

How to Use This Tool

How to Use the WordPress style.css Validator

Follow this 4-step workflow to configure, generate, and deploy production-ready code into your WordPress theme.

1

Paste or Drop Your Theme style.css Header

Load one of the 3 presets (Full Theme Handbook, Block / FSE, Minimal Valid) or paste/drop your style.css file into the left editor pane.

Audits 6 Required + 5 Recommended Keys
2

Check Live Score & Header Checklist

Inspect the live score out of 100 across required fields (Theme Name, Author, Description, Version, License, Text Domain) and PHP/WP version warnings (< PHP 8.1 flagged).

Scoring: Pass >= 90%, Warn >= 60%
3

Drop or Upload PNG Screenshot for Dimension Audit

Upload or drop a .png image into the validator to verify 1200 x 900 px exact dimensions or 4:3 aspect ratio compatibility in local browser memory.

Optimal Size: 1200 × 900 px PNG
4

Copy Header or Download Validated style.css

Fix any missing header keys highlighted in the checklist, then click "Copy Header" or "Download .css" to save style.css in your theme root folder.

Target Location: wp-content/themes/{theme}/style.css

Before installing or distributing a WordPress theme, your root style.css manifest header and screenshot.png preview must follow official formatting conventions. The CodeToWP WordPress style.css Validator enables theme developers, agencies, and freelancers to audit 11 core header fields and verify PNG screenshot dimensions locally in seconds.

WordPress style.css Validator checklist and 1200x900 screenshot preview audit
Score style.css theme headers and inspect screenshot.png 1200×900 (4:3) dimensions locally in browser memory.

Who the WordPress style.css Validator Is Built For

Missing header metadata such as Theme Name, Version, or a matching Text Domain can prevent WordPress from listing a theme, break translation loading, or trigger warnings during client QA and directory submission reviews. Meanwhile, cropped or mismatched screenshot.png files look blurry inside Appearance > Themes.

Aligned with the WordPress Theme Handbook Main Stylesheet Specification, this WordPress style.css Validator scores your header live and checks screenshot dimensions without uploading files anywhere. Agencies run the WordPress style.css Validator before every client deployment or WordPress.org submission.

Features, Settings & Supported Outputs

  • 3 Built-In Header Presets & Drag-and-Drop: Test against Full Theme Handbook Header, Block / FSE Theme Header, or Minimal Valid Header presets, type directly in the editor, or drop a .css or .png file onto the validator workspace.
  • 11-Key Weighted Scoring Audit (100 Points Normalized): Checks 6 required fields at 12 points each (Theme Name, Author, Description, Version, License, Text Domain) and 5 recommended fields at 6 points each (Theme URI, Author URI, Requires at least, Tested up to, Requires PHP).
  • End-of-Life PHP Version Detection: Flags Requires PHP values below 8.1 with an EOL warning and deducts half the field’s points while recognizing 8.2+ as modern secure PHP.
  • Local PNG Screenshot Inspector & Export: Reads uploaded .png images in browser memory, confirms exact 1200 × 900 px resolution (pass), accepts alternate 4:3 aspect ratios with a warning, and exports clean style.css via Download or Copy.

Practical Example: Auditing a Starter Header

Sample style.css Input

/*
Theme Name: Acme Block Theme
Theme URI: https://example.com/acme
Author: Acme Studio
Author URI: https://example.com
Description: Lightweight custom WordPress block theme.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.2
License: GNU General Public License v2 or later
Text Domain: acme-block
*/

Expected Audit Result

Compliance Score:  100 / 100
Required Fields:   6 / 6 Present (Theme Name, Author, Description, Version, License, Text Domain)
Recommended:       5 / 5 Present (Requires PHP: 8.2 -> Modern Secure PHP)
Screenshot Target: 1200 x 900 px PNG (4:3 aspect ratio)

Result Explanation: All 11 tracked keys contain non-empty values and Requires PHP: 8.2 meets modern security standards, earning a 100% checklist pass.

Practical Use Cases

  • WordPress Theme Developers: Catch missing required metadata or outdated Requires PHP declarations before tagging a theme release.
  • Frontend Developers: Start from a valid preset header when wiring custom HTML/CSS themes for the first time.
  • Agencies: Verify consistent author, licensing, and screenshot.png aspect ratios across client deliveries.
  • Freelancers: Quickly generate and download a clean style.css header when packaging custom child or standalone themes.

Limitations & Compatibility

  • Key-Presence Parsing Only: The parser verifies that each header line matches Key: value with non-empty text; it does not enforce CSS comment wrappers (/* ... */), strict semantic version numbers, GPL license URLs, valid URL syntax, or WordPress.org Tags:, License URI:, or child-theme Template: headers.
  • PNG-Only Screenshot Validation & File Size: The image checker validates .png files (rejecting JPEG/WebP) and checks pixel dimensions (1200 × 900 vs 4:3); it does not enforce the filename screenshot.png or inspect file byte size limits (< 500KB recommended).
  • Target Compatibility: Designed for WordPress 6.0–6.7+ themes targeting PHP 8.1–8.3+.

Next Steps & Related CodeToWP Tools

Read our step-by-step guide on Troubleshooting WordPress style.css Header and Screenshot Errors, generate a complete theme package with our WordPress Starter Theme ZIP Generator, register stylesheets via the functions.php Enqueue Generator, or review full packaging standards in our HTML to WordPress Conversion Guide.

Frequently Asked Questions

It evaluates 6 required fields weighted at 12 points each (Theme Name, Author, Description, Version, License, Text Domain) plus 5 recommended fields at 6 points each (Theme URI, Author URI, Requires at least, Tested up to, Requires PHP).

PHP versions older than 8.1 have reached end-of-life security status. The validator deducts half the Requires PHP points and flags an EOL security warning until you target PHP 8.1, 8.2, or 8.3+.

The WordPress Theme Handbook recommends an exact 1200 x 900 px PNG image (4:3 aspect ratio) placed as screenshot.png in the theme root. Alternate 4:3 PNG sizes trigger a dimension warning, while non-4:3 ratios or non-PNG formats fail the check.

WordPress matches the Text Domain value in style.css to your folder slug when auto-loading translations and syncing community translation packs from translate.wordpress.org.

The score rubric focuses on the 11 universal manifest fields. If authoring a child theme or submitting to WordPress.org, include Template: parent-slug, License URI:, and Tags: lines manually inside the top CSS comment block.