Re: Rate anything: new plugin in development, soliciting architecture advice
You’ll probably have to write less code if you use custom post types. Also, using custom post types will make it easier for other developers to extend and customize the plugin. Using WP’s meta_query or tax_query will make it pretty straightforward to store and retrieve the data.
Your general idea about a ratings API is really smart. BP’s activity API might be a sort of model: BP provides bp_activity_add(), and components like groups have their own wrapper functions. Or a central ratings class that other plugins could extend. The details don’t matter that much.
Also, make sure you provide some flexible markup functions, so that it’s not only easy to retrieve the ratings themselves, but so there’s also a nice way for people to display them on arbitrary content types.
Looking forward to seeing what you come up with!