Based on its latest earnings report, Wal-Mart needs to do much better in order to close the gap with Amazon and Costco.