Move private functions to the bottom
Don't check dev mode status when keys aren't set
Use WordPress checked function for checkboxes and no PHP shorttag usage
Remove curl dependency by using wp_remote_post()