Set the roles that can view stats
Helper Functions In vip-helper-stats-wpcom.php
_wpcom_vip_get_stats_result
A helper function to call the stats API
wpcom_vip_stats_xml_print
Transforms data from the stats API into XML.
wpcom_vip_stats_csv_print
Transforms data from the stats API into CSV.
wpcom_vip_csv_quote
Helper function for wpcom_vip_stats_csv_print() to double-quote a string for CSV output.
wpcom_vip_csv_expand_post
Helper function for wpcom_vip_stats_csv_print() to pull out certain fields from a post object.
wpcom_vip_get_most_shared_posts
Get the most shared posts of the current blog, ordered DESC by share count
wpcom_vip_get_post_pageviews
Get the number of pageviews for a given post ID.
wpcom_vip_get_stats_xml
Get the WP.com stats as XML
wpcom_vip_get_stats_csv
Get the WP.com stats as CSV
wpcom_vip_get_stats_array
Get the WP.com stats
wpcom_vip_top_posts_array
Get the WP.com top posts