Alabama ranked the second-least energy-efficient state in a study conducted by WalletHub on the continental United States.