This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

U.S. Debt Clock Widget


This plugin creates a widget displaying the most recently available amount of the U.S. National Debt. Data is retrieved from and a source link can optionally be displayed.

Want to help make this plugin better? Pull requests are welcome.


  • The widget front-end display
  • The widget options configuration display


  1. Upload the us-debt-clock-widget folder to the /wp-content/plugins/ directory
  2. Activate the U.S. Debt Clock Widget plugin through the Plugins menu in the WordPress dashboard
  3. Add the widget to an available widget area and configure the display options


Read all 2 reviews

Contributors & Developers

“U.S. Debt Clock Widget” is open source software. The following people have contributed to this plugin.




  • Fix: use newer Treasury debt feed and info URLs, as they did not redirect the old ones.


  • Fix: catch undefined variable scenario
  • Improvement: additional code standards and formatting updates


  • Fix: change data source from to
  • Improvement: code style and formatting


  • Fix: unfortunate math error that had debt displaying as billions, not trillions, h/t Scott Cooper


  • Fix: error in get_debt logic that was preventing successful data from being returned
  • Fix: update widget registration to work with recent versions of WordPress
  • Improvement: Update code formatting and escaping to better adhere to WordPress coding standards
  • Improvement: Delete transient when plugin is deactivated


  • Improvement: Handle invalid data from more gracefully


  • Initial release