Even when competing with powerhouse online retailers like Amazon, several bricks-and-mortar shopping centers are still managing to hold their own, Jim Cramer said Wednesday on CNBC's "Mad Money."

Cramer cited Federal Realty Investment Trust as an example of one company that's not getting lost in the fray. He called the firm "the best shopping center real estate investment trust in the country" and said it is still going strong because of its diversified portfolio that wasn't "tethered to any one retailer" and its extensive geographic diversity.