Presented at WordCamp Montreal 2014
Do you ever browse the WordPress Plugin Directory and wish you could see your creations up there? Have you ever written code for a personal site or customer and thought that others could benefit from having access to your work? ‘So, you want to be a plugin developer?’ covers numerous aspects of plugin development, including finding an idea for your plugin and securing a space for it in the directory, programming resources and code quality guidelines to make sure your add-on is top-notch, and more business-oriented topics like monetization and promotion. With all of these tips and tools in hand, your next idea could be the next great WordPress plugin.
6. FINDING INSPIRATION
Best plugins come from solving actual needs
functions.php code
Customer plugins
Recurring needs from wordpress.org forums
No good plugin for a task
8. ACTIONS AND FILTERS 101
Actions allow you to execute code almost
anywhere in page
rendering
Add content
Alter core functionality
Add custom admin panels
Extend WP (CPT, DB Schema, etc...)
9. ACTIONS AND FILTERS 101
Filters allow you to modify almost
any data before it is displayed
Hide unwanted elements
Modify page content
Insert new items on pages based on configuration (e.g.
image slider)
10. ACTIONS AND FILTERS 101
1061 action hooks
1594 filter hooks
Full list of calls hookr.io
11. ACTIONS AND FILTERS: THE BIG PICTURE
Community-driven sites
Complex store fronts
Dynamic content-driven sites
Enhance content editing
Create new importers
New ways to interact with external web sites
12. DID OTHERS HAVE YOUR IDEA?
> 32000 plugins!
Look for others
Can you do better?
Name taken?
Reserve name ASAP
13. PLUGIN REPOSITORY SEO OPTIMIZATION
wordpress.org or plugins admin
Catchy name
Short description
Keywords
Test searches
17. CODING YOUR MASTERPIECE
DISTRIBUTION LICENSE
GNU General Public License v2 or later
Core plugin code
PHP libraries
javascript / jQuery plugins
Icons and images
Plugins scanned for non-compliance
18. CODING YOUR MASTERPIECE
PLUGIN SECURITY
Scanned for security holes
Known insecure libraries (Timthumb)
Malicious code injection
SQL injection
Relative file load paths
Suspended and hidden when issues found
Fix ASAP to get back online
20. CODING YOUR MASTERPIECE
TESTING
Single-site versus multi-site
Single plugin versus Top 10 popular plugins
http vs https
jQuery
Multiple themes
Local machine vs hosted site
Configuration option mix
28. MONETIZATION STRATEGIES
FREE PLUGINS
Only free plugins on wordpress.org
Donation links
Ads for premium version
Guilt-based support
Revenue expectation: $0-100 / month
29. MONETIZATION STRATEGIES
PREMIUM PLUGINS AND ADD-ONS
e.g. Gravity Forms, MailPoet
Direct revenue
Separate sale channel and hosting platform
Custom update mechanism
Potential piracy
User support expectation
Revenue expectation: Higher, more work
35. SUPPORTING YOUR COMMUNITY
Popular plugin = Questions
Paid plugin = Demanding users
Avoid general WP support questions
Manage expectations
36. SUPPORTING YOUR COMMUNITY
KEEP ALL SUPPORT IN ONE PLACE
wordpress.org forums
Easier for users to search
Harder to miss a question
Advanced users can help others!
39. SUPPORTING YOUR COMMUNITY
UPDATE FREQUENCY
Updates include
Bug fixes
New functionality
After update, users need to
Read changelog
Test site functionality