There is no need to clean the floor unless the cat has already previously knocked over the flower pots. Therefore it is not necessary to use a past perfect ( had knocked ) to clarify the time sequence. I would use the past; however, it is not wrong to use the past perfect.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.