Apologies for taking so long to get back to you, missed this message.
Progressive giving context.
Imagine a more complex plugin, where we require a number of things to be inputted by the user for the plugin to run properly.
For example, disable a menu item if the user’s selection is empty. Or if they need to enter an API key.
Rather than wait for a user to input an error, we can prevent it up front, for a better user experience.