I'm surprised Portugal didn't score higher. One day in the car I randomly asked myself the same question of "which country is the most rectangular", and Portugal was the first one I thought of. Is it because the Azores were included? Would like to see the rank if they had only the mainland.
Others are also affected by islands and territories, see France with French Guyana etc, Norway with Svalbard etc. France is quite a square country if you only consider its mainland so it is an odd choice to include non mainland areas but I guess it is a difficult greyzone on what to include and not.