How much more secure is smarty over just plain php scripts and why?

Basil