My Experience Converting a WordPress Plugin to a Backbone App
summary
Converted Ninja Forms from a PHP/HTML plugin into a mostly JavaScript app in about eight months, replacing a 500-line jQuery spaghetti front end with a stateful, JSON-driven admin UI that avoids page reloads and uses Backbone + Underscore + Marionette with RequireJS, Gulp/Almond and Radio. PHP now only handles processing, exports JSON, and the builder supports 46 add-ons and extensibility. Works on ~300k active installs but requires shimming WordPress-included libs and careful handling of third‑party JS conflicts.
AI-written summary · about
chapters (12)
- 0:00Introduction and background
- 1:51Ninja Forms before rewrite
- 3:41Why rewrite to Backbone
- 5:08Tools and libraries used
- 9:49Choosing Backbone and Underscore
- 13:46WordPress JavaScript challenges
- 16:59Extensibility and third-party devs
- 17:44PHP vs JavaScript mindset
- 20:59Learning curve and resources
- 22:02WordPress event-driven nature
- 23:08Community and next steps
- 24:55Closing remarks and Q&A
