GTASanad Gaming Time Calculator
GTASanad Gaming Time Calculator
Description
GTASanad Gaming Time Calculator adds a shortcode that displays a calculator on your site. Visitors enter their average session length, sessions per week, and total playtime goal in hours. The plugin calculates weekly playtime, estimated weeks required, and estimated days required to reach the goal.
An admin page under Tools provides plugin information, a copyable shortcode, usage instructions, and a live preview.
Features
- Shortcode:
[gtsanad_gaming_time_calculator] - Admin settings page under Tools with copy button
- Results card: weekly playtime, estimated weeks, estimated days
- Calculate and Reset buttons
- Input validation with user-friendly error messages
- Responsive layout for desktop and mobile
- Premium card-based UI design
- Client-side calculations only — no data stored
Calculation
Weekly playtime = session length × sessions per week.
- Estimated weeks required = playtime goal ÷ weekly playtime
- Estimated days required = estimated weeks × 7
Installation
- Upload the
gtasanad-gaming-time-calculatorfolder to/wp-content/plugins/. - Activate the plugin through the Plugins screen in WordPress.
- Add
[gtsanad_gaming_time_calculator]to a post, page, or other content area that supports shortcodes. - Optional: open Tools GTASanad Gaming Time Calculator for instructions, shortcode copy, and preview.
Faq
Place [gtsanad_gaming_time_calculator] in your content. The calculator appears where the shortcode is inserted.
Go to Tools GTASanad Gaming Time Calculator in the WordPress dashboard.
No. It uses vanilla JavaScript and custom CSS.
No. Calculations run in the browser. Nothing is saved to the database.
Reviews
Changelog
1.2.2
- Renamed plugin to GTASanad Gaming Time Calculator.
- Changed slug and text domain to
gtasanad-gaming-time-calculator. - Prefixed all identifiers with
gtsanad_/GTSANAD_per WordPress.org review.
1.2.1
- Removed duplicate Plugin URI from plugin header for WordPress.org compliance.
- Added languages directory for translation support.
- Tested up to WordPress 7.0.
1.2.0
- Added Reset button beside Calculate.
- Redesigned results card with weekly playtime, estimated weeks, and estimated days.
- Improved input validation for empty, zero, and negative values.
- Enhanced premium UI styling and mobile responsiveness.
- Expanded admin page with version info, shortcode copy button, and usage steps.
1.1.0
- Added Tools admin page with instructions and live preview.
- Updated calculator to session-based goal planning.
- Registered shortcode on init hook; split code into includes.
1.0.0
- Initial release.