- Introduction to WordPress Plugin Development 101
- Plugin Development 101 – What Makes a Plugin?
- Plugin Development 101 – General Best Practices
- Plugin Development 101 – An Intro to Filters
- Plugin Development 101 – Registering a Custom Post Type
- Plugin Development 101 – Intro to Short Codes
- Plugin Development 101 – Intro to Loading Scripts and Styles
- Plugin Development 101 – Introduction to Adding Dashboard Menus
Having an understanding of best practices that should be followed when writing a WordPress plugin is nearly as important as understanding how to write the plugin itself. The advantages of following general best practices are huge, and there is not a single valid reason why best practices should not be followed. This part of Plugin Development 101 will walk through some of these best practices and will explain why they are so important.
The best practices described in the video should be followed in all phases of your plugin development and should be followed regardless of the size of your plugin.
If you find these best practices difficult or tedious to follow, I encourage you to stick with it and condition your mind to use them anyway. After a short period of time, you will discover that these practices become second nature and you won’t even have to think about applying them.
The best practices covered in the video are:
- Code Formatting
- Logical Code / File Organization
- Meaningful Naming Conventions
- WordPress Coding Standards
Links referenced in the video:


A suggestion: take an example from NetTuts and other blogs – If you’re going to do a post about a “members only” or “premium only” article/video, plainly state the fact in the title or excerpt so those of us who aren’t members (and don’t plan on being) don’t have to jump to the article and read through it before we find out that it’s a paid article. Unless I didn’t see one, I missed that on this article. That’s kind-a like “bait and switch” which is quite off-putting for a US reader.
Oops, sorry, I don’t see a function to edit a comment – a whole line seems to have been deleted from my comment for some reason which makes it sounds a bit off-putting. Should have read “who aren’t members (and aren’t expecting to join for this particular article)” – a bit clearer.
Also, I did go back and find a mention of member content, but it was down in the tags (which I never read apparently). I guess I could get used to the way it’s indicated on this particular blog. Better to make it clear and up front however I think. Wish I could join the members areas of all the developers who’d like me to do so, but I can’t. Enjoy the one’s you write for gratis though.
Thank you for the suggestion. It is definitely something I need to work on. One of the reasons I haven’t done it thus far yet, however, is that some of the member’s only content include sa significant amount of content that is open to everyone as well. Sometimes it is only the video that is restricted, while the code is open to all (or vice a versa).
Excellent grounding in the basics – thanks!