Preheat your oven to 400°F (200°C) for a crispy exterior.
If using fresh broccoli, steam until tender, cool, and rice. If using frozen, thaw and drain.
In a large mixing bowl, combine riced broccoli, egg, cheddar cheese, Parmesan cheese, flour, grated onion, minced garlic, salt, and pepper. Mix until well combined.
Scoop out small portions and shape them into bite-sized tots, squeezing slightly to hold together.
Line a baking sheet with parchment paper, arrange tots in a single layer, and bake for about 20-25 minutes until golden brown and crispy.
Remove from oven, cool slightly, and serve with your favorite dipping sauce.