Plugin and Theme Refactoring

What is Re-factoring? We as developers tend to be time crunched on projects, in some cases we are so caught up in just trying to get something to work that we end up leaving our code written in an inefficient manner and ultimately our application slows down because of it.

Re-factoring in General is something that all developers need to learn from day one, and when it comes to themes and plugins, how you re-factor or what you re-factor can mean the difference between a site moving slow or it being able to massively scale.

First we will discuss basic Re-factoring Principles including the Rule of Three’s, re-factoring when adding function, when bug fixing and code reviewing.

We will take a look at the structure of some of the most popular plugins and themes out on the market today and determine the type or model you will want to follow in your re-factoring process.

Then finally we will attempt to give simple code re-factoring examples, the goal here is not just to teach you the principles but rather help you implement it and make it apart of your every day development process.