Something "leaves much to be desired" when it is not satisfactory.
Think of desiring additional qualities that something is lacking. For example "The service here leaves much to be desired" means that you would like the waiters to be more attentive and helpful, and that they should be more polite etc.
It can be used in written or spoken English.