A survey is a detailed visual inspection of a property's condition.
Surveys are not mandatory and buyers can choose whether or not to have a survey on the property they are purchasing.
If a buyer does decide to have one, they'll need to hire a surveyor to carry out these checks.
This is different to a mortgage valuation, you can find out more about this here.