Now that you're around, i'm currently measuring SNR, SINAD, THD, THD+N and SFDR. I also considered calculating ENOB, but i'm not sure if it's something worth calculating when the oscilloscope i take the signal data from uses an 8-bit ADC.
Addition increases precision. So if you add up 256 8-bit values, you get a 16-bit sum, with 16 bits of precision. This also applies to the mean, but it's really the addition part of the mean that produces the increase. Dividing the 16-bit sum into a mean, by 256, would give you 8 bits of integer and 8 bits of fractional part. But the division part of the mean isn't needed to increase precision - all summing will do it. Including things like low-pass filters.
To calculate THD+N you remove the fundamental. The easiest is to capture both the fundamental input and the output. Then you can multiply the fundamental or divide the output to normalize their power/voltage levels (by the amplifier or circuit gain), take an FFT of both, and subtract the fundamental input spectrum bin by bin from the output. Then sum up the power/voltage of the remaining bins, and there's your answer.
If the output fundamental is lower than the input (after normalization) you have
gain compression. This needs to be characterized and corrected for, or it will show up as THD+N or even mask it (by the fundamental contributing negative power in a portion of the spectrum).