Thank you for your question.
As your wife is on a visit visa, she must leave on time. However, she can extend her visit visa in the UK if there are exceptional circumstances for example your wife being ill. In such circumstances, you need to apply under the application form called FLR (O) and provide the medical report to the Home Office.
Please do not forget to rate my answer.