Retirement tax questions

Is the contribution limited to 25% of wages or of net profit?

 

If it is wages, and the excess is from 2021, what is the best way to correct? Can I just submit 5330 and pay 10% of the overage?