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 - The Breakdown
  5. DrawBot - What would you draw?
  6. DrawBot - The Delivery?
  7. DrawBot – The Delivery, Part III
  8. DrawBot – The Software, Part I (and an existential conversation)
  9. DrawBot – The Assembly, Part III
  10. DrawBot – The Assembly, Part IV
  11. DrawBot – Design Considerations
  12. DrawBot – The Face Palm
  13. A nifty little WordPress plugin...
  14. i find i want to add more posts in some random series, just so i can use my new plugin
  15. This is a test of the Simple Series post system... This is only a test
  16. Anti-Virals
  17. Simple Series - Half-Life; Market Research
  18. DrawBot – The Assembly, Part VI
  19. DrawBot – Printed Parts
  20. DrawBot – The Assembly, Part VII
  21. DrawBot – The Operation, Part I
  22. DrawBot – Printing, Part II
  23. DrawBot – Why are you crying?
  24. DrawBot – Calibration
  25. DrawBot – Pen Selection
  26. DrawBot – How to Recover from a Stalled Print!
  27. DrawBot – Drawing Success(ish)!!!
  28. DrawBot – Pen Selection, Part II
  29. DrawBot – Onwards and Upwards!
  30. DrawBot – Another Successful(ish) Drawing!, and an Update
  31. Plugin Considerations
  32. TSP FTW!
  33. Speedier DrawBot Drawings
  34. The biggest inkjet printer ever
  35. Why do DrawBots draw on walls?
  36. Maze Code + Polargraph?
  37. Ideas for improving my DrawBot
  38. The Eagle Has Landed
  39. Every Body Needs a Skull
  40. DrawBot, now ACTUALLY wall mounted!
  41. OCD Plugin Stats and the WordPress.org Statistics API
  42. How to add a custom button to the WordPress Visual TinyMCE Editor
  43. A Study of Drawing Robot Pen Holders and Design Considerations
  44. Drawing Robot Pen Holders, Calligraphy Pens, and Thought Experiments
  45. 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>