I especially liked this line by Jack Sparrow: 'Elizabeth, that outfit does you no justice. It should be a dress or nothing. And I just happen to have no dress in my cabin'.
But good set pieces and a few funny lines do not IMO make a good whole, and they certainly don't make a masterpiece.