That is assuming that the 3rd party is secure.
Wordpress gets a new exploit every week, it seem, or anything else written in PHP for that matter.
Still I agree with the sentiment, Wordpress, especially hosted, that is kept updated, will be more secure than rolling your own.