Deficiency Of Women In Religion (Naqis-ul-aqal & Naqis-ud-deen)
Whatever the meaning one takes, one should know that this is a human expression on an occasion, not a religious statement or knowledge of Deen. Not all the sayings of the prophet were religious in nature. Women held less responsibility in worldly affairs; this is about the state of women in that particular civilization, where women were not involved in the social and legal matters. Their lesser share in prayers due to menstruation is also a fact. Despite their less experience and fewer responsibilities, they can influence more experienced men.
She is not required to pray that prayer; however, if she says it, it is ok.