Hi @ellasbubbles
it is highly recommended to offload this into an external file
wcPPCPSettings
is the id of a <script> tag that contains Javascript that converts the characters to a variable that’s used by the plugin to store dynamic values. It cannot be converted to a JS file.
if all of the code is even required to begin with
Yes it’s required, we wouldn’t include it in the plugin if it wasn’t.
Can you share one of these reports so we can understand exactly why “SEMRush” doesn’t like this? Just because they’re flagging something that doesn’t mean it’s bad. The script you’re referring to isn’t going to slow your site down which seems to be your principal concern. Are there other concerns beyond performance?
Kind Regards