Is there any plugin development framework

AFAIK, there’s no official/standard framework, and there will be as many plugin development styles as there are shades of white in north pole. I’d say WordPress Coding Standards is a blueprint for a good style. You’ll find lots of good examples and excellent coders here in WPSE. A nice starting point: questions/tagged/plugin-development. Highlighting: Objective Best … Read more

Should I use wpdb prepare?

It’s best practice to always use prepare but the main use of it is to prevent against SQL injection attacks, and since there is no input from the users/visitors or they can’t effect the query then that is not an issue in your current example. But like I said before it’s best practice to use … Read more