Manchester City were pushed all the way by Viktoria Plzen as they claimed a 4-2 win at the Etihad Stadium.