Closing brackets, braces and quotes at the end of a line or before a colon, spaces outside strings, colons and indentation at the start of lines, and empty lines. The calculator doesn't need any of these.
Yes. It only removes things the calculator treats as optional, so the program runs the same. An empty line right after an If is kept, because removing it would change what the If applies to.
It depends on the code. Programs with many Output(, Text( and Disp commands often shrink by 5 to 15 percent. The result shows the exact size before and after.
Usually not noticeably. In a few cases, such as a For( loop without its closing bracket right before an If, older calculators can run slightly slower.
No. Everything happens in your browser, and your files never leave your device.