Skip to content
PluginStats

wordpress-shortcode-webpack-plugin weekly downloads statistics

By studio-lagier · npm · Webpack plugins

Create Wordpress plugins from React apps built using Webpack

View on npm Fresh · Oct 17, 2026

wordpress-shortcode-webpack-plugin has 2 recorded weekly downloads on npm, a decrease of 93.1% over the past 30 days.

It ranks #2175 of 2,251 tracked npm listings by weekly downloads.

Over 90 days, weekly downloads changed by -88.9%.

PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.

Weekly downloads
2
Official API · Oct 17, 2026
7-day growth
-88.2%
-15 weekly downloads
30-day growth
-93.1%
-27 weekly downloads
90-day growth
-88.9%
-16 weekly downloads
Rank
#2175
Among tracked npm listings

About wordpress-shortcode-webpack-plugin

wordpress-shortcode-webpack-plugin

This Webpack plugin is for Wordpress developers who want an easy way to drop React apps into Wordpress pages. It creates a simple Wordpress plugin from your Webpack configuration, registering each Webpack entry as a Wordpress shortcode.

Requires Webpack 4 or 5

Installation

Usage

Import the plugin, tell it a bit about your desired Wordpress plugin output, and add it to your Webpack configuration.

webpack.config.js

When built, this will output the following assets in the build directory:

Once uploaded, you can use the entrypoints specified in your Webpack configuration as shortcodes. By default the shortcodes are registered as {pluginName}-{entryName}. For our example, the one shortcode registered would be my-awesome-plugin-main.

So, in Wordpress, we could use the shortcode like [my-awesome-plugin-main].

You can see an example Create React App repo here.

Options

wordpressPluginName (required)

Type: string

Your plugin's name in kebab-case.

shortcodePrefix

Type: string Default: wordpressPluginName

The prefix used instead of wordpressPluginName to create your shortcodes. With shortcodePrefix: 'my-shortcode', the main entry shortcode would be [my-shortcode-main].

headerFields

Type:

Default: {}

Header fields for the Wordpress plugin. See https://developer.wordpress.org/plugins/plugin-basics/header-requirements/#header-fields

entryToRootId

Type: object Default: {}

A map of overrides for the root element ID for each entrypoint. By default we just use root as the ID for the root element, per React convention. If that ID conflicts with something else on the page, you can adjust it with this map.

pluginTemplate

Type: string Default: ./src/default-template.php (in the wordpress-shortcode-webpack-plugin repo)

Path to the template file that should be used to generate the Wordpress plugin file.

The template file is a PHP file with the following tokens that get replaced with content. You can customize the behavior of the Wordpress plugin by modifying the template.

{{plugin_header}}

Replaced with the Wordpress comment indicating the plugin name and other plugin metadata.

{{asset_manifest}}

Replaced with an associative array of entrypoint to an array of files that should be loaded for that entrypoint. Required for {{shortcode_registration}} and {{shortcode_definitions}}.

{{shortcode_definitions}}

Function that is invoked when the shortcode is called. Enqueues the assets for the entry and returns the React root HTML as a string.

Override this if you'd like to enhance the logic that gets run when your shortcode is run, e.g. by supplying attributes or setting global variables in the markup.

The naming convention for shortcodes that get registered is create_{entry}_app.

Requires {{shortcode_registration}}.

{{shortcode_registration}}

Function that registers the shortcode definition functions and their assets with Wordpress.

{{add_action}}

Adds the {{shortcode_registration}} function as an action during Wordpress's init phase.

Build locally

Clone the project

Go to the project directory

Install dependencies

Build

Running Tests

To run tests, run the following command

License

MIT

Description from the npm listing.

  • webpack
  • react
  • wordpress
  • webpack-plugin
  • wordpress-plugin

Where wordpress-shortcode-webpack-plugin sits in the listing

Each band is one page of 20. Weekly downloads on a log scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

All npm2,248 listings · 113 pages · page 109, #16 (overall #2176)
All npm: every listing in weekly downloads order
PNG SVG
Webpack plugins247 listings · 13 pages · page 12, #20 (overall #240)
Webpack plugins: every listing in weekly downloads order
PNG SVG

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

wordpress-shortcode-webpack-plugin weekly downloads on npm, last 90 days: 2 weekly downloads as of Oct 17, 2026, -88.9% over 90 days.wordpress-shortcode-webpack-pluginWeekly downloads on npm · Last 90 days2downloads / week-88.9% over 90 days010203040506070Jul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 20, 2026 – Oct 17, 2026 · 90 observations · Updated Oc…pluginstats.com
wordpress-shortcode-webpack-plugin weekly downloads on npm, last 90 days: 2 weekly downloads as of Oct 17, 2026, -88.9% over 90 days.
PNG SVG

7/30/90-day growth

wordpress-shortcode-webpack-plugin weekly downloads growth on npm: -88.2% over 7 days, -93.1% over 30 days, -88.9% over 90 days.wordpress-shortcode-webpack-pluginWeekly downloads growth on npm2downloads / week now7-day growth-15 weekly downloads-88.2%30-day growth-27 weekly downloads-93.1%90-day growth-16 weekly downloads-88.9%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
wordpress-shortcode-webpack-plugin weekly downloads growth on npm: -88.2% over 7 days, -93.1% over 30 days, -88.9% over 90 days.
PNG SVG

Ranking history

wordpress-shortcode-webpack-plugin npm ranking history: currently #2175 (by weekly downloads).wordpress-shortcode-webpack-pluginnpm ranking · by weekly downloads · Last 90 days#2175current rank#2173#2174#2175#2176#2177Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 18, 2026 – Oct 18, 2026 · 1 observations · Updated Oct 17, 2026pluginstats.com
wordpress-shortcode-webpack-plugin npm ranking history: currently #2175 (by weekly downloads).
PNG SVG

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Recent observations

Full history (121)
Recent weekly downloads observations for wordpress-shortcode-webpack-plugin
Date (UTC)Weekly downloadsChange vs. previous
20
2+1
10
10
10
1-17
18+1
17-2
19-2
21-18
390
390
39+17
22—

Similar npm Webpack plugins plugins

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/wordpress-shortcode-webpack-plugin. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.