Student performance is a critical factor in academic achievement. Other factors like the students' self-efficacy, affective commitment, and psychological wellbeing play a significant role in shaping their performance. The present study aims to understand the role of self-efficacy, affective commitment, and psychological wellbeing in the students' performance. To carry out the study, the data were collected from the 308 students currently enrolled in the public sector universities of China. Smart-PLS is used to check the validation of the proposed hypotheses. Partial least square structural equation modeling is used for hypothesis testing. Results of the study show that self-efficacy does not play a role in the student performance in public sector universities; however, the affective commitment of the students plays a significant role in their performance. The psychological wellbeing of the students has a substantial influence on their performance. Furthermore, the results have also indicated that psychological wellbeing is an important indicator of student performance. It has also been revealed that psychological wellbeing significantly mediates the relationship between self-efficacy, affective commitment, and student performance. The students who availed of the digital mental health services were found to have a low relationship between their self-efficacy and performance.