Depends on what kind of worms. Ideally you should get a test done and figure out what they have first. One of the largest problems I see is over medication of pets and humans. Treating with something that does not kill what you are trying to kill builds resistance in all microbes and living...
Looks like cecal poo and it's normal for all birds to leave one of those every once in a while. Sometimes it is light like your pic, sometimes it is dark like a melted Hershey's. It can be more or less "melty" depending on what they've eaten and the weather (hot = lots of water). Foam can be a...