How to test a WordPress plugin in real time

If you use a local dev environment you can run WordPress and your plugin on your computer, any changes you make are instant as there is no uploading/installation step.

Since you are already using XAMPP, open the files directly with your editor from the XAMPP folder that contains the WordPress install. There is no need to upload and install as everything is on the same computer.