Poop and mucus?TMI

Sometimes when I go to bathroom normally a week or so before period I poop out mucus  And when I wipe I have discharge goopy stuff out of my butthole :( I'm worried but it only happens once and a while any ideas why?