Moved configuration check in plugin constructor