Messier 51 refers to the connected pair of galaxies known as Messier 51a (NGC 5194) and Messier 51b (NGC 5195). It is also known as the Whirlpool Galaxy although technically that name applies to Messier 51a rather than both.
The name ‘bird’s foot’ refers to the appearance of the seed pods on their stalk. Five leaflets are present, but with the central three held conspicuously above the others, hence the use of the name ’trefoil’.