A common pleco can grow to be 18", far too big for a 10g tank, too big for a 55g tank infact although many cram one into a 55.
The goldfish is a coldwater fish, the pleco is tropical, someone isn't going to be happy with the tank temp.
goldfish = cold water - 10 gallons per fish
common pleco = tropical water - 65+ gallons per fish