In my experience with terrestrial greenery, as in peas, broccoli, sprouts, lettuce, cabbage etc etc is that they go straight through the fish, and can be quite messy for your filters if you've been heavy handed with the feeding.
This is bad for your filters....but extremely beneficial for your fish. Beneficial for your fish as in giving them a good "clean out". Greens are probably the best laxative you can give your fish, and giving them a good clean out once in a while aids their overall digestive tract.
Fresh cooked peas, minus their skins, can be fed whole to bigger fish, cut up into smaller pieces for smaller fish, or mashed for tiddlers, though obviously mashing can be messy!
I tend only to feed terrestrial greenery to my giant gourami nowadays, in small quantities. But if any of my other fish exhibited bloat/constipation I'd feed them too to help clear their pipes.