Always important to note that "code" does not mean "must meet this standard". Many existing installations will not meet current code and there are varying levels of code (at least in the UK) that mean anything from an electrician can ignore minor faults through to network-notifiable issues.

But that's rather the point here that consumers are the ones who are going to be plugging in these devices, with no appreciation for their circuits and safety devices. The only code that matters is the last version of it adhered to when their home was last wired. In extremes, that can be 40 years or more.