You can start by getting rid of all of your String variables and learn how to use C strings instead. The String class will eventually consume so much memory you run into trouble.
You should also learn how to write a function since your loop() program has tons of duplicate code for each button. The only difference is a tiny portion of the URL you are sending which could be passed as a parameter.