Answer:
Her torn, yellow dress made a perfect rag to clean up the messy front porch.
Step-by-step explanation:
It isn't #1 because it's missing comma(s), making it ungrammatically correct.
It isn't #2 because there is an unnecessary comma for the porch. Although it is messy, having a comma right before "front" makes little to no sense.
It is #3 because it's implying the dress is torn and yellow, something you do not need to indicate for the porch.
It isn't #4 because, although the first half of the sentence has it correctly placed, remember that the porch being messy is not something that needs a comma.
Hope this made sense and hope this helped! : D