Choose the best replacement for the part in quotes.
If he 'had worked' harder, he would have cleared the written test.
Explanation
This is an unreal condition about the past, so the 'if' clause takes the past perfect ('had worked') and the main clause takes 'would have + past participle' ('would have cleared'). No improvement is needed.