Don't timeout while download an update.
Don't call ini_get() or set_time_limit() unless the functions are actually available.
PHPCS cleanup