Eroded plugs, i.e. gap has increased from spec, will effect emissions and power, dirty really doesn't make any difference, but if its really filthy, oily, wet, that indicates other problems that need to be fixed. As well, arguably enough foreign matter coating the plugs could short them instead...