Mechanical performance assurance is one of the key concerns in the design of small total reflection optics. This article addresses the issue of insufficient strength margin in the design of a total reflection optics for a space photoelectric sensor. Firstly, structural design optimization research was conducted on the optics, and the effectiveness of structural improvement was verified through finite element analysis; Secondly, a concave analysis was conducted under mechanical test conditions to further reduce the risk; Afterwards, the accuracy of the simulation results was verified by comparing the simulation with the experiment through small-scale random vibration tests; Finally, sine vibration tests, random vibration tests, shock tests, acceleration tests were conducted on the entire machine, and optical tests were conducted before and after the tests. The experimental and testing results indicate that the entire machine has passed the mechanical test assessment at the appraisal level and maintained good optical performance. The total reflection optics optimized by mechanical design meets the requirements of engineering applications.