A localization tensor in term of periodic position operator is recently proposed (de Aragão et al. (2019) [20]). We numerically study it in the one-dimensional Anderson model, Aubry-André-Harper model and slowly varying incommensurate potential ones, respectively. Due to its compatibility with periodic boundary conditions, we find it can properly reflect state localization properties, mobility edges and metal-insulator transitions in these famous models. In addition, it is better than the participation ratio to reflect localization properties of extended (delocalized) states. So it can be as a sensitivity index to characterize Anderson transitions.