Whole Foods delivered quarterly earnings that beat analysts’ expectations on Wednesday, while sales figures were in line.