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. DrawBot, the Adventure Begins
  4. DrawBot - Parts Ordered!!!
  5. DrawBot - The Breakdown
  6. DrawBot - Parts Shipped!!!
  7. DrawBot - What would you draw?
  8. DrawBot - The Plan!
  9. DrawBot - The Hacks
  10. DrawBot - Giant Unicorn?
  11. DrawBot – The Delivery, Part III
  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 – Design Considerations
  17. DrawBot – Halp!!! No - seriously, a little help?
  18. My first published WordPress plugin! Simple Series!
  19. This is a test of the Simple Series post system... This is only a test
  20. Anti-Virals
  21. DrawBot – The Operation, Part I
  22. DrawBot – The Assembly, Part VIII
  23. DrawBot – The Breakdown, Part II
  24. DrawBot – Printing!
  25. DrawBot – Printing, Part II
  26. DrawBot – Calibration
  27. DrawBot – Drawing Success(ish)!!!
  28. DrawBot – Pen Selection, Part II
  29. DrawBot – Onwards and Upwards!
  30. WordPress plugin - OCD Plugin Stats
  31. Restarting a Stalled DrawBot Drawing
  32. Another Drawing Robot!!!
  33. Why do DrawBots draw on walls?
  34. The Eagle Has Landed
  35. I think I know what I want to draw next...
  36. This project is not going to overengineer itself
  37. Overengineered Stepper Motor Mounts, Filament Guides
  38. DrawBot - A Tour!
  39. Building an Arduino Drawing Robot - On The Cheap
  40. OCD Plugin Stats and the WordPress.org Statistics API
  41. How to add a custom button to the WordPress Visual TinyMCE Editor
  42. Drawing Robot Pen Holders, Calligraphy Pens, and Thought Experiments
  43. Enough talk! Finally a pen holder!
  44. DrawBot Pen Holder Post Mortem
  45. Drawing Robot Penmanship
  46. PlotterBot.com - a new site dedicated to drawing robots

  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=""> <s> <strike> <strong>