This is a really useful and informative writeup.<p>However, to me it just highlights a lot of things that Wordpress/PHP is bad at. For one, no mention of testing here (or really hardly anywhere in PHP-land), although keeping the API logic in a separate class is a good idea.<p>Also, the flexibility/ease of use tradeoff going from wp_remote_get and friends is terrible. It's so frustrating that PHP doesn't have a better general networking solution than "idk, just fork to curl". The Guzzle library helps a lot here, but I don't see a lot of the PHP/WP community embracing it much.<p>With the current plethora of widely-supported Web development frameworks, I really don't see any reason to use PHP or Wordpress for new projects.