what is the minimum length of the mirror needed to view the whole body at any distance?

Put top at about eye level to see head.

then bottom needs to be about half your height to see feet.
so half as tall as you are