PHPackages                             wpsmith/widget - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. wpsmith/widget

ActiveLibrary

wpsmith/widget
==============

WordPress widget base class.

1.0.0(7y ago)023GPL-2.0+PHPPHP &gt;=5.6.0

Since Jul 30Pushed 6y ago1 watchersCompare

[ Source](https://github.com/wpsmith/Widget)[ Packagist](https://packagist.org/packages/wpsmith/widget)[ Docs](https://github.com/wpsmith/Widget)[ RSS](/packages/wpsmith-widget/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

Widget Class
============

[](#widget-class)

The `Widget` class extends the WordPress Widget class (`WP_Widget`) to add some helper methods.

`Widget` expects only one method to be implemented: `protected function get_defaults()`.

`Widget` adds two static methods:

- `widget_save_inline_js()`: Outputs an inline admin script that autosaves a widget in the WordPress admin area.
- `is_widgets_page()`: Determines whether the current WordPress admin page is the widgets page.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~103 days

Total

3

Last Release

2640d ago

Major Versions

0.0.2 → 1.0.02019-02-21

PHP version history (2 changes)0.0.1PHP &gt;=5.2.4

1.0.0PHP &gt;=5.6.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/46adebc3eebe7494dba592e75ac8f8572222050648b0283515b4a5896648d846?d=identicon)[wpsmith](/maintainers/wpsmith)

---

Top Contributors

[![wpsmith](https://avatars.githubusercontent.com/u/817366?v=4)](https://github.com/wpsmith "wpsmith (6 commits)")

---

Tags

wordpresswidgets

### Embed Badge

![Health badge](/badges/wpsmith-widget/health.svg)

```
[![Health](https://phpackages.com/badges/wpsmith-widget/health.svg)](https://phpackages.com/packages/wpsmith-widget)
```

###  Alternatives

[wpbp/widgets-helper

A class to ease creating powered Widgets on WordPress

1213.3k](/packages/wpbp-widgets-helper)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
