Your jQuery Plugin Should Job Out of the Container – Anytime a creator uses your plugins there should always be at least a default setting that just works away of the box. Whenever they call your plugin something should happen, if you don’t at least have this, chances are people will pass on your plugin and keep looking for others. This makes it really easy for the programmers and today allows them to tweak options as necessary.
Provide Plugin Options – This follows from the point above, once your plugin is working any modifications to it should be provided through some options. Don’t ask designers to have to create some kind of structure with div’s. Although this rule circumstance can be broken as in the case of a jQuery slideshow plugin where a user may want to specify multiple images, for the most part, keep this in code and set it as an option to toggle on or off.
Thoroughly Test Your Code in All Browsers – This specific step is straightforward to do and only takes a little extra time and work. Also, this is probably the most crucial step which can make or break your plugin. In many instances a developer may well not find a bug in your code but an individual can most definitely will sooner or later. If users are reporting bugs and it turns out to continually be your jQuery plugin, there exists a good chance it will get dropped and replaced. Make sure you run a quick test in all web browsers and sort out any last minor issues before release.
Document Your WordPress tool Code – Before launching your plugin ensure you record it. Your code is sensible to you because you just wrote it, but it might not make sense to others or even to yourself three weeks beforehand.