This was made using the Wifi Extension blocks. This checks for offline / online and uses the return speeds to get a ping to the server, and also divides 30 by the amount of time it took to handle those 30 requests, therefore being requests/second. It seems accurate because those values line up.
All done by me.