Super plugin, but I have a little problem with it.
The query to the database does not include the category. The variable $where and $join is not included in the function get_most_viewed().
Print a query used in get_most_viewed() function returns:
SELECT ID, post_title, post_date, post_content, post_excerpt, meta_value FROM pd_posts as views p
JOIN pd_postmeta pm on p.ID = pm.post_id
WHERE meta_key = ‘_popular_views’
AND meta_value! =”
AND post_date> = ‘2012-01-08 11:48:51 ‘
AND post_status =’publish’
AND post_type IN (‘ post ‘,’ question ‘)
ORDER BY (meta_value+0)
DESC LIMIT 5