Preheat your oven to 400°F (200°C).
Rice the broccoli by chopping fresh florets and pulsing in a food processor or thawing and draining frozen broccoli.
In a large mixing bowl, combine riced broccoli, egg, cheddar cheese, Parmesan cheese, flour, grated onion, garlic, salt, and pepper. Mix until well combined.
Shape the mixture into small tots and place them on a parchment-lined sheet pan.
Bake for 20-25 minutes until golden brown and crispy, flipping halfway through.
Let cool for a few minutes before serving warm.