Remove useless arguments
Return the message instead of echoing it
Use the wrapper function to create the notification
Remove plugin slug var which is no longer used
Store the $_POST data into a var to make the function testable
Add new hooks within the registration process
Remove an extra call to notice display