# WordPress theme development checklist

URL: https://wp24x7.com/wordpress-theme-development-checklist/
Updated: 2026-11-29
Type: blog post
Audience: WordPress theme developers

> 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.

## Key facts

- 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

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?

- **Structure** Block or classic, child theme, template hierarchy, theme support. [Child theme guide](/how-to-properly-set-up-child-theme)
- **Security** Escape late, sanitize early, nonces and capability checks. [Roles and capabilities](/check-if-user-has-specific-role-or-capability-in-wordpress)
- **Performance** Enqueue properly, size images, lean libraries.
- **Accessibility** Landmarks, focus, contrast, keyboard and motion.
- **Block editor and WooCommerce** `theme.json`, patterns, shop styling. [WooCommerce specialists](/woocommerce-experts)
- **Testing and handover** Debug, standards, devices, notes. [Debugging guide](/how-to-debug-error-in-wordpress)

## What belongs in structure and foundations?

- **Decide block or classic.** A block theme uses HTML templates, `theme.json` and 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()` for `title-tag`, `post-thumbnails`, `html5`, `responsive-embeds` and `editor-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.

_Structure, security, speed and access, checked before launch_

## 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 with `load_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?

### Block theme
```
my-theme/
  style.css
  theme.json
  templates/
    index.html
  parts/
    header.html
    footer.html
  functions.php
```

Block themes can skip most setup code because `theme.json` declares colours, typography and layout.
### Classic or hybrid
A short `functions.php` should do only theme setup, not business logic:

```php
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?

1. **Turn on `WP_DEBUG` and `WP_DEBUG_LOG`** in development and fix every notice.
2. **Run PHP_CodeSniffer** with the WordPress coding standards and a PHP compatibility check.
3. **Run Theme Check** if you plan to publish in the directory, and follow its guidelines.
4. **Test browsers and real devices:** [browser testing](/browser-testing-wordpress-theme) and [responsive design](/responsive-wordpress-theme-design).
5. **Test with common plugins:** an SEO plugin, forms, cache and WooCommerce if relevant.
6. **Import sample content** with long titles, missing images and many menu items.
7. **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](/post-project) and describe the theme.

**Want a theme that passes this list?**
Our developers build and review themes to a professional standard.
[Post a project](/post-project)
[Theme development](/wordpress-theme-development)

See also our [WordPress development](/wordpress-development) team.

## Frequently asked questions

### 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.

### What 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.

### Should a theme add custom post types?

Generally no. Content types belong in a plugin, so your content survives a theme change.

### What 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.

### How 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.

### How 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.

### What 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.

### How 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.

### What 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.

### How 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.

### What 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.

### Who 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.
