Thanks for the proposal. That gets us somewhere already, although only for non-landlocked countries. Using the perimeter also opens us up to the coastline paradox.
I guess you’d have to decide if archipelago nations are measured as the geometry of the sea they own, or as discrete islands.
I think that it might serve us better to consider them as distinct islands, to keep the measures comparable with landlocked countries.