There have been one or two requests for code reviews for plug-ins and themes on the site in the past few weeks. WordPress Answers gives us the unique ability to post code, submit reviews, and vote on the reviews/feedback that's the most useful. Think of it as crowd-sourcing user opinions on unpublished code.
So here's my proposal. In lieu of a separate website for code reviews, I suggest we allow and encourage code reviews on WordPress Answers. It's a great way for people to learn both about their own code and about what others in the community are working on. Even though a code review might be specific to a certain plug-in, the feedback they receive won't be. The easiest way for a community to develop a set of coding standards is for the community to share code and discuss those standards openly.
If a developer wants to have their code reviewed, for one reason or another, they should do the following:
- Create a new question on WordPress Answers explaining what their plug-in is trying to accomplish.
- Include the actual code for their plug-in in the answer. If the plug-in spans multiple files, place them in separate code blocks on the page so we can keep things separate.
- Tag your question as
A moderator should mark the question as
community wiki in fairly short order as well.
This allows you to receive feedback from multiple WordPress experts over a fairly short period of time. Everyone has their own specialty - some of us are RegEx pros, others work intently with
$wpdb, others focus on core and cutting-edge features like post formats. So the feedback you'll receive for any one plug-in will be somewhat diverse and will make all of us better developers.
How does everyone feel about this proposal?