WordPress theme development checklist
A practical checklist for building a WordPress theme today: structure, security, accessibility, performance, WooCommerce support and testing.
At a glance
A practical checklist for building a WordPress theme today, to use at the start and again before launch: structure and theme support, security (escape late, sanitize early), asset enqueueing and performance, accessibility, internationalization, block editor support with theme.json, WooCommerce support, testing and release, and handover. It includes a minimal block theme layout and a go or no-go table.
Updated November 29, 2026 · For WordPress theme developers
- For developers building a theme for one client or for release
- Covers structure, security, assets, accessibility, i18n, block editor, WooCommerce, testing
- Block or classic block themes with theme.json are the direction; classic still fits PHP templates
- Rule content types and business logic belong in a plugin, not the theme
- Testing WP_DEBUG, coding standards, Theme Check, real devices, realistic content
- Includes a minimal theme layout and a pre-launch go or no-go table
- Help theme development and WordPress development services
On this page
- Which areas does the checklist cover?
- What belongs in structure and foundations?
- What about security, assets and performance?
- What about accessibility, translation and the block editor?
- What does a minimal modern theme look like?
- How do I test and release?
- What is the go or no-go table before launch?
- What are the most common mistakes?
- How should I hand it over and who should review it?
- FAQ
Whether you build a theme for one client or for release, the same questions come up: is it secure, accessible, fast and easy to maintain? Use this checklist at the start and again before launch.
Which areas does the checklist cover?
Block or classic, child theme, template hierarchy, theme support.
Child theme guide02SecurityEscape late, sanitize early, nonces and capability checks.
Roles and capabilitiesEnqueue properly, size images, lean libraries.
Landmarks, focus, contrast, keyboard and motion.
theme.json, patterns, shop styling.
WooCommerce specialists06Testing and handoverDebug, standards, devices, notes.
Debugging guideWhat belongs in structure and foundations?
- Decide block or classic. A block theme uses HTML templates,
theme.jsonand the Site Editor; a classic theme uses PHP templates; a hybrid is possible. Pick based on who will maintain the site. - Use a child theme when you build on someone else's theme.
- Follow the template hierarchy and provide templates for home, single, page, archive, search and 404.
- Declare theme support with
add_theme_support()fortitle-tag,post-thumbnails,html5,responsive-embedsandeditor-styles. Let WordPress print the title tag. - Include `wp_head()`, `wp_footer()` and `wp_body_open()` in classic templates. Plugins depend on them.
- Keep content out of the theme. Custom post types, shortcodes and business logic belong in a plugin.
What about security, assets and performance?
| Area | Do | Avoid |
|---|---|---|
| Output | esc_html(), esc_attr(), esc_url(), wp_kses_post() | Echoing raw input |
| Actions | Nonces and current_user_can() | Forms without intent checks |
| Naming | Prefix functions, classes and handles | Generic names that collide |
| Secrets | Keep them out of files and repositories | Keys in theme files |
| Scripts and styles | wp_enqueue_style() and wp_enqueue_script() with versions and dependencies | Hard-coded tags in the header |
| Images | add_image_size(), wp_get_attachment_image(), width and height | Full-size images everywhere |
| Fonts | Self-host or preload sensibly, limit weights, font-display: swap | Many weights from a third party |
| Libraries | CSS where CSS can do it | A heavy slider for one carousel |
Test with Query Monitor for slow queries and many hooks. Never edit core or plugin files: use hooks and template overrides.
What about accessibility, translation and the block editor?
- Semantic landmarks (
header,nav,main,footer) and a logical heading order. - A visible keyboard focus style and a working skip link.
- Sufficient colour contrast, and not relying on colour alone.
- Labels for form fields, alt text for meaningful images, accessible names for icon buttons.
- Menus and modals that work by keyboard and with a screen reader; respect
prefers-reduced-motion. - Wrap strings in
__()and_e()with a text domain, load it withload_theme_textdomain(), and provide RTL support if needed. - Define colours, typography and spacing in
theme.json, add editor styles that match the front end and register block patterns rather than relying on shortcode-heavy templates. - For a shop, add
add_theme_support( 'woocommerce' ), style the cart, checkout and My Account, and watch the template version notices.
What does a minimal modern theme look like?
my-theme/
style.css
theme.json
templates/
index.html
parts/
header.html
footer.html
functions.phpBlock themes can skip most setup code because theme.json declares colours, typography and layout.
A short functions.php should do only theme setup, not business logic:
add_action( 'after_setup_theme', function () {
add_theme_support( 'title-tag' );
add_theme_support( 'post-thumbnails' );
add_theme_support( 'responsive-embeds' );
add_theme_support( 'html5', array( 'search-form', 'comment-form', 'gallery', 'caption', 'style', 'script' ) );
load_theme_textdomain( 'my-theme', get_template_directory() . '/languages' );
} );
add_action( 'wp_enqueue_scripts', function () {
wp_enqueue_style( 'my-theme', get_stylesheet_uri(), array(), wp_get_theme()->get( 'Version' ) );
} );How do I test and release?
- Turn on `WP_DEBUG` and `WP_DEBUG_LOG`
in development and fix every notice.
- Run PHP_CodeSniffer
with the WordPress coding standards and a PHP compatibility check.
- Run Theme Check
if you plan to publish in the directory, and follow its guidelines.
- Test browsers and real devices
- Test with common plugins
an SEO plugin, forms, cache and WooCommerce if relevant.
- Import sample content
with long titles, missing images and many menu items.
- Check Core Web Vitals
on a realistic page, then write a changelog and bump the version.
What is the go or no-go table before launch?
| Area | Pass condition |
|---|---|
| Security | All output escaped, nonces and capability checks on actions, no secrets in files |
| Accessibility | Keyboard works end to end, focus visible, headings in order, contrast checked |
| Performance | Assets enqueued, images sized, a realistic page tested |
| Compatibility | Tested with the plugins the site uses, on the oldest PHP version you claim |
| Content | Real content tested: long titles, no images, many menu items |
| Debug | No notices with WP_DEBUG on |
| Handover | Changelog, notes on settings and expected plugins |
What are the most common mistakes?
- Putting post types and shortcodes in the theme, so a redesign deletes features.
- Hard-coding stylesheet or script tags, which blocks child themes and optimization plugins.
- Testing only with demo content, then meeting a three-line title on launch day.
- Relying on a page builder for logic that belongs in code.
- Skipping
wp_footer(), which silently disables many plugins. - Adding a heavy slider library for one carousel.
How should I hand it over and who should review it?
Document how to update the theme, where its settings live and which plugins it expects: a theme nobody understands is a maintenance risk. Ask a second developer to review escaping, enqueueing and capability checks, and a non-developer to complete the key tasks using only a keyboard. If you want a third pair of eyes, post a project and describe the theme.
Our developers build and review themes to a professional standard.
See also our WordPress development team.
Should I build a block theme or a classic theme?
For new projects, a block theme with theme.json is the direction WordPress is moving. A classic theme can still be right when you need PHP templates, or you are extending an existing site.
Link to this answerWhat is the minimum a theme needs?
A style.css with a header and an index template. Block themes use templates in a templates folder, and classic themes use PHP template files.
Link to this answerShould a theme add custom post types?
Generally no. Content types belong in a plugin, so your content survives a theme change.
Link to this answerWhat must a classic theme template include?
wp_head(), wp_footer() and wp_body_open(). Plugins depend on them, and skipping wp_footer() silently disables many plugins.
Link to this answerHow should a theme handle security?
Escape late and sanitize early with esc_html(), esc_attr(), esc_url() and wp_kses_post(), verify intent with nonces and current_user_can() checks, prefix functions and handles, never include secrets and never edit core or plugin files.
Link to this answerHow should scripts and styles be loaded?
With wp_enqueue_style() and wp_enqueue_script(), with versions and dependencies. Hard-coding tags in the header prevents child themes and optimization plugins from working.
Link to this answerWhat accessibility basics does a theme need?
Semantic landmarks and a logical heading order, a visible focus style and skip link, sufficient contrast, labelled form fields, alt text for meaningful images, keyboard-operable menus and modals and respect for prefers-reduced-motion.
Link to this answerHow do I make a theme translatable?
Wrap strings in __() and _e() with a text domain and load it with load_theme_textdomain(). Provide RTL support if your audience needs it and avoid text inside images.
Link to this answerWhat does theme.json do for editors?
It defines colours, typography and spacing so editors get consistent options. Add editor styles so what the editor shows matches the front end, and register block patterns for common layouts.
Link to this answerHow do I add WooCommerce support?
Add add_theme_support( 'woocommerce' ) and style the cart, checkout and My Account. Override WooCommerce templates only when you must, and watch the version notices on the status screen.
Link to this answerWhat testing should happen before release?
Turn on WP_DEBUG and fix every notice, run PHP_CodeSniffer with the WordPress standards, run Theme Check if you publish, test real browsers and devices, test with common plugins and realistic content and check Core Web Vitals.
Link to this answerWho should review the theme?
A second developer for escaping, enqueueing and capability checks, and a non-developer completing key tasks using only a keyboard. You can also post a project and have our engineers review it against this list.
Link to this answerKeep reading
Want an engineer on it?
Tell us what is wrong in plain words. A person reads it, today.