When you install Mac apps, plug-ins, and installer packages from outside the App Store, macOS checks the Developer ID signature to verify that the software is from an identified developer and that it has not been altered. If you download and install apps from the internet or directly from a developer, macOS continues to protect your Mac. If there’s ever a problem with an app, Apple can quickly remove it from the store.
Apple reviews each app in the App Store before it’s accepted and signs it to ensure that it hasn’t been tampered with or altered. The safest place to get apps for your Mac is the App Store.