This is a really useful and informative writeup. 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. 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 gen…
> For one, no mention of testing here (or really hardly anywhere in PHP-land), [...] In a different life I had to maintain a website based on the Drupal CMS and also one based on the then-popular Laravel PHP framework, and in both environments testing was common and well-supported. As much as I dislike PHP, such a blanket statement does not hold up.
In your experience, what are better web server languages and frameworks?