Is this code safe to run?
Being a noob when it comes to these things, I suppose it doesn't hurt to ask (and that it's OK to be cautious and skeptical).
Are these below-listed two pieces of code safe to run on a WordPress website?
It's a code made by buymeacoffee platform (similar to Patreon - my review).
Floating widget code:
<script data-name="BMC-Widget" data-cfasync="false" src="https://cdnjs.buymeacoffee.com/1.0.0/widget.prod.min.js" data-id="reljas-id" data-description="Support me on Buy me a coffee!" data-message="" data-color="#FF813F" data-position="Right" data-x_margin="18" data-y_margin="18"></script>
This code returns the following error when clicked upon, shown on the frontent, with a browser console tool (F12):
This other code is for a (nicely designed) support button - and it doesn't return any "errors" in the console:
<script type="text/javascript" src="https://cdnjs.buymeacoffee.com/1.0.0/button.prod.min.js" data-name="bmc-button" data-slug="reljas-id" data-color="#FFDD00" data-emoji="🍺" data-font="Cookie" data-text="Buy me a beer" data-outline-color="#000000" data-font-color="#000000" data-coffee-color="#ffffff" ></script>
Relja of House Novović, the First of His Name, King of the Plains, the Breaker of Chains, WirMach Wolves pack member
BikeGremlin's web-hosting reviews
Comments
I've not used it, but is there a reason you don't just want to use their plugin?
https://www.buymeacoffee.com/wordpress
To put it briefly: the plugin sucks.
PHP errors - apparently not PHP 8.1 compatible.
Plus, it would be yet-another-plugin, which is a very bad policy for running WordPress sites in my opinion and experience.
Relja of House Novović, the First of His Name, King of the Plains, the Breaker of Chains, WirMach Wolves pack member
BikeGremlin's web-hosting reviews
Fair enough! Some of the Google Pay errors suggested it might not be liking the framing and I naively hoped their plugin would do it properly.
All the 404's from Stripe suggest their widget is pretty broken too :-(