By seeing whether a Liouville type theorem holds for positive, bounded, and/or finite energy $p$-harmonic and $p$-quasiharmonic functions, we classify proper metric spaces equipped with locally doubling measure supporting local $p$-Poincar\'e inequality. Similar classifications have earlier been obtained Riemann surfaces Riemannian manifolds. We also study the inclusions between these classes o...