OCD Plugin Stats and the WordPress.org Statistics API

What you get when you don't use an API

What you get when you don’t use an API

The current version of my WordPress OCD Plugin Stats plugin, is somewhat… clunky.1 When I wrote it I didn’t know that WordPress.org had an API for it’s plugin statistics.2 Thus, the current version essentially scrapes particular WordPress.org plugin pages for information and drops it into the WordPress dashboard.

After poking into the stats on one of my plugin pages the other day I discovered that the source code for the page included several calls to a WordPress.org API.  Why should I bother scraping and interpreting a page of HTML when I can just ask WordPress.org to deliver the exact data I need in a nifty JSON format?!  I’m very much looking forward to adjusting this plugin to use a more direct and simple call to the WordPress API rather than scraping plugin pages.

In any case, if you’re looking for documentation on this, I found a page in the WordPress Codex and a site with a page devoted to documenting the WordPress.org API.

”Posts
  1. Wanna make a DrawBot?
  2. DrawBot Resources and Links
  3. DrawBots for the slow learner
  4. DrawBot - Parts Ordered!!!
  5. DrawBot - Parts Shipped!!!
  6. DrawBot - What would you draw?
  7. DrawBot - The Hacks
  8. DrawBot - Giant Unicorn?
  9. DrawBot - The Delivery?
  10. DrawBot - The Delivery, Part II
  11. DrawBot – The Assembly, Part I
  12. DrawBot – The Software, Part I (and an existential conversation)
  13. DrawBot – The Delivery, Part IV
  14. DrawBot – The Assembly, Part II
  15. DrawBot – The Assembly, Part III
  16. DrawBot – The Assembly, Part IV
  17. DrawBot – The Face Palm
  18. i find i want to add more posts in some random series, just so i can use my new plugin
  19. Simple Series WordPress Plugin
  20. My first published WordPress plugin! Simple Series!
  21. This is a test of the Simple Series post system... This is only a test
  22. Now Simple Series will also add the series list to RSS feeds too!
  23. ZOMG! Simple Series is going viral!
  24. Simple Series with SEO! after just one day
  25. Anti-Virals
  26. Simple Series - Half-Life; Market Research
  27. DrawBot – The Breakdown, Part II
  28. DrawBot – Printing!
  29. DrawBot – Printing, Part II
  30. DrawBot – Pen Selection
  31. DrawBot – Drawing Success(ish)!!!
  32. DrawBot – Pen Selection, Part II
  33. DrawBot – Onwards and Upwards!
  34. Plugin Considerations
  35. WordPress plugin - OCD Plugin Stats
  36. TSP FTW!
  37. Two new DrawBot links! And an update!
  38. Excellent DrawBot Slides
  39. Maze Code + Polargraph?
  40. Ideas for improving my DrawBot
  41. Every Body Needs a Skull
  42. I think I know what I want to draw next...
  43. Overengineered Spools
  44. Overengineered Bolt Endcaps, Case Holder
  45. DrawBot, now ACTUALLY wall mounted!
  46. Simple Series WordPress Plugin Update
  47. OCD Plugin Stats and the WordPress.org Statistics API
  48. A Study of Drawing Robot Pen Holders and Design Considerations
  49. Drawing Robot Pen Holders, Calligraphy Pens, and Thought Experiments
  50. Ideal Qualities in a Drawing Robot Pen Holder
  51. To Maker Faire!!!
  52. Drawing Robot Penmanship

  1. Photo courtesy of peasap []
  2. Apparently they have more statistics than just on plugins []

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>