In order to reduce the site speed, it is mandatory to remove all the unnecessary plugins that has been installed on your WordPress website. It is because they take a lot of time to load even though they are hidden in your website. After uninstalling the plugins, you have to enable the caches so that whenever the same user visit the website it opens quickly by catching the previously saved caches. Optimizing all the images that are placed on your website. It means the size of the images should be as low as it could be but the quality should not be worst. It helps in keeping page load time lower. Keeping the database clean time to time will also help in controlling the website speed. If your website has blogs and you have enabled commenting over it, then you should immediately turn it off as it definitely increase the website load time. Last but not the least, you should not only buy a good hosting service but it is also recommended to consult with a professional web development company to perform all these tasks for you as it requires experience to perform the tasks.
Could be what the proxy is sending out. Or more likely, your code might be just returning a binary - true or false ... or in other words, 1 or 0.
Have you tried this code on a live server?
... Could also be a Xamp issue?
WordPress website loading time more than 10 seconds, client asked me to fix the issues and decrease the load time, I have tried through google site speed test tool and fixed the errors, also fixed the image sizes and compressed them, Now the only issue is from the Wordpress server because the server is very slow. I am thinking to move on a managed cloud platform, Would it work or not?