Pippins Plugins
  • Email
  • Facebook
  • Feedburner
  • Github
  • Google
  • Twitter
  • Vimeo
  • Youtube
  • Rss
  • About
  • News
  • Join the Site
    • Member Benefits
    • Member Plugins
    • Email Notifications
  • Plugin Store
    • Affiliate Area
    • Checkout
  • Plugins
    • Plugin Portfolio
      • Plugin Portfolio – List View
    • Free
    • Premium
    • Member Plugins
    • Coding Standards
    • Get Plugin Support
  • Tutorials
    • Series
      • Plugin Development 101
      • Creating a User Follow System Plugin
      • Customizing Restrict Content Pro
      • Displaying Content with Easy Content Types
      • Writing Your First WordPress Plugins, Basic to Advanced
      • Working with Widgets
      • User Submitted Image Galleries
      • Plugin Thoughts
      • Integrating Stripe.com with WordPress
      • WordPress Rewrite API
    • Member Exclusive
      • Free Members
      • Subscriber Only
    • Difficulty
      • Beginner
      • Intermediate
      • Advanced
    • Action and Filter Hooks
    • Ajax
    • Custom Post Types
    • External APIs
    • Short Codes
    • Taxonomies
    • Video Tutorials
    • Widget Tutorials
    • WordPress Admin / Dashboard
    • Working with jQuery
    • WordPress Database
    • Writing Plugins
    • Tag Index
  • Reviews
  • Support Forum
  • Contact
    • Support the Site
    • Request Code Review
    • Plugin Support

Plugin Development 101 – General Best Practices

Posted on January 14, 2013 by Pippin in Beginner, Member Restricted, Subscriber Only, Tutorials, Writing Plugins 4 Comments
Home» Tutorials » Beginner » Plugin Development 101 – General Best Practices
wordpress-plugin-development_101
Tweet
Love It - 1
This entry is part 3 of 8 in the Plugin Development 101 Series
← Plugin Development 101 – What Makes a Plugin?Plugin Development 101 – An Intro to Filters →
  • 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:

  • WordPress Coding Standards
  • Going Above and Beyond WordPress Coding Standards
  • Guide to WordPress Coding Standards
Tweet Follow @pippinsplugins

4 comments on “Plugin Development 101 – General Best Practices”

  1. dj says:
    January 18, 2013 at 3:10 pm

    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.

    Reply
    • dj says:
      January 18, 2013 at 3:20 pm

      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.

    • Pippin says:
      January 18, 2013 at 4:06 pm

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

  2. stuartlb3 says:
    January 30, 2013 at 12:01 am

    Excellent grounding in the basics – thanks!

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • Login

Lost your password?

Please enter your username or e-mail address. You will receive a new password via e-mail.

  • Facebook Become a Fan Like

  • Twitter Subscribe on Twitter Follow

  • YouTube Follow my Videos Subscribe

  • RSS Feed Subscribe with RSS Subscribe

Easy Digital Downloads

Most Loved

  • Love It Pro for WordPress
  • Write a “Love It” Plugin with Ajax to Let Users Love Their Favorite Posts / Pages
  • Simple Notices Pro Plugin for WordPress
  • User Bookmarks for WordPress
  • Front End Registration and Login Forms Plugin

Similar Plugins and Posts

Latest Premium Content

  • Plugin Development 101 – Introduction to Adding Dashboard Menus
  • Plugin Development 101 – Intro to Loading Scripts and Styles
  • User Follow System – Part 5
  • Plugin Development 101 – Intro to Short Codes
  • Plugin Development 101 – Registering a Custom Post Type
  • Plugin Development 101 – Intro to Actions

Latest Tutorials

  • Test Your Plugins with RTL (0)

    Right-To-Left languages are those that...

  • Submitting Your First Pull Request to a WordPress Plugin on Github (5)

    Github is an extremely popular tool for managing WordPress plugins, and one...

  • Plugin Development 101 – Introduction to Adding Dashboard Menus (1)

    Adding new menus, both top level and sub level, to the WordPress Dashboard is a really common task for plugins...

Enter your email to receive automated updates when new posts are published

Latest Tweets

  • @HipHopMakers should be back shorlty
    May 25, 2013
  • @mrpritchett good idea. Not in the plugin currently but I like the odea
    May 25, 2013
  • @mrpritchett what kind of short codes?
    May 25, 2013

Topics

hook meta box Rémi Corson featured shortcodes campaign monitor add_options_page register_setting Sugar Event Calendar attachments add_shortcode wp_enqueue_script the_content image forms short codes Related posts login do_action authors mail chimp attachment plugin recent posts comments post types bbpress apply_filters short code taxonomies custom post type Ajax images gallery Stripe jquery taxonomy users widgets add_filter easy content types add_action widget restrict content pro easy digital downloads

Weekly Newsletter

Useful Links

  • Join the Site
  • Plugin Store
  • Affiliate Area
  • Tag Index
  • Support the Site
  • Suggest a Tutorial
  • Random Post
  • Contact

Monthly Archives

(c) 2013 Pippin's Plugins