Init User Engine – Gamified, Fast, Frontend-First
Gamified user engine with EXP levels, Coin/Cash wallet, check-in, VIP, inbox, and referral – powered by REST API and Vanilla JS.
Install in
Init User Engine is a lightweight, no-bloat user system for modern WordPress sites. It’s designed for maximum frontend flexibility and gamified user engagement. All dynamic interfaces are rendered via JavaScript with real-time REST API interaction.
No jQuery. Minimal settings. Smart by default.
What you get:
- Display user avatar and dashboard via shortcode
- Show level, EXP, Coin/Cash, and full user wallet
- Frontend login & registration modal with Cloudflare Turnstile (or built-in math captcha) protection
- Let users check-in daily and receive timed rewards
- Auto-track referral registrations with reward system
- Let users buy VIP status using Coin, Cash, or both
- Redeem Code / Gift Code and dedicated VIP Code system, with CSV export from wp-admin
- Built-in inbox for notifications (uses custom DB table), with pinned/expiring messages and a stats dashboard
- Custom avatar support with upload & preview modal
- Send custom notifications to selected users or all members from wp-admin
- Optional “Require Login to Access Site” mode that gates the entire frontend behind the built-in login modal
- Optional one-step “Login After Register” so new users land on the site already signed in
This plugin is the core user system behind the Init Plugin Suite – optimized for frontend-first interaction, extensibility, and real-time gamification.
GitHub repository: https://github.com/brokensmile2103/init-user-engine
Features
Profile & Avatar
- Avatar shortcode
[init_user_engine]– renders the guest login button or the logged-in avatar with dropdown dashboard automatically - Modal dashboard showing level, EXP progress, Coin/Cash wallet, and quick links
- Custom avatar upload with live preview, crop-free flow, and one-click revert to the default/Gravatar image
- Configurable upload policy (allow everyone, VIP only, or disable uploads entirely) with a configurable max file size
- Optional display name change limit (e.g. once every 7 days, like TikTok), enforced in the profile modal,
wp-admin/profile.php, the REST API and WooCommerce Account details - Configurable length limits for every Edit Profile field (display name, bio, Discord, links), with a live character counter for the bio
- Hardened Edit Profile: changing the password asks for the current password, signs out other devices and sends the WordPress “password changed” email
- Theme override support: any template file can be overridden by copying it to
your-theme/init-user-engine/
Accounts, Login & Registration
- Frontend login & registration modal – no theme editing or template overrides required
- “Login After Register” option to automatically sign users in right after they create an account (disabled by default)
- Failed logins reopen the login modal on the current page with an inline error message, instead of redirecting to
wp-login.php - Cloudflare Turnstile captcha on registration, with a built-in math-question captcha as automatic fallback when no Turnstile keys are set
- Optional protection of the native WordPress login, registration, and lost-password forms (
wp-login.php) using the same Turnstile setup - “Forgot password?” form right inside the login modal, using the native WordPress reset flow (can be turned off; a custom Lost Password URL always takes priority)
- Custom redirect URLs for “Register” and “Lost password” links
- Optional “Require Login to Access Site” mode that gates the entire frontend behind the built-in login modal
- Block members from Users (row link or bulk action) or from their profile: a blocked member is signed out of every device and cannot log in until an administrator unblocks them
- Ability to temporarily disable new registrations without affecting other plugins or WordPress core
Gamification
- EXP & Level system with hookable progression logic
- Coin & Cash dual-wallet system with transaction logs and a configurable exchange rate between the two currencies
- Daily check-in with streak milestones and an online-time bonus timer
- Optional Streak Recovery: members who miss a few days can spend Coin to keep their check-in streak alive (allowed missed days and Coin price per day are configurable, off by default)
- Built-in reward hooks for registration, daily login, comments, published posts, and completed WooCommerce orders (when WooCommerce is active)
VIP Membership
- VIP membership system with Coin-based, Cash-based, or combined purchase options
- Multiple configurable pricing tiers per duration, including a lifetime option
- VIP bonus multipliers for Coin/EXP earning
- Optional VIP purchase lock (globally disable new purchases) and stacking restriction
Referral
- Referral module with cookie-based signup tracking
- Separate, configurable rewards for both the referrer and the newly referred user
Redeem & VIP Codes
- Redeem Code / Gift Code module – code in, rewards out
- Dedicated VIP Codes module to grant VIP duration through a code
- One-click CSV export for both code lists (full list, streamed in batches, UTF-8 BOM, and sanitized against CSV/formula injection)
Inbox & Notifications
- Built-in inbox system with pagination and read/claim/delete actions
- Pinned messages that automatically unpin once read, or once their optional expiration time passes
- Admin panel to send custom notifications to selected users or all members, with priority and expiration
- Inbox Statistics dashboard (Users Init User Engine Inbox Statistics) with date-range filtering
- Optional automatic cleanup of read messages older than a set number of days (unread, pinned and assigned-code messages are always kept)
Admin Tools
- Manual Top-up tool for Coin/Cash (Users Init User Engine Top-up Coin/Cash)
- Per-user overview metabox on the WordPress profile/edit-user screen (level, wallet, VIP status, recent activity), with one-click Remove VIP, Ban Avatar Upload and Unlock Display Name actions
Developer-Friendly
- REST API for all features (read/write/modify)
- Action/filter hooks for full customization
- Pure Vanilla JS frontend – no jQuery, no server bloat
Developer Hooks
Filters
init_plugin_suite_user_engine_online_minutes– Modify required online minutes after check-ininit_plugin_suite_user_engine_vip_prices– Modify VIP package pricesinit_plugin_suite_user_engine_referral_rewards– Modify referral rewardsinit_plugin_suite_user_engine_localized_data– Modify frontend JS datainit_plugin_suite_user_engine_calculated_coin_amount– Modify Coin reward before applyinit_plugin_suite_user_engine_calculated_exp_amount– Modify EXP reward before applyinit_plugin_suite_user_engine_exp_required– Modify EXP required per levelinit_plugin_suite_user_engine_checkin_milestones– Set milestone streak daysinit_plugin_suite_user_engine_format_inbox– Modify formatted inbox datainit_plugin_suite_user_engine_render_level_badge– Customize level badge HTMLinit_plugin_suite_user_engine_inbox_insert_data– Modify inbox data before inserting into databaseinit_plugin_suite_user_engine_validate_register_fields– Validate or modify registration fields before account creationinit_plugin_suite_user_engine_after_register– Hook after successful user registration (pass user ID and submitted data)init_plugin_suite_user_engine_daily_tasks– Add or modify daily task list and logicinit_plugin_suite_user_engine_captcha_bank– Extend or modify the internal captcha question bank used for fallback validationinit_plugin_suite_user_engine_format_log_message– Customize transaction log message display with access to entry data, source, type, and amountinit_plugin_suite_user_engine_should_keep_original– Override decision to keep original uploaded avatar (GIF or other formats)init_plugin_suite_user_engine_vip_expire_soon_threshold– Modify the threshold (in seconds) used to determine when VIP is considered close to expirationinit_plugin_suite_user_engine_body_vip_classes– Add, remove, or modify VIP-related CSS classes applied to the<body>elementinit_plugin_suite_user_engine_theme_colors– Modify theme color system (primary and active colors)init_plugin_suite_user_engine_streak_restore_max_days– Modify how many missed check-in days a user may cover to keep their streak (return0to disable it for that user)init_plugin_suite_user_engine_streak_restore_cost– Modify the Coin cost of keeping a streak (receives total cost, missed days, and user ID)init_plugin_suite_user_engine_lostpassword_modal_enabled– Enable or disable the lost password form inside the login modal (receives the current value and the plugin settings)init_plugin_suite_user_engine_display_name_change_days– Modify how many days a member has to wait between two display name changes (receives the days from the settings and the user ID;0= unlimited)init_plugin_suite_user_engine_display_name_limit_applies– Returnfalseto let a user (or role) change their display name freely (receives the current value and the user ID)init_plugin_suite_user_engine_inbox_auto_delete_days– Modify how many days read Inbox messages are kept before automatic deletion (0= never)init_plugin_suite_user_engine_inbox_auto_delete_keep_meta_keys– Metadata keys that mark an Inbox message to keep during automatic deletion (defaultcreated_by)init_plugin_suite_user_engine_inbox_auto_delete_batch/init_plugin_suite_user_engine_inbox_auto_delete_time_limit– Ids perDELETE(default 5000) and seconds per run (default 20) of the automatic deletioninit_plugin_suite_user_engine_dashboard_stats_max_age– How old (in seconds) the Dashboard Inbox widget numbers may be before a background refresh (default 900)init_plugin_suite_user_engine_profile_field_limits– Modify the maximum characters of the Edit Profile fields (keysdisplay_name,bio,discord,url; values are clamped to the hard ceilings 250 / 10000 / 255 / 2048)init_plugin_suite_user_engine_profile_url_hosts– Domains accepted for thefacebook,twitterandwebsitefields (return an empty array to accept any domain)init_plugin_suite_user_engine_profile_genders– Allowed values of the Gender field (default'',male,female,other)init_plugin_suite_user_engine_profile_update_rate_limit– Edit Profile saves allowed per minute (default 10,0= no limit)init_plugin_suite_user_engine_require_current_password– Whether the current password is required to set a new one (defaulttrue, not recommended to turn off)init_plugin_suite_user_engine_current_password_attempts– Wrong current passwords allowed per 15 minutes (default 5)init_plugin_suite_user_engine_password_max_length– Maximum length of a new password (default 128)init_plugin_suite_user_engine_validate_new_password– Return aWP_Errorto refuse a new password (for a stronger policy)init_plugin_suite_user_engine_avatar_mimes– File types accepted for avatar uploads (default jpg, png, gif, webp; SVG is never accepted)init_plugin_suite_user_engine_avatar_upload_rate_limit– Avatar uploads allowed per hour (default 10,0= no limit)init_plugin_suite_user_engine_avatar_sizes– Avatar sizes in pixels cut from each new upload (default from the settings: 50, 80, 150; each from 16 to 512)
Actions
init_plugin_suite_user_engine_level_up– When user levels upinit_plugin_suite_user_engine_exp_added– After EXP is addedinit_plugin_suite_user_engine_transaction_logged– After Coin/Cash is loggedinit_plugin_suite_user_engine_exp_logged– After EXP log is recordedinit_plugin_suite_user_engine_inbox_inserted– After new inbox messageinit_plugin_suite_user_engine_inbox_auto_deleted– After an automatic cleanup of read Inbox messages finishes (number deleted, cutoff)init_plugin_suite_user_engine_referral_completed– When referral is completedinit_plugin_suite_user_engine_after_checkin– After user check-ininit_plugin_suite_user_engine_streak_restored– After a user paid Coin to keep their check-in streak (user ID, missed days, cost, new streak)init_plugin_suite_user_engine_after_claim_reward– After user claims rewardinit_plugin_suite_user_engine_vip_purchased– After VIP is purchasedinit_plugin_suite_user_engine_add_exp– Triggered when adding EXP via hookinit_plugin_suite_user_engine_add_coin– Triggered when adding Coin via hookinit_plugin_suite_user_engine_coin_changed– After user’s Coin balance is updatedinit_plugin_suite_user_engine_cash_changed– After user’s Cash balance is updatedinit_plugin_suite_user_engine_admin_send_notice– When admin sends notification via wp-admin.init_plugin_suite_user_engine_display_name_unlocked– After an administrator lets a member change their display name again (user ID)init_plugin_suite_user_engine_after_update_profile– After a member saved the Edit Profile modal (user ID, submitted data without passwords)init_plugin_suite_user_engine_password_changed– After a member changed their password from the Edit Profile modal (user ID)init_plugin_suite_user_engine_user_blocked/init_plugin_suite_user_engine_user_unblocked– After a member is blocked / unblocked (user ID, admin ID)init_plugin_suite_user_engine_security_event– When a dangerous request is refused: a logged-in member calling an admin action of the plugin without permission, or an endpoint the interface never offers them (endpoint, action, status code, context IDs). The plugin records nothing itself; a theme or security plugin can log it
REST API Endpoints
Base: /wp-json/inituser/v1/
POST /register– Create a new user accountPOST /checkin– Daily check-in (optional JSON body:prompt_restore,restore_streak,restore_costfor Streak Recovery)POST /claim-reward– Claim reward after online durationGET /transactions– Get Coin/Cash transaction logGET /exp-log– Get EXP logGET /inbox– Get inbox messagesPOST /inbox/mark-read– Mark a message as readPOST /inbox/mark-all-read– Mark all as readPOST /inbox/delete– Delete a single messagePOST /inbox/delete-all– Delete all messagesPOST /vip/purchase– Purchase VIP packageGET /referral-log– Get referral historyPOST /avatar– Upload new avatarPOST /avatar/remove– Remove custom avatar and revert to defaultGET /profile/me– Get current user profile (includesdisplay_name_limit:days,locked,next_change,notice;limits: maximum characters per field;require_current_password)POST /profile/update– Update profile information. Every field is checked before anything is saved; errors return HTTP 400/403/429 withdata.fieldnaming the field. Changing the password needscurrent_passwordand returns a newnonceGET /daily-tasks– Get list of completed daily tasks and rewardsPOST /exchange– Convert Cash Coin based on exchange ratePOST /redeem-code– Redeem gift code (returns Coin/Cash rewards)
License
This plugin is licensed under the GPLv2 or later.
You are free to use, modify, and distribute it under the same license.
Written by Joobi from the project's own listing. See the source page
1.7.9 – November 21, 2026
- New: Block Members. In Users, each member has a Block link and the bulk actions have Block and Unblock; the User Engine box on the profile has a Block Account button too
- A blocked member is signed out of every device at once and cannot log in anywhere (the login modal,
wp-login.php, XML-RPC, Application Passwords) until an administrator unblocks them. The block has no end date - They see “Your account has been blocked” only after typing the right password, so the block does not tell strangers which accounts exist
- A Blocked column shows when and by whom, and the Blocked (n) view lists every blocked member
- Administrators and your own account cannot be blocked; they are skipped in bulk actions
- New hooks:
init_plugin_suite_user_engine_user_blocked,init_plugin_suite_user_engine_user_unblocked, filtersinit_plugin_suite_user_engine_is_user_blockedandinit_plugin_suite_user_engine_blocked_message
- A blocked member is signed out of every device at once and cannot log in anywhere (the login modal,
- New (developers): action
init_plugin_suite_user_engine_security_eventfor themes and security plugins that keep a security log. It fires only for dangerous refusals: a logged-in member calling an admin action of the plugin without permission (admin-ajax, admin-post, Redeem / VIP code tools, blocking), uploading an avatar while not allowed, or being refused by the permission check of a REST route. Ordinary refusals (not logged in, wrong input, rate limits) do not fire it. The plugin itself logs nothing - Security: the Redeem Codes tools (create, disable, delete) now check that the user is an administrator, like the VIP Codes tools, and the member search of Send Notification does too
- Fix: a
deleteordisablelink of another plugin’s admin page (with_wpnonce) could be caught by the Redeem Codes tool and sent to the Redeem Codes page. The Redeem / VIP code links now only act on their own page - Translations: POT file updated, Vietnamese translation updated
1.7.8 – November 21, 2026
- New: Avatar Sizes (Init User Engine Settings Avatar). Three sizes in pixels, default 50, 80 and 150 (before: fixed 50 and 80), each from 16 to 512
- Only new uploads use the new sizes: the original image is not kept, so existing avatars are not cut again and keep working as before
get_avatar()uses the smallest size that is at least the requested size (never a smaller image blown up), and a bigger one insrcsetfor HiDPI screens. A 50px avatar on a Retina screen now gets the 150px file instead of the 80px one- The image is opened once and scaled down size after size, instead of being read again for every size. An image smaller than a size is not enlarged and only saved once
- New filter
init_plugin_suite_user_engine_avatar_sizes;POST /avatarandPOST /avatar/removealso returnsizes(size => URL).url_50/url_80are kept for older code
- Fix (avatar): photos taken in portrait on a phone were saved lying on their side. The EXIF orientation is now applied before cropping
- Fix (avatar): after uploading or removing an avatar, HiDPI (Retina) screens showed a broken image until the page was reloaded: only
srcwas changed, whilesrcsetstill pointed to the old file, which is deleted since 1.7.6 - Fix (avatar): if saving a size failed, a VIP’s GIF avatar was already switched to the new file. The avatar is now only changed once every file is saved, and the files of the failed upload are removed
- Fix (avatar): deleting a user now also deletes their avatar files (on Multisite, only when the user is deleted from the network)
- Tweak: the first group of the settings page now has a General heading
- Translations: POT file updated, Vietnamese translation updated
1.7.7 – November 19, 2026
- Fix: the admin menu icon is compatible with WordPress 7.2. WP 7.2 draws menu icons as inline SVG, so the CSS-mask icon of earlier versions no longer showed
- Uses the WordPress Icon Registration API (
wp_register_icon(), WP 7.1+): the icon is registered asinit-user-engine/init-user-engine, only in wp-admin, and the collection is not public so it stays out of the editor’s icon picker - WP 7.2+: the menu gets the icon name and core draws the SVG inline, coloured by the admin colour scheme. WP 7.1: a data URI already painted with the colour scheme’s icon colour, so it is not black while the page loads
- Older WordPress (before 7.1): unchanged, the previous CSS-mask icon is used as a fallback;
menu-icon.cssis now loaded only there
- Uses the WordPress Icon Registration API (
- Compatibility: tested up to WordPress 7.2
1.7.6 – November 6, 2026
- New: Profile Field Limits (Init User Engine Settings Profile Field Limits). Maximum characters for the Edit Profile fields, with sensible defaults: Display Name 50, Bio 2000, Discord 100, Links (Facebook, Twitter, Website) 255
- Checked on the server in characters, not bytes, so Vietnamese, other accented text and emoji count correctly. A field that is too long is refused with a clear message naming the field, and nothing is saved (no silent cutting)
- Each value can be set from 1 up to a hard ceiling (Display Name 250 = the size of the database column, Bio 10000, Discord 255, Links 2048). Empty or invalid values fall back to the default, so existing sites get the defaults without saving the settings
- The form sets
maxlengthon every field and shows a live character counter under Bio. A display name that is already longer than a new limit is kept: only a new name is checked - New filter
init_plugin_suite_user_engine_profile_field_limits
- Security: changing the password in the Edit Profile modal now asks for the current password. Before, anyone with access to a signed-in browser (shared computer, stolen cookie, an XSS on another plugin) could set a new password and take over the account
- 5 wrong current passwords per 15 minutes, then password changes are refused until the window ends
- New passwords follow the same rules as the registration form (at least 6 characters, letters and numbers), up to 128 characters, and must be different from the current one
- The password is now changed with
wp_update_user()instead ofwp_set_password(): the member stays signed in on this browser (before, they were silently signed out on the next request), WordPress sends its “password changed” email, and every other device is signed out. The response carries a new REST nonce, so the page keeps working without a reload - Members who signed up with a social login and never set a password can use “Lost password”. Filter
init_plugin_suite_user_engine_require_current_passwordfor special cases (not recommended)
- Security: fixed a stored XSS in the Edit Profile modal. Saved values (Discord, links, bio) were written into the form’s HTML; Discord kept double quotes, so a value such as
x" onfocus="…could run JavaScript. All values are now set as plain text through the DOM, and error messages are escaped before display - Security: every request field must be text. Sending an array or object (for example
"display_name": []) caused a PHP fatal error (HTTP 500) on PHP 8; it now returns HTTP 400. A missing or broken JSON body no longer wipes the profile - Security: display name, bio and Discord no longer accept invisible characters and text-direction controls (zero-width spaces, Hangul fillers, right-to-left overrides…), which allowed blank names or look-alike names of other members. Emoji sequences and joiners needed by real text are kept
- Security: links accept only
http://andhttps://(no moremailto:,ftp:…), refuseuser@hosttricks such ashttps://facebook.com@example.com, and must use a real domain name. Facebook must link tofacebook.com/fb.com/fb.meand Twitter totwitter.com/x.com(subdomains allowed); Website accepts any domain. Filterinit_plugin_suite_user_engine_profile_url_hosts - Security: Gender only accepts the values offered in the form (filter
init_plugin_suite_user_engine_profile_genders) - Security: the Edit Profile form can be saved at most 10 times per minute per member (filter
init_plugin_suite_user_engine_profile_update_rate_limit) - Security: passwords are no longer passed to the
init_plugin_suite_user_engine_after_update_profileaction - Security (avatar): uploads only accept JPG, PNG, GIF and WebP, checked by extension and real file content (before, any file type allowed by WordPress, such as PDF, was first moved into the uploads folder). Filter
init_plugin_suite_user_engine_avatar_mimes; SVG is never accepted - Security (avatar): at most 10 uploads per hour per member (filter
init_plugin_suite_user_engine_avatar_upload_rate_limit) - Fix (avatar): uploading a new avatar now deletes the files of the previous one, so the avatars folder no longer grows forever. “Remove Avatar” now also deletes the original GIF kept for VIPs. Only files of this plugin’s avatars folder that belong to the member are ever deleted
- Fix: the bio and display name are saved with
wp_update_user(), so core filters (pre_user_description…) and theprofile_updatehook run, and backslashes are no longer lost - Fix: a date of birth set to today was refused as “in the future” depending on the time of day
- Developers: new filters
init_plugin_suite_user_engine_current_password_attempts,init_plugin_suite_user_engine_password_max_length,init_plugin_suite_user_engine_validate_new_password, new actioninit_plugin_suite_user_engine_password_changed. Errors ofPOST /profile/updateincludedata.field - Translations: POT file regenerated with WP-CLI, Vietnamese translation updated
1.7.5 – October 25, 2026
- Performance: after every plugin update, the upgrade routine ran
UPDATE … SET pinned = 0 WHERE pinned = 1 AND status = 'read'on the whole Inbox table (a one-time backfill for the “unpin when read” behaviour of 1.6.2). On large tables it showed up in the slow query log (about 2 seconds) even though there was nothing left to change. It now only runs when upgrading from a version older than 1.6.2 - Tweak: spacing of the “Updated X ago” line in the Dashboard Inbox widget
1.7.4 – October 25, 2026
- New: Delete read messages automatically (Init User Engine Settings Inbox Delete Read Messages After (days)), off by default (
0). Read messages received more than the set number of days ago are deleted once a day in the background, so the Inbox table no longer grows forever on busy sites- Always kept: unread messages, pinned messages, and messages carrying a redeem code or VIP code assigned to a member (deleting them would lose a code the member may not have used yet). Receipts such as “Redeem Code Success” are deleted like any other read message
- The age of a message is counted from the day it was received: the Inbox table does not record when a message was read, and adding a column to a table with millions of rows would need a heavy
ALTER TABLEon every site - Deletes in small slices of the primary key (5,000 ids per
DELETE), so each statement only locks a small part of the table and members’ Inboxes stay responsive. Each run stops after about 20 seconds and continues a minute later where it left off. In our test with 1.6 million messages, the first cleanup removed 1.26 million read messages in about 24 seconds over 2 runs, noDELETEtook more than 0.31 seconds, and the next daily run (with nothing left to delete) took 0.3 seconds - Messages whose ids are out of date order (imported, or with a back-dated
created_at) are still found: the whole id range is scanned, not only the ids before the cutoff date - Unread counts are never affected (only read messages are deleted). A database error leaves the position unchanged, so the next run retries the same slice; a lock prevents two runs at the same time
- The settings page shows when the last cleanup ran and how many messages it deleted, or the progress of a cleanup still running
- Setting the option back to
0removes the scheduled task at once. Deactivating the plugin removes it too (a cleanup in progress continues after reactivation); uninstalling deletes its options - Developers: new filters
init_plugin_suite_user_engine_inbox_auto_delete_days,init_plugin_suite_user_engine_inbox_auto_delete_batch,init_plugin_suite_user_engine_inbox_auto_delete_time_limitandinit_plugin_suite_user_engine_inbox_auto_delete_keep_meta_keys(metadata keys that mark a message to keep, defaultcreated_by), actioninit_plugin_suite_user_engine_inbox_auto_deleted(number deleted, cutoff)
- Performance (large sites): the Inbox widget on the WordPress Dashboard ran 4 queries over the whole Inbox table (total, unread, today, recipients) inside the admin’s request, again every 5 minutes. With 1.6 million messages each query took up to 2.3 seconds and showed up in the slow query log
- The numbers are now calculated in the background by WP-Cron and saved; the widget only reads the saved numbers, with 0 queries on the Inbox table when the Dashboard opens. When they are more than 15 minutes old (filter
init_plugin_suite_user_engine_dashboard_stats_max_age), a refresh is scheduled and the previous numbers are shown meanwhile, with “Updated X ago” - The very first time, the widget says the numbers are being calculated and shows them a minute later
- Fix: “Today” now starts at midnight in the site’s time zone, like on the Inbox Statistics page (before, it started at midnight UTC)
- Code quality: removed the
extract()call from the widget
- The numbers are now calculated in the background by WP-Cron and saved; the widget only reads the saved numbers, with 0 queries on the Inbox table when the Dashboard opens. When they are more than 15 minutes old (filter
- Fix: the database upgrade routine checked the
administratorrole instead of a capability; it now checksmanage_options - Deactivation now also removes the Dashboard widget refresh task; uninstall also deletes the saved widget numbers
- Translations: POT file regenerated with WP-CLI, Vietnamese translation updated
1.7.3 – October 20, 2026
- Fix: pass
home_url( add_query_arg( [] ) )towp_login_url()instead ofnullto avoid compatibility issues with newer PHP versions - Fix: admin menu icon display compatibility with the upcoming WordPress 7.2 release
1.7.2 – October 19, 2026
- New: Buffer writes in object cache (Init User Engine Settings Performance), off by default. On very busy sites the Transaction log and EXP log get one INSERT (and one commit) per reward, purchase, exchange or check-in: hundreds of thousands of writes a day. With this option the rows are first stored in the persistent object cache, and one WP-Cron event writes them to the database once a minute, both tables in the same run, with multi-row INSERTs of up to 500 rows: a few thousand writes a day instead. In our test 1,000 log rows took 1,000 INSERTs before, and 2 transactions (4 INSERTs) with the buffer
- Needs a persistent object cache (Redis, Memcached…). Without one the option is disabled with an explanation and rows are written right away, as before
- Only history rows are buffered. Coin, Cash and EXP balances are never buffered and are still changed atomically in the database right away
- The time of each row is taken when it happens, not when it is written, so the history keeps the right order and times.
init_plugin_suite_user_engine_log_transaction()/init_plugin_suite_user_engine_log_exp()keep their signature and return value, and the..._transaction_logged/..._exp_loggedactions still fire right away - New rows can take up to a minute to appear in the Transaction/EXP history, the daily tasks list and the Edit User box. The history caches of the members concerned are cleared after each write
- Does not bloat the object cache: one small key per row (never one big array rewritten by every request), numbered with the atomic
wp_cache_incr(). When more than 20,000 rows are waiting (filterinit_plugin_suite_user_engine_write_behind_max_pending, about 4–5 MB), new rows go straight to the database. Rows expire from the cache after a day - Never writes a row twice or skips one: each batch of rows and the “written up to” cursor are saved in the same database transaction. Tested by killing PHP (
kill -9) in the middle of a batch, and with 50 processes writing at the same time while the flush ran: every row was written exactly once - If the object cache is flushed or restarted, rows not yet written are lost (history only, never balances) and a new buffer generation starts, so nothing gets stuck. A row whose number was taken but never stored is waited for, then skipped after 2 minutes. Both are counted on the settings page
- Runs only from WP-Cron, on its own schedule Init User Engine: write buffered logs (every 60 seconds, filter
init_plugin_suite_user_engine_flush_interval). On sites that setDISABLE_WP_CRON, your system cron job runs it; that constant is never taken to mean the site has no cron. Visitors’ and admins’ requests never write the buffer, except when an admin clicks Write buffered logs now or deactivates the plugin - Settings page status: rows waiting, last write, next run, rows written, skipped rows, cache resets and the last error. If nothing was written for 15 minutes while rows are waiting (filter
init_plugin_suite_user_engine_write_behind_stall_minutes), a warning is shown - Turning the option off: new rows go straight to the database at once; rows already buffered are s
Follow this listing's changes (Atom feed)