How does impurities affect percent yield?
Well, because they are present, they will lead to an overestimation of actual yield.
Undoubtedly, the most common impurity in isolated laboratory product is water. Samples are hard to dry, as water sticks around tenaciously. The presence of water will obviously add to product mass, and decrease melting points substantially.