The status of a person can only be valued based on how much one worships God and is connected to Him. Only by doing this can a person achieve the state that one is meant to reach, becoming a manifestation of the verse:
وَما خَلَقتُ الجِنَّ وَالإِنسَ إِلّا لِيَعبُدونِ
I did not create the jinn and the humans except that they may worship Me
This is not limited to praying, fasting, and other acts of worship. It also depends on the person's thoughts, intentions, and relationships with those around him. All these things must be dedicated to the Creator and based on what He loves and is pleased with. A person's purpose in any good deed must be gaining His pleasure and nearness.