Perfecty Push Notifications


Push Notifications that are self-hosted, you don’t need API keys to integrate with external Push Notifications providers that will charge you later. It’s Open Source and the information is stored in WordPress, so that you can send Push Notifications directly from your server for free!

In a rush looking for Push Notifications alternatives now that you’ve exceeded the free-tier of your current provider? Loosing your users every time you change your Push Notifications provider? Worried about where the Push Notifications information is stored? With this plugin you don’t worry about that.

Easily migrate your users from other providers, send custom Push Notifications, or automatically when publishing a post, and see the stats in your Dashboard.


  • Self-hosted: total control of your information, and no need of third-party integrations.
  • Migrate users from other Push Notifications providers like OneSignal.
  • PWA Friendly (Tested with Super PWA) and AMP plugins (Transitional mode).
  • Send Push Notifications on posts publishing. You can use the feature image of the post or customize the title.
  • Send custom Push Notifications: you can easily change the icon, the image or the URL to open.
  • See the stats in the Dashboard.
  • Customizable public widget.
  • The user authorization tokens stay in your server when they subscribe to receive your Push Notifications.
  • Easily comply with GDPR: all the Push Notifications information is processed and stored in your server.
  • Open Source: no hidden fees, and open transparency.
  • Offline browser Push Notifications through Push API.

gmp extension for message encryption (optional)



Want to check the code?

This plugin uses the Chart.js library for the admin stats.

Perfecty Push installation

  1. Download the plugin

  2. Install it and activate it

  3. Go to the Perfecty Push Notifications > Dashboard section and start sending Push Notifications

Note: Check the FAQ if you miss the gmp extension.


  • Dashboard and Push Notifications stats
  • Send a new Push Notification
  • Public widget (subscribe prompt)
  • Public widget (opt-out)
  • Send Push Notifications on post publishing
  • Notifications admin
  • Users admin
  • Settings


I am using a third-party Push Notifications provider, can I migrate my users to my server?

Absolutely, Perfecty Push can override the previous service worker from your user’s browser. Once they visit your site, the worker is automatically replaced and you can start sending Push Notifications directly. For that you need to first remove your provider’s JS SDK, and then enable the Remove conflicting workers option in Perfecty Push. Go to Perfecty Push > Settings > Public Widget.

After v1.0.7 Perfecty Push uses the /perfecty/push scope (you can also customize it), so it’s friendly with any PWA/AMP plugin that uses the root scope (e.g. Super PWA plugin). However, if you use the Remove conflicting workers option, it will deregister any existing worker, so be careful with this option.

Why do I need the `gmp` extension?

Sending push notifications involves encryption and gmp (GNU Multiple Precision) brings the best performance for such operations.

The gmp extension is optional in PHP >= 7.3. In PHP 7.2 you can’t generate the VAPID keys without it, however you can still generate them with openssl. In any case, it’s recommended to use gmp for better performance.

How do I install the `gmp` extension?

It depends on the operating system, but in theory you install it as a regular PHP extension. More information: Install the gmp extension

Is this working in production?

This plugin has been deployed in a real site with more than 800.000 monthly visits and around 8.000 Push Notifications subscribers (~240.000 notifications/month), however we recommend you to test it before deploying it to a production environment.

How do I report a bug?

You can create an issue in our Github repo:


4 0411 December 0411 000000 2021
I am starting my website and I looked for many different plugins to send push notifications, but I found that this plugin is a great option for me to get in touch with my visitors. I highly recommend Perfecty for your website and it takes just some minutes to be fully setup.
21 2148 October 2148 000000 2021
It is working well (waiting if it supports 100,000 subscribers) I installed the plugin yesterday, there are already more than 2000 subscribers, I have sent some notifications without problems on my server. Hoping to see the list grow and see if the server supports over 100,000 subscribers. (Cloud Hosting: 4 CPUs, 8 GB RAM) Please add the number of clicks on notifications to the statistics. I cannot see what percentage of users click. Thanks
30 3005 August 3005 000000 2021
I was using a a another plugin, but they were slowing down my website speed because of API and etc. But after installing this plugin although i faced problems -. But team helped me And it's working fine now.. THANKYOU FOR AWESOME plugin
15 1500 August 1500 000000 2021
A very cool plugin. No registrations, restrictions and other things. Very simple settings, but it works perfectly. Thank you to the developers for their efforts!
12 1240 August 1240 000000 2021
Very easy to use, but to my mind there are 2 important features missing: 1. Possibility to change the design of subscribe widget - at least font size (Especially on mobile devices, the text is too small and can be difficult for many to read); 2. Custom post type support for automatic news notifications; 3. Also a PO file would help translate the plugin.
4 0440 July 0440 000000 2021
Highly recommended plugin! Never seen developers responding and taking actions so fast and actually implementing suggestions and listening to the feedback.
Read all 15 reviews

Contributors & Developers

“Perfecty Push Notifications” is open source software. The following people have contributed to this plugin.


“Perfecty Push Notifications” has been translated into 4 locales. Thank you to the translators for their contributions.

Translate “Perfecty Push Notifications” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • Improvements to the job management section and the job stats. Related #104, #102


  • Performance improvement, send ~10.000 notifications/minute in a 2 GB RAM/1vCPU server. Related: #81 and #86
  • Parallel flushing size parameter was added with a default value of 50 notifications.
  • Custom welcome message that can be enabled/disabled. Thanks to @mociofiletto. Related #91
  • Added the ‘perfecty-push’ suffix to the server_url option.


  • Unleashing mechanism for stalled notification jobs. Fixes #86
  • Send logs to error_log() by default when logging is not even enabled. Fixes #85
  • Tested up to WordPress 5.8


  • Add the plugin links shown in the WordPress Plugin installer
  • Icon max width in the Notification details.


  • Use the already defined site icon before v1.3.0.


  • Option to always send a Push Notification on Post publishing. Thanks to @mociofiletto. Fixes #64
  • Google Analytics UTM suffix for Url to open. Fixes #49
  • Send notification after subscribing. Fixes #63
  • Remove conflicting Service Workers for known providers, and custom expression. Fixes #76
  • Option to enable fixed notifications that don’t fade out. Fixes #66
  • Display prompt after a number of visits. Default: Immediately. Fixes #70
  • Added hooks and filters for external integrations: perfecty_push_broadcast_scheduled($payload), perfecty_push_wp_user_notified($payload, $wp_user_id) hooks and the perfecty_push_custom_payload($payload) filter.
  • Default Icon from the Media Library #68
  • Show icon in the Notifications prompt. Fixes #71
  • Default dialog texts in Settings. Fixes #69.
  • Always send featured image on Post publishing. Fixes #65


  • Point to the correct JS SDK commit hash


  • Fixes conflict with TimePicker and ChartJS #62
  • Jquery .on() instead of .load() 67


  • Schedule notifications is now possible thanks to @mociofiletto. Fixes #29
  • Support external plugin integrations. Fixes #5
  • Push Subscribers are linked with their WordPress User Id if they’re logged in users
  • Push Server logs (DB Driver initially). Fixes #30 and #31
  • Remove the users that have opted-out. Fixes #37
  • Add a cron monitor to check the notification jobs execution. Thanks to @mociofiletto. Fixes #33
  • Option to don’t show the Bell/Widgets when asking permissions. Solves #48


  • Increased payload size to 2.000 characters to support arabic characters. Issue #46


  • Upgrade url-parse to avoid CVE-2021-27515
  • Styling fixes in the Bell control


  • CSS style changes to the bell.
  • Move icon to an svg tag in the HTML as suggested by @stkuhn.
  • Open subscription dialog if the bell is clicked and the user is not subscribed.
  • Fix bug in the Perfecty Push Service Worker detection. Issue #42


  • IP address collection is disabled by default. It can be enabled using the “Enable and collect data from users” option in the Segmentation settings.
  • Added option to hide the bell after the users have subscribed.


  • Remove jQuery dependency from the public area
  • Detect duplicate endpoint auth/private keys when subscribing


  • Integrate the Perfecty Push JS SDK: This is backwards compatible but upgrade to this version with caution.
  • Upgrade the PHP Push Server Lib to the latest version
  • Performance improvements
  • Debugging mode
  • The server_url now defaults to get_rest_url(), so the preference value is reset to an empty value in order to use it
  • Fix various issues


  • Add options to send featured image and customize notification title in notifications sent on post publishing. Thanks to @mociofiletto
  • Removing wp-i18n variable definitions in JS from the global scope. Thanks to @mociofiletto


  • PWA and AMP Friendly (Tested with Super PWA and AMP for WP plugins)
  • Support MySQL < 5.6 (max index key=767)
  • Improving Internationalization
  • Apache mod_security, Nginx default configuration and WAF friendly


  • Added WordPress 5.7 support


  • Implement internationalization. Thanks to @mociofiletto
  • Support older WordPress versions


  • First version of the plugin with basic functionality