WP Manifestindependent plugin directory
manifest / developer / presswind-helpers

PressWind Helpers WP Registry grade A-. Low-severity findings · 1 findingWP RegistryLow-severity findings · 1 findingOpen the reportA-

Plugin PressWind for use vite.js in WordPress theme

★ 9stars
1.0.2latest · 1 year ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/wpperformance/presswind-helpers/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Presswind Helpers

This plugin give you the ability to use Vite JS directly in your theme.

You can use this plugin with the starter theme Press-wind: https://github.com/WP-Performance/press-wind

Steps to Use

  1. Install the presswind-helpers plugin.
  2. Install the Press-wind theme.
  3. Start coding!

PWVite

  • port - default 3000
  • path - from your theme root
  • position front|admin|editor - default front
  • is_ts - default false
  • is_plugin true|false - default false - for search assets in plugin folder instead of theme folder
  • slug - handle - default presswind-script
if (class_exists('PressWind\PWVite')) {
// use with named parameters for more readability

// in theme
// 1 - search dist folder in root theme
\PressWind\PWVite::init(port: 3000, path: '');

// 2 - search admin/dist folder in root theme
\PressWind\PWVite::init(port: 4444, path: 'admin', position: 'admin', is_ts: false);

// in plugin

// 3 - search dist folder in plugin test-plugin
\PressWind\PWVite::init( port: 7777, path: 'test-plugin/', is_plugin: true, slug:
'plugin-test' );

}

PWAssets

use PressWind\PWAssets;

// for css
PWAsset::add('my-css', get_template_directory_uri().'/assets/style.css')->dependencies([])->media('all')->version('1.0.0')->toFront();
PWAsset::add('my-css', get_template_directory_uri().'/assets/style.css')->dependencies([])->media('all')->version('1.0.0')->toBack();
PWAsset::add('my-css', get_template_directory_uri().'/assets/style.css')->dependencies([])->media('all')->version('1.0.0')->toBlock();
PWAsset::add('my-css', get_template_directory_uri().'/assets/style.css')->dependencies([])->media('all')->version('1.0.0')->toLogin();


// for js
PWAsset::add('my-js', get_template_directory_uri().'/assets/js/app.js')
    ->dependencies(['jquery'])
    ->version('1.0.0')
    ->module()
    ->toFront()
    ->withInline('console.log("hello world")');

PWAsset::add('my-js', get_template_directory_uri().'/assets/js/app.js')
    ->dependencies(['jquery'])
    ->version('1.0.0')
    ->noModule()
    ->toFront();

PWAsset::add('my-js', get_template_directory_uri().'/assets/js/app.js')
    ->dependencies(['jquery'])
    ->version('1.0.0')
    ->async()
    ->inFooter()
    ->toFront();

PWAsset::add('my-js', get_template_directory_uri().'/assets/js/app.js')
    ->dependencies(['jquery'])
    ->version('1.0.0')
    ->defer()
    ->inFooter()
    ->toFront();

PWAsset::add('my-js', get_template_directory_uri().'/assets/js/app.js')
    ->dependencies(['jquery'])
    ->version('1.0.0')
    ->defer()
    ->inFooter()
    ->toBack();

PWAsset::add('my-js', get_template_directory_uri().'/assets/js/app.js')
    ->dependencies(['jquery'])
    ->version('1.0.0')
    ->defer()
    ->inFooter()
    ->toBlock();

License

PressWind Helper is released under the terms of the GNU General Public License version 2 or (at your option) any later version. See LICENSE.md for complete license.

Releases

3 releases.

Tag
Published
1.0.2 latest
Feb 13, 2025 1 year ago
Oct 30, 2024 1 year ago
Jul 2, 2024 2 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.

A- grade

Security

PressWind Helpers 1.0.0 · audited by WP Registry

Low-severity findings only.

1 low
Audited release
1.0.0
Findings
1
Worst severity
low
Content hash
c5bfb649c6212fb8273111c5…

Findings

  • low Plugin header version is stale relative to the packaged release

    version_mismatch

    The audited package comes from release tag 1.0.2, but the plugin header still declares Version 1.0.0. WordPress and inventory tools can therefore misidentify the installed build and make update or vulnerability targeting unreliable.

    index.php:2-6

    Recommendation

    Set the plugin header Version to 1.0.2 for this release and automate header/tag consistency checks.

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.