Advice on cleaner code in WordPress? Everything I do feels like duct tape...

This page summarizes the projects mentioned and recommended in the original post on /r/Wordpress

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • acorn

    Laravel components for WordPress plugins and themes (by roots)

  • square-one

    Modern Tribe's legacy WordPress framework for the classic editor.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • Rector

    Instant Upgrades and Automated Refactoring of any PHP 5.3+ code

  • Actually, while not common it can be done via https://getrector.org/.

  • petite-vue

    6kb subset of Vue optimized for progressive enhancement

  • Using a full-blown JS framework is often overkill, and you would have to fight it more than it would help you in order to make all the PHP templates work. This is why I mostly use petite-vue or alpine.js in WP themes. They are really lightweight and offer you many handy tools, but can easily be sprinkled only here and there, wherever you need it.

  • Alpine.js

    A rugged, minimal framework for composing JavaScript behavior in your markup.

  • Using a full-blown JS framework is often overkill, and you would have to fight it more than it would help you in order to make all the PHP templates work. This is why I mostly use petite-vue or alpine.js in WP themes. They are really lightweight and offer you many handy tools, but can easily be sprinkled only here and there, wherever you need it.

  • sage

    WordPress starter theme with Laravel Blade components and templates, Tailwind CSS, and a modern development workflow

  • Yeah, we agree this is why frameworks are so great. Consider checking out Roots Sage starter theme. It's a library/framework designed for theme developers.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts