Skip to content
Development

WordPress theme development checklist

A practical checklist for building a WordPress theme today: structure, security, accessibility, performance, WooCommerce support and testing.

By WP24×7 engineers5 min readPublished April 4, 2012Updated November 29, 2026

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

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?

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?

AreaDoAvoid
Outputesc_html(), esc_attr(), esc_url(), wp_kses_post()Echoing raw input
ActionsNonces and current_user_can()Forms without intent checks
NamingPrefix functions, classes and handlesGeneric names that collide
SecretsKeep them out of files and repositoriesKeys in theme files
Scripts and styleswp_enqueue_style() and wp_enqueue_script() with versions and dependenciesHard-coded tags in the header
Imagesadd_image_size(), wp_get_attachment_image(), width and heightFull-size images everywhere
FontsSelf-host or preload sensibly, limit weights, font-display: swapMany weights from a third party
LibrariesCSS where CSS can do itA 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?

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.

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 and responsive 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?

AreaPass condition
SecurityAll output escaped, nonces and capability checks on actions, no secrets in files
AccessibilityKeyboard works end to end, focus visible, headings in order, contrast checked
PerformanceAssets enqueued, images sized, a realistic page tested
CompatibilityTested with the plugins the site uses, on the oldest PHP version you claim
ContentReal content tested: long titles, no images, many menu items
DebugNo notices with WP_DEBUG on
HandoverChangelog, 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.

Want a theme that passes this list?

Our developers build and review themes to a professional standard.

See also our WordPress development team.

FAQ

Questions people ask

12 answers. Can't find yours? Ask an engineer.

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

Link to this answer
Should a theme add custom post types?

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

Link to this answer
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.

Link to this answer
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.

Link to this answer
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.

Link to this answer
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.

Link to this answer
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.

Link to this answer
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.

Link to this answer
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.

Link to this answer
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.

Link to this answer
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.

Link to this answer

Keep reading

Want an engineer on it?

Tell us what is wrong in plain words. A person reads it, today.