I don't agree with the interpretation that "Long prayers are ... vain, needless, and ...
Prayer are supposed to be a loving and personal communication between us and God. It can be as long as it takes to tell a story or as short as one word. I believe what the writer of this verse wants to convey to us is that in prayer, we need to be honest and sincere about what we pray just like when we talk to someone we love.