It just needs to be helpful, on-topic, and well-written to generate traffic and link juice over time. A good guest post is on-topic, relevant, and of various lengths. Most guest posts are between 500 and 1000 words, but they should be much longer. More like 2000 words.