If your dishwasher is working badly of a sudden and stuff’s still dirty at the end of the cycle, don’t assume it needs replacing. Food waste may be trapped in the filter (which ends up back on the dishes). Remove and clean with a soft brush under the tap. Do this weekly.