The code which process sending reminder is located at plugins/system/osmembershipreminder/osmembershipreminder.php
It is a Joomla system plugin. It will be run each time there is someone access to your site. However, the plugin doesn't send reminder every time your site is run. It only process sending reminder of the current time compare to the last time it process sending is more than 30 minutes.
The purpose of having secret code is that :
1. You can setup a cron job to trigger accessing to your site
yoursite.com/index.php?secret_code=SECRETCODE
2. By that setup, the plugin will only be run when your site is accessed via cron job, not when someone accessing to your site. It is more reliable than using a system plugin
Hope the explanation is clear.
Tuan