<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nicu Micle</title>
    <description>The latest articles on DEV Community by Nicu Micle (@nicumicle).</description>
    <link>https://dev.to/nicumicle</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F783895%2Ff3965d68-625c-4f8e-83c6-12b0fc229042.jpeg</url>
      <title>DEV Community: Nicu Micle</title>
      <link>https://dev.to/nicumicle</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nicumicle"/>
    <language>en</language>
    <item>
      <title>One git tag, every release step: the CI/CD behind an open-source WordPress plugin</title>
      <dc:creator>Nicu Micle</dc:creator>
      <pubDate>Tue, 01 Dec 2026 14:00:00 +0000</pubDate>
      <link>https://dev.to/nicumicle/one-git-tag-five-destinations-the-cicd-behind-an-open-source-wordpress-plugin-3aki</link>
      <guid>https://dev.to/nicumicle/one-git-tag-five-destinations-the-cicd-behind-an-open-source-wordpress-plugin-3aki</guid>
      <description>&lt;p&gt;I maintain &lt;a href="https://github.com/nicumicle/simple-jwt-login" rel="noopener noreferrer"&gt;Simple JWT Login&lt;/a&gt;, a free WordPress plugin that adds JWT authentication to the WordPress REST API. It is a security plugin: it hands out tokens, logs users in, and decides who can call which endpoint. A bug here is not a broken button. It is someone else logged in as your admin.&lt;/p&gt;

&lt;p&gt;For a long time a release meant a checklist in my head. Bump the version in four places. Copy the changelog into the WordPress.org readme. Build the zip. Commit to SVN. Write the GitHub release. Update the Postman collection. Update the docs site. Forget one step, and users see a mismatch.&lt;/p&gt;

&lt;p&gt;Now a release is one command and one tag. This post shows the whole setup, how each piece works, and the few tricks that made it reliable. Everything is in the repo, so you can copy any workflow into your own plugin.&lt;/p&gt;

&lt;h2&gt;
  
  
  The big picture
&lt;/h2&gt;

&lt;p&gt;There are two repositories:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;nicumicle/simple-jwt-login&lt;/code&gt;&lt;/strong&gt; - the plugin code, the OpenAPI spec (&lt;code&gt;openapi/openapi.yaml&lt;/code&gt;) and &lt;code&gt;Changelog.md&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;simple-jwt-login/website&lt;/code&gt;&lt;/strong&gt; - the docs site, built with Docusaurus.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F67iwm7t1bih4zp6ri2ml.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F67iwm7t1bih4zp6ri2ml.png" alt="Big picture: two repos, one tag fans out to WordPress.org, GitHub Releases, Postman and the docs site" width="800" height="309"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The rule that holds it together: &lt;strong&gt;every fact lives in exactly one file&lt;/strong&gt;. The API contract lives in &lt;code&gt;openapi.yaml&lt;/code&gt;. Release notes live in &lt;code&gt;Changelog.md&lt;/code&gt;. The version number is typed once, on the command line. Everything else is generated from those files, by a script or by a workflow.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu47ue1ocgr3fjsyle8an.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu47ue1ocgr3fjsyle8an.png" alt="Single source of truth: Changelog.md, openapi.yaml and the version number feed every other file" width="800" height="631"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you only steal one idea from this post, steal that one. Most release bugs are two copies of the same fact that drifted apart.&lt;/p&gt;

&lt;h2&gt;
  
  
  Part 1: what runs on every pull request
&lt;/h2&gt;

&lt;p&gt;When a contributor opens a pull request, CodeQL scans the code, CodeRabbit is ready to review on request, and up to six workflows start. Each workflow has a &lt;code&gt;paths:&lt;/code&gt; filter, so it only runs when something it checks has changed. A README typo does not need Chrome, MySQL and twelve PHP versions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;lint.yml&lt;/code&gt; runs when a PHP file or a linter config changes.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;multiple-php.yml&lt;/code&gt; runs when PHP under &lt;code&gt;simple-jwt-login/&lt;/code&gt; changes.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;plugin-check.yml&lt;/code&gt; runs when anything under &lt;code&gt;simple-jwt-login/&lt;/code&gt; changes.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;tests.yml&lt;/code&gt; runs when the plugin, the tests, the Docker setup or Composer changes.&lt;/li&gt;
&lt;li&gt;The two OpenAPI workflows run only when the spec changes.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Every filter also lists the workflow's own file, so a change to the pipeline always tests itself. The only secret any of them uses is an optional Codecov token. Without it, the upload falls back to tokenless mode, so PRs from forks still work.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F41m62e134zyde6pofyx6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F41m62e134zyde6pofyx6.png" alt="Pull request pipeline: lint, PHP matrix, plugin check and tests behind path filters, CodeQL, CodeRabbit on request, and OpenAPI checks only when the spec changes" width="800" height="714"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Static checks
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;lint.yml&lt;/code&gt; runs PHPCS (PSR-12), PHPMD and PHPStan level 5. Plain, fast, and the first thing to fail.&lt;/p&gt;

&lt;h3&gt;
  
  
  12 PHP versions, from 5.5 to 8.5
&lt;/h3&gt;

&lt;p&gt;The plugin still supports PHP 5.5. Many WordPress hosts never upgrade, and I do not want to drop those users. But I write code on PHP 8, so it is easy to type &lt;code&gt;??&lt;/code&gt; or a return type without noticing.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;multiple-php.yml&lt;/code&gt; catches that with a matrix and &lt;code&gt;php -l&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;strategy&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;fail-fast&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;
  &lt;span class="na"&gt;matrix&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;php&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt; &lt;span class="s1"&gt;'5.5'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'5.6'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'7.1'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'7.2'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'7.3'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'7.4'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'8.0'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'8.1'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'8.2'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'8.3'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'8.4'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'8.5'&lt;/span&gt; &lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="na"&gt;steps&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;shivammathur/setup-php@v2&lt;/span&gt;
    &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;php-version&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ matrix.php }}&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;working-directory&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;simple-jwt-login/&lt;/span&gt;
    &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;find . -type f -name '*.php' -print0 | xargs -0 -n1 -P4 php -l&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It only checks syntax, not behaviour, but syntax is exactly what breaks on old PHP. A parse error on PHP 5.6 takes down the whole site, not one feature. This job costs about a minute and has saved me more than once.&lt;/p&gt;

&lt;h3&gt;
  
  
  The official WordPress Plugin Check
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;plugin-check.yml&lt;/code&gt; runs &lt;a href="https://github.com/WordPress/plugin-check-action" rel="noopener noreferrer"&gt;&lt;code&gt;wordpress/plugin-check-action&lt;/code&gt;&lt;/a&gt;, the same checks the WordPress.org review team uses. Better to hear about a problem from CI than from the plugin directory.&lt;/p&gt;

&lt;h3&gt;
  
  
  Two security reviewers that never get tired: CodeRabbit and CodeQL
&lt;/h3&gt;

&lt;p&gt;Linters catch style. Tests catch what I thought of. For an auth plugin I also want someone reading every diff and asking "can this be abused?". Two tools do that.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://www.coderabbit.ai/" rel="noopener noreferrer"&gt;CodeRabbit&lt;/a&gt;&lt;/strong&gt; reviews pull requests with AI. It has no workflow file. Everything lives in &lt;code&gt;.coderabbit.yaml&lt;/code&gt; in the repo root, so contributors can read exactly how their PR will be reviewed. Three parts of that file do most of the work:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A persona and a threat model.&lt;/strong&gt; The reviewer is told it is a senior PHP/WordPress security engineer reviewing an auth plugin with public, unauthenticated REST routes, where any bypass is an account takeover, often of an administrator. It is told to lead with exploitable issues and a concrete attack path, and to skip praise, style nits and poems.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Path-specific instructions.&lt;/strong&gt; PHP files get a priority list: JWT verification (&lt;code&gt;alg&lt;/code&gt; confusion, &lt;code&gt;none&lt;/code&gt;, missing &lt;code&gt;exp&lt;/code&gt; / &lt;code&gt;iss&lt;/code&gt; / &lt;code&gt;aud&lt;/code&gt; checks, &lt;code&gt;hash_equals&lt;/code&gt; for signatures), refresh token reuse, &lt;code&gt;permission_callback&lt;/code&gt; on every REST route. &lt;code&gt;openapi.yaml&lt;/code&gt; must match the routes, so a PR that changes an endpoint without updating the spec gets flagged. Workflow files are checked for &lt;code&gt;pull_request_target&lt;/code&gt; with PR checkout, unpinned actions and missing &lt;code&gt;permissions&lt;/code&gt; blocks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Extra scanners in the same review.&lt;/strong&gt; PHPStan, PHPCS and PHPMD run with the repo's own config, plus gitleaks (secrets), Semgrep, OSV-Scanner (vulnerable dependencies), actionlint and zizmor (GitHub Actions security), ShellCheck and yamllint.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Reviews are on demand: a maintainer comments &lt;code&gt;@coderabbitai review&lt;/code&gt; on the PR. &lt;code&gt;CONTRIBUTING.md&lt;/code&gt; is loaded as the code guidelines, so the review follows the same rules a human reviewer would.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://codeql.github.com/" rel="noopener noreferrer"&gt;CodeQL&lt;/a&gt;&lt;/strong&gt; is GitHub's own code scanner, turned on with GitHub's default setup (repository settings, no YAML to maintain). It scans pull requests and &lt;code&gt;master&lt;/code&gt; and reports findings in the Security tab and on the PR. One thing to know: CodeQL does not analyse PHP. Here it covers the admin JavaScript in &lt;code&gt;assets/js/&lt;/code&gt; and the GitHub Actions workflows. That is why the PHP side gets Semgrep and the security-focused CodeRabbit review instead. Two tools with different blind spots beat one tool you trust blindly.&lt;/p&gt;

&lt;h3&gt;
  
  
  A deploy dry run on every merge
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;deploy.yml&lt;/code&gt; has two jobs. On every push to &lt;code&gt;master&lt;/code&gt; it runs the deployer with &lt;code&gt;dry_run: true&lt;/code&gt;, so it builds the SVN layout without committing anything. On a tag push it runs for real. The deploy path is tested hundreds of times before it matters. Release day is not the first time it runs.&lt;/p&gt;

&lt;h3&gt;
  
  
  The test pipeline: unit, feature, then cross-site
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;tests.yml&lt;/code&gt; is a small file that only wires three reusable workflows together:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;jobs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;unit&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;./.github/workflows/_unit_tests.yml&lt;/span&gt;
    &lt;span class="na"&gt;secrets&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;CODECOV_TOKEN&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ secrets.CODECOV_TOKEN }}&lt;/span&gt;
  &lt;span class="na"&gt;feature&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;./.github/workflows/_feature_tests.yml&lt;/span&gt;
  &lt;span class="na"&gt;cross-site&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;needs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt; &lt;span class="s"&gt;unit&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;feature&lt;/span&gt; &lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;./.github/workflows/_cross_site_tests.yml&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Unit and feature tests run in parallel. The cross-site tests are the slowest, so they only start when both passed. No point spinning up Chrome if a unit test is red.&lt;/p&gt;

&lt;p&gt;The child workflows use &lt;code&gt;on: workflow_call&lt;/code&gt; only. They never trigger by themselves, so there is one place that decides what runs and in which order. The &lt;code&gt;_&lt;/code&gt; prefix keeps them at the top of the folder and marks them as building blocks, not entry points.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Unit tests&lt;/strong&gt; (134 test files) mock WordPress. A &lt;code&gt;bootstrap.php&lt;/code&gt; file stubs the WordPress functions, and all WordPress access goes through one repository class, so tests mock that interface instead of a live database. The same run collects coverage with pcov (much faster than Xdebug, and line coverage is all I report) and uploads it to Codecov. Coverage comes from every test run, not from a separate release job, so the README badge is always current.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Feature tests&lt;/strong&gt; (50 test files) are the opposite. The runner installs Apache, MySQL, WP-CLI and a real WordPress, activates the plugin, and sends real HTTP requests. They run on PHP 8.4 and 8.5. Unit tests tell you the logic is right. Feature tests tell you WordPress agrees.&lt;/p&gt;

&lt;h3&gt;
  
  
  Part 1b: the plugin attacks itself from another site
&lt;/h3&gt;

&lt;p&gt;This is the part I am most proud of.&lt;/p&gt;

&lt;p&gt;An auth plugin that stores a JWT in a cookie must defend against CSRF: a page on &lt;code&gt;evil.example&lt;/code&gt; that makes your browser call your WordPress site, with your cookie attached. It must also send the right CORS headers, so only the origins you allow can read the responses.&lt;/p&gt;

&lt;p&gt;You cannot test that with PHPUnit. You need a real browser, a second site, and a cookie. So &lt;code&gt;_cross_site_tests.yml&lt;/code&gt; builds exactly that:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxsnvq02ewqv5ytq9ita6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxsnvq02ewqv5ytq9ita6.png" alt="Cross-site test setup: headless Chrome holding the JWT cookie opens pages on a second site that call the WordPress site" width="800" height="479"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;WordPress with the plugin runs on &lt;code&gt;localhost:88&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;A second container, &lt;strong&gt;other-site&lt;/strong&gt;, serves proof-of-concept pages on &lt;code&gt;127.0.0.1:8090&lt;/code&gt;. That is a different site from &lt;code&gt;localhost&lt;/code&gt;, as far as the browser is concerned. &lt;code&gt;localhost:8090&lt;/code&gt; is also used, as a same-site but cross-origin control.&lt;/li&gt;
&lt;li&gt;Playwright drives a real headless Chrome that holds the plugin's JWT cookie.&lt;/li&gt;
&lt;li&gt;Each test opens an attacker page, the page fires &lt;code&gt;fetch&lt;/code&gt;, a form post or an &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt; at the plugin, and the test checks whether the request was blocked or allowed.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;curl&lt;/code&gt; from the other-site container covers server-to-server calls, which must keep working.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The tests are table rows, so adding a case is one line, not a new test file.&lt;/p&gt;

&lt;p&gt;One detail that took a while: &lt;strong&gt;Playwright's own request events do not always show the cookie&lt;/strong&gt; on aborted &lt;code&gt;no-cors&lt;/code&gt; requests, and a CORS response that nobody reads never "finishes". The fixtures read what Chrome really sent through the DevTools network events instead. If you build something similar, start there and save yourself a day.&lt;/p&gt;

&lt;h3&gt;
  
  
  Part 1c: the API spec is tested against the live API
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;openapi/openapi.yaml&lt;/code&gt; describes every REST endpoint. A spec that nobody checks is a spec that lies. So when a PR touches &lt;code&gt;openapi/**&lt;/code&gt;, two extra workflows run:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;openapi-validate.yml&lt;/code&gt; lints the spec with Redocly.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;openapi_tests.yml&lt;/code&gt; reuses the feature test workflow with one input flipped:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;jobs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;openapi&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;./.github/workflows/_feature_tests.yml&lt;/span&gt;
    &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;openapi&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Same WordPress setup, but instead of PHPUnit it runs &lt;a href="https://schemathesis.io/" rel="noopener noreferrer"&gt;Schemathesis&lt;/a&gt;. Schemathesis reads the spec, generates requests (including weird ones), calls the live site, and fails if a response does not match the documented schema. If the docs say an endpoint returns &lt;code&gt;{ "success": true, "data": {...} }&lt;/code&gt; and it really returns something else, CI fails.&lt;/p&gt;

&lt;p&gt;Reusing &lt;code&gt;_feature_tests.yml&lt;/code&gt; with a boolean input means the WordPress install steps exist once. Two suites, one setup to maintain.&lt;/p&gt;

&lt;h2&gt;
  
  
  Part 2: one command to prepare a release
&lt;/h2&gt;

&lt;p&gt;Before tagging, I run one command locally:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;composer prepare-release 4.3.0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;prepareRelease.sh&lt;/code&gt; does five things:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Moves the &lt;code&gt;## Unreleased&lt;/code&gt; entries in &lt;code&gt;Changelog.md&lt;/code&gt; to &lt;code&gt;## 4.3.0 (today's date)&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Sets &lt;code&gt;4.3.0&lt;/code&gt; in the plugin header, the &lt;code&gt;SIMPLE_JWT_LOGIN_VERSION&lt;/code&gt; constant, the readme &lt;code&gt;Stable tag&lt;/code&gt;, and &lt;code&gt;info.version&lt;/code&gt; in &lt;code&gt;openapi.yaml&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Copies the new release into the WordPress.org readme (&lt;code&gt;syncChangelog.sh&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;Regenerates the &lt;code&gt;.pot&lt;/code&gt; translation file.&lt;/li&gt;
&lt;li&gt;Rebuilds &lt;code&gt;download/simple-jwt-login.zip&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;It never commits, tags or pushes. I review the diff first, then I do that myself.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;syncChangelog.sh&lt;/code&gt; is worth a closer look. The WordPress.org readme uses its own format (&lt;code&gt;== Changelog ==&lt;/code&gt;, &lt;code&gt;= 4.3.0 =&lt;/code&gt;). So I write notes once, in normal Markdown, and the script converts them. Bullets under &lt;code&gt;### Security&lt;/code&gt; get a &lt;code&gt;Security:&lt;/code&gt; prefix, and a line starting with &lt;code&gt;**Upgrade notice:**&lt;/code&gt; goes to the readme's &lt;code&gt;== Upgrade Notice ==&lt;/code&gt; section. The full check suite runs &lt;code&gt;syncChangelog.sh --check&lt;/code&gt;, which fails if the readme is out of date. You cannot forget to sync it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Part 3: one tag, many destinations
&lt;/h2&gt;

&lt;p&gt;When I push the tag, three workflows start in parallel:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyb3ghy80gqtdtsoei3sr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyb3ghy80gqtdtsoei3sr.png" alt="Release fan-out: one tag triggers the WordPress.org deploy, the GitHub release and the Postman publish" width="800" height="453"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  WordPress.org
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;deploy.yml&lt;/code&gt; uses a small action I wrote, &lt;a href="https://github.com/simple-jwt-login/deployer" rel="noopener noreferrer"&gt;&lt;code&gt;simple-jwt-login/deployer&lt;/code&gt;&lt;/a&gt;. It commits &lt;code&gt;simple-jwt-login/&lt;/code&gt; to SVN &lt;code&gt;trunk&lt;/code&gt;, creates &lt;code&gt;tags/4.3.0&lt;/code&gt;, and syncs the banner and screenshots from the &lt;code&gt;wordpress.org/&lt;/code&gt; folder. SVN credentials are repository secrets, only used on tag pushes.&lt;/p&gt;

&lt;h3&gt;
  
  
  GitHub Release
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;github-release.yml&lt;/code&gt; refuses to run if the tag and the plugin version do not match:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;PLUGIN_VERSION&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$(&lt;/span&gt;grep -m1 -E &lt;span class="s1"&gt;'^\s*Version:'&lt;/span&gt; simple-jwt-login/simple-jwt-login.php &lt;span class="o"&gt;|&lt;/span&gt; awk &lt;span class="s1"&gt;'{print $2}'&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt; &lt;span class="s2"&gt;"$PLUGIN_VERSION"&lt;/span&gt; != &lt;span class="s2"&gt;"$GITHUB_REF_NAME"&lt;/span&gt; &lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;
  &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"::error::simple-jwt-login.php Version is '$PLUGIN_VERSION', tag is '$GITHUB_REF_NAME'"&lt;/span&gt;
  &lt;span class="nb"&gt;exit&lt;/span&gt; 1
&lt;span class="k"&gt;fi&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then it cuts the release notes out of &lt;code&gt;Changelog.md&lt;/code&gt; with a few lines of &lt;code&gt;awk&lt;/code&gt;: start at &lt;code&gt;## 4.3.0 (&lt;/code&gt;, stop at the next &lt;code&gt;##&lt;/code&gt;. It builds the zip from the tagged code, checks the version inside the zip, and creates the release. On a re-run it edits the existing release instead of failing, so a flaky run is fixed with one click.&lt;/p&gt;

&lt;h3&gt;
  
  
  Postman
&lt;/h3&gt;

&lt;p&gt;The plugin has a &lt;a href="https://www.postman.com/simple-jwt-login/simple-jwt-login/overview" rel="noopener noreferrer"&gt;public Postman collection&lt;/a&gt; generated from the OpenAPI spec. &lt;code&gt;postman.yml&lt;/code&gt; converts the spec with &lt;code&gt;openapi-to-postmanv2&lt;/code&gt; and &lt;strong&gt;replaces the content of the existing collection&lt;/strong&gt;, keeping the same UID, so the public link never changes.&lt;/p&gt;

&lt;p&gt;There is a catch. GitHub ignores &lt;code&gt;paths&lt;/code&gt; filters on tag pushes. So the workflow compares the spec with the previous tag itself, and skips publishing if nothing changed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nv"&gt;previous&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$(&lt;/span&gt;git describe --tags --abbrev=0 &lt;span class="s2"&gt;"$GITHUB_SHA^"&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; git diff --quiet &lt;span class="s2"&gt;"$previous"&lt;/span&gt; &lt;span class="s2"&gt;"$GITHUB_SHA"&lt;/span&gt; -- openapi/openapi.yaml&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;
    &lt;span class="nv"&gt;openapi&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;
    &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"::notice::openapi.yaml is unchanged since $previous, nothing to publish"&lt;/span&gt;
  &lt;span class="k"&gt;fi&lt;/span&gt;
&lt;span class="k"&gt;fi&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Before publishing it calls &lt;code&gt;openapi-validate.yml&lt;/code&gt; (the same reusable workflow PRs use) and checks that the spec's &lt;code&gt;info.version&lt;/code&gt; matches the tag.&lt;/p&gt;

&lt;h3&gt;
  
  
  After the release: does the published plugin install?
&lt;/h3&gt;

&lt;p&gt;Everything above tests the repo. Users never see the repo. They see whatever WordPress.org serves. So &lt;code&gt;wordpress-org-install.yml&lt;/code&gt; runs every morning on a cron: it installs a fresh WordPress, runs &lt;code&gt;wp plugin install simple-jwt-login --activate&lt;/code&gt;, checks that the plugin is active, and writes the installed version to the job summary.&lt;/p&gt;

&lt;p&gt;It is one short workflow, and it tests the one artifact that matters: the zip a real site downloads. If an SVN commit went wrong, a file is missing from the build, or a new WordPress release breaks activation, I find out from a red cron run, not from a support ticket.&lt;/p&gt;

&lt;h2&gt;
  
  
  Part 4: how the docs are built
&lt;/h2&gt;

&lt;p&gt;The docs site is a separate repo, &lt;code&gt;simple-jwt-login/website&lt;/code&gt;, built with Docusaurus. The API reference is not written by hand. It is generated from the same &lt;code&gt;openapi.yaml&lt;/code&gt; that Schemathesis tests against the live API. So the API docs are, quite literally, tested.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvn1d6b8d9xlbas0kz7wy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvn1d6b8d9xlbas0kz7wy.png" alt="Docs pipeline: the spec is synced to the website repo by PR, linted for structure and prose, previewed, then built and deployed on tag" width="800" height="800"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: the spec moves by pull request, not by copy-paste
&lt;/h3&gt;

&lt;p&gt;On every merge into &lt;code&gt;master&lt;/code&gt; that changes the spec, &lt;code&gt;sync-website.yml&lt;/code&gt; in the plugin repo checks out the website repo, copies the spec to &lt;code&gt;static/openapi/v4.yaml&lt;/code&gt;, and opens (or updates) a PR with &lt;a href="https://github.com/peter-evans/create-pull-request" rel="noopener noreferrer"&gt;&lt;code&gt;peter-evans/create-pull-request&lt;/code&gt;&lt;/a&gt; on a fixed &lt;code&gt;openapi-sync&lt;/code&gt; branch. The PR body says: &lt;em&gt;do not edit the spec here, change it in the plugin repository&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Two small details:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It always checks out &lt;code&gt;master&lt;/code&gt;, even on a manual re-run, so a re-run can never sync an older spec.&lt;/li&gt;
&lt;li&gt;The third-party action is pinned to a commit SHA, not a tag, because this job has a token that can write to another repo.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A PR instead of a direct push means the docs site's own CI gets a say before anything goes live.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: the website CI checks structure and words
&lt;/h3&gt;

&lt;p&gt;Three workflows run on that PR:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CI-validate&lt;/strong&gt; runs &lt;code&gt;cspell&lt;/code&gt; and a full &lt;code&gt;yarn build&lt;/code&gt;. The build fails on broken links.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CI-openapi&lt;/strong&gt; lints the spec again with Redocly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CI-vale&lt;/strong&gt; runs &lt;a href="https://vale.sh/" rel="noopener noreferrer"&gt;Vale&lt;/a&gt; with the Google and write-good styles on the docs, the website pages, &lt;strong&gt;and the &lt;code&gt;description&lt;/code&gt; / &lt;code&gt;summary&lt;/code&gt; fields of the OpenAPI spec&lt;/strong&gt;. A custom Vale view picks only the human-readable fields of the YAML. Vale cannot read text inside JSX, so the script lints the website pages from the rendered HTML in &lt;code&gt;build/&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That last point changes how I write the spec in the plugin repo. A sloppy description in &lt;code&gt;openapi.yaml&lt;/code&gt; now fails a check two repos away. I learned to write "for example" instead of "e.g." pretty quickly.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: the API pages are generated at build time
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;yarn build&lt;/code&gt; has a &lt;code&gt;prebuild&lt;/code&gt; hook that runs &lt;code&gt;gen-api&lt;/code&gt;. That uses &lt;a href="https://github.com/PaloAltoNetworks/docusaurus-openapi-docs" rel="noopener noreferrer"&gt;&lt;code&gt;docusaurus-plugin-openapi-docs&lt;/code&gt;&lt;/a&gt; to turn &lt;code&gt;v4.yaml&lt;/code&gt; (and the old &lt;code&gt;v3.yaml&lt;/code&gt;, for users still on 3.x) into MDX pages, one per endpoint, with request and response schemas and example calls. The generated pages are not committed. The spec is the source, the pages are build output.&lt;/p&gt;

&lt;p&gt;The same build also produces:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a sitemap with real &lt;code&gt;lastmod&lt;/code&gt; dates (the deploy checks out full git history for that),&lt;/li&gt;
&lt;li&gt;an &lt;code&gt;llms.txt&lt;/code&gt; file, so AI assistants can read the docs in one request,&lt;/li&gt;
&lt;li&gt;a local search index, with no external search service.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Step 4: preview deploys, without leaking secrets
&lt;/h3&gt;

&lt;p&gt;Reviewing docs as a diff is hard. You want to click around. So the website has per-PR previews on Cloudflare Workers, and this is the workflow where I was most careful.&lt;/p&gt;

&lt;p&gt;A preview has to build code from the PR, which may come from a fork. That code must never see the Cloudflare token. So &lt;code&gt;CI-preview&lt;/code&gt; has two jobs:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;build&lt;/strong&gt; checks out the PR head with &lt;code&gt;persist-credentials: false&lt;/code&gt;, has no secrets and only read permissions, and uploads &lt;code&gt;build/&lt;/code&gt; as an artifact.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;deploy&lt;/strong&gt; checks out only the trusted default branch, downloads the static files, and deploys them with the token. It never runs anything from the PR.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;It is &lt;code&gt;workflow_dispatch&lt;/code&gt; only, so only people with write access can start it. It validates that the PR number is a number, checks the PR is still open, adds an &lt;code&gt;X-Robots-Tag: noindex&lt;/code&gt; header so previews stay out of Google, and comments the preview URL on the PR.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;CI-preview-cleanup&lt;/code&gt; deletes the preview when the PR is closed, and an hourly cron deletes any preview older than 48 hours. It uses &lt;code&gt;pull_request_target&lt;/code&gt; so it has the token for fork PRs too, and that is safe only because it never checks out or runs anything from the PR. The comment at the top of the file says exactly that, so nobody "improves" it later.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 5: deploy on tag
&lt;/h3&gt;

&lt;p&gt;Pushing a tag on the website repo runs &lt;code&gt;CI-deploy&lt;/code&gt;: build, then deploy. A repository variable, &lt;code&gt;DEPLOY_TARGET&lt;/code&gt;, picks the host. &lt;code&gt;cloudflare&lt;/code&gt; deploys to Cloudflare Workers with Wrangler. Anything else deploys to GitHub Pages. Moving hosts was a variable change, not a rewrite.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a contributor actually needs to do
&lt;/h2&gt;

&lt;p&gt;All of the above sounds like a lot. From a contributor's side, it is small:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/nicumicle/simple-jwt-login.git
&lt;span class="nb"&gt;cd&lt;/span&gt; simple-jwt-login
docker compose -f docker/docker-compose.yaml up
docker &lt;span class="nb"&gt;exec&lt;/span&gt; -it wordpress bash -c &lt;span class="s2"&gt;"cd /var/www/dev &amp;amp;&amp;amp; composer run check-plugin"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;check-plugin&lt;/code&gt; runs the same checks as CI: readme sync, PHPCS, PHPMD, PHPStan, unit and feature tests. If it is green locally, the PR is almost always green.&lt;/p&gt;

&lt;p&gt;Then:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Change an endpoint? Update &lt;code&gt;openapi/openapi.yaml&lt;/code&gt; in the same PR. CI checks it against the live API, and the docs site updates itself after merge.&lt;/li&gt;
&lt;li&gt;Have release notes? Add a bullet under &lt;code&gt;## Unreleased&lt;/code&gt; in &lt;code&gt;Changelog.md&lt;/code&gt;. That is the only place you write it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You never touch SVN, Postman, the readme changelog, or the docs repo.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lessons, if you want to do this for your plugin
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;One fact, one file.&lt;/strong&gt; Generate the copies. Add a &lt;code&gt;--check&lt;/code&gt; mode to every sync script and run it in CI.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Make the tag the only release button.&lt;/strong&gt; Everything a release needs should run from &lt;code&gt;on: push: tags&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check the tag against the code.&lt;/strong&gt; A two-line version check stops the most embarrassing release bug there is.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use reusable workflows with inputs.&lt;/strong&gt; One WordPress install, two test suites. One validate job, used by PRs and by the Postman publish.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Run the deploy as a dry run on every merge.&lt;/strong&gt; Release day should not be its first run.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test security from the outside.&lt;/strong&gt; A real browser on a second origin finds things PHPUnit never will.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Give the AI reviewer your threat model.&lt;/strong&gt; A generic review prompt gets generic comments. Tell it what an attack on your plugin looks like, per path, in a file that lives in the repo.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test the docs.&lt;/strong&gt; If your API reference comes from a spec, test the spec against the live API.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Split preview builds from preview deploys.&lt;/strong&gt; Untrusted code never shares a job with a secret.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Filter by path, and include the workflow itself.&lt;/strong&gt; Docs-only PRs skip the heavy jobs, and a change to the pipeline still tests itself.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test what users download.&lt;/strong&gt; A daily install from WordPress.org catches what no test in the repo can.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Try it, read it, star it
&lt;/h2&gt;

&lt;p&gt;Everything in this post is in the open:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Plugin and workflows: &lt;strong&gt;&lt;a href="https://github.com/nicumicle/simple-jwt-login" rel="noopener noreferrer"&gt;github.com/nicumicle/simple-jwt-login&lt;/a&gt;&lt;/strong&gt; - see &lt;code&gt;.github/workflows/&lt;/code&gt;, &lt;code&gt;prepareRelease.sh&lt;/code&gt;, &lt;code&gt;syncChangelog.sh&lt;/code&gt; and &lt;code&gt;tests/CrossSite/&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Docs site: &lt;a href="https://github.com/simple-jwt-login/website" rel="noopener noreferrer"&gt;github.com/simple-jwt-login/website&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;WordPress.org deployer action: &lt;a href="https://github.com/simple-jwt-login/deployer" rel="noopener noreferrer"&gt;github.com/simple-jwt-login/deployer&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Docs: &lt;a href="https://simplejwtlogin.com" rel="noopener noreferrer"&gt;simplejwtlogin.com&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If a workflow here saved you an afternoon, &lt;strong&gt;&lt;a href="https://github.com/nicumicle/simple-jwt-login" rel="noopener noreferrer"&gt;a star on the repo&lt;/a&gt;&lt;/strong&gt; is the best way to say thanks. It helps other WordPress developers find the plugin, and it tells me this kind of write-up is worth doing again.&lt;/p&gt;

&lt;p&gt;And if you find a hole in any of it, open an issue. That is what the cross-site tests are for.&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>githubactions</category>
      <category>opensource</category>
      <category>devops</category>
    </item>
    <item>
      <title>Meet parallelHTTP — A Simple Tool to Stress-Test Your APIs</title>
      <dc:creator>Nicu Micle</dc:creator>
      <pubDate>Sat, 13 Dec 2025 06:43:18 +0000</pubDate>
      <link>https://dev.to/nicumicle/meet-parallelhttp-a-simple-tool-to-stress-test-your-apis-45ph</link>
      <guid>https://dev.to/nicumicle/meet-parallelhttp-a-simple-tool-to-stress-test-your-apis-45ph</guid>
      <description>&lt;p&gt;In a world where backend systems and APIs are the backbone of many web services, testing their performance and robustness under load is essential. That's where &lt;a href="https://github.com/nicumicle/parallelhttp" rel="noopener noreferrer"&gt;parallelhttp&lt;/a&gt; comes in — a lightweight, open-source tool designed to make it easy to send many HTTP requests in parallel, see how your server behaves, measure latency and success rate, and export results for further analysis.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is ParallelHTTP
&lt;/h2&gt;

&lt;p&gt;ParallelHTTP is a minimalistic but functional tool that lets you:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Send multiple HTTP requests in parallel. &lt;/li&gt;
&lt;li&gt;Configure method (GET, POST, etc.), endpoint URL, request body, and timeouts.&lt;/li&gt;
&lt;li&gt;Track response times and status codes. &lt;/li&gt;
&lt;li&gt;Get an aggregated summary: success/error counts, average latency, latency percentiles. &lt;/li&gt;
&lt;li&gt;Export responses to CSV for later inspection.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It ships with multiple "interfaces", depending on how you want to use it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Web UI&lt;/strong&gt;: for interactive testing via browser. &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CLI mode&lt;/strong&gt;: quick testing from terminal — ideal for automation, scripts, or CI. &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Docker image&lt;/strong&gt;: to containerize usage, making integration with other tooling easier. &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;REST API endpoint&lt;/strong&gt;: If you prefer to programmatically trigger loads or integrate with other systems, parallelhttp offers that too.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why Parallel HTTP Requests — And How parallelHTTP Fits In
&lt;/h2&gt;

&lt;p&gt;Making many HTTP requests in parallel is a common approach when you want to &lt;strong&gt;stress test&lt;/strong&gt;, &lt;strong&gt;benchmark&lt;/strong&gt;, or &lt;strong&gt;load-test&lt;/strong&gt; APIs or web services. Rather than issuing requests serially (one after the other), parallel requests let you simulate concurrent clients, which is often closer to real-world usage, especially under load or when many clients access your service simultaneously.&lt;/p&gt;

&lt;p&gt;There are many ways to implement parallelism: e.g. using threading, asynchronous programming, or language-specific libraries. For instance, in Python you might use threads or async libraries to parallelize HTTP calls.&lt;/p&gt;

&lt;p&gt;But the appeal of parallelhttp is that it bundles everything together — UI, CLI, REST API — so you don't need to write custom scripts or glue code. For developers or QA engineers who just want to spin up a quick load test, parallelhttp provides an "out-of-the-box" solution.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to install parallelHTTP
&lt;/h2&gt;

&lt;p&gt;You can use ParallelHTTP via &lt;strong&gt;binary&lt;/strong&gt;, &lt;strong&gt;Docker&lt;/strong&gt;, &lt;strong&gt;Web UI&lt;/strong&gt;, or &lt;strong&gt;CLI&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Install Using Binaries (CLI mode)
&lt;/h3&gt;

&lt;p&gt;Download the latest release from:&lt;br&gt;&lt;br&gt;
👉 &lt;a href="https://github.com/nicumicle/parallelhttp/releases" rel="noopener noreferrer"&gt;&lt;strong&gt;GitHub Releases&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;./parallelhttp &lt;span class="nt"&gt;--help&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  -duration duration
        Max duration for all calls. Example: 0-&amp;gt;no limit, 1ms, 1s, 10m
  -endpoint string
        Request endpoint to be called.
  -format string
        Response format. One of: text, yaml, json. Default json. (default "json")
  -method string
        Request Method. Default GET. (default "GET")
  -parallel int
        Number of parallel calls. Default 1. (default 1)
  -timeout duration
        Request timeout. Default 10s
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Usage example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;./parallelhttp &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--endpoint&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;http://localhost:8080/test &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--parallel&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;5 &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--method&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;GET &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;2s &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--duration&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;10s &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--format&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;json 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;will output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"requests"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"response"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"status_code"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"time"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"2025-12-02T04:39:26.450811405+01:00"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"duration"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;176680135&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"duration_h"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"176.680135ms"&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"error"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"error_message"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"response"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"status_code"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"time"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"2025-12-02T04:39:26.450838753+01:00"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"duration"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;177105875&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"duration_h"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"177.105875ms"&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"error"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"error_message"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"response"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"status_code"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"time"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"2025-12-02T04:39:26.450989804+01:00"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"duration"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;176999320&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"duration_h"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"176.99932ms"&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"error"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"error_message"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"response"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"status_code"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"time"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"2025-12-02T04:39:26.450761076+01:00"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"duration"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;177158817&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"duration_h"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"177.158817ms"&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"error"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"error_message"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"response"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"status_code"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"time"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"2025-12-02T04:39:26.450879196+01:00"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"duration"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;179940733&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"duration_h"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"179.940733ms"&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"error"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"error_message"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"stats"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"start_time"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"2025-12-02T04:39:26.450727731+01:00"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"end_time"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"2025-12-02T04:39:26.630824982+01:00"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"duration"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"180.097251ms"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"latency"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"p50"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"177.105875ms"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"p90"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"179.940733ms"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"p99"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"179.940733ms"&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. Web UI
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker run &lt;span class="nt"&gt;--rm&lt;/span&gt; &lt;span class="nt"&gt;-p&lt;/span&gt; 8080:8080 &lt;span class="nt"&gt;-it&lt;/span&gt; nicumicle/parallelhttp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Open in browser:&lt;br&gt;
👉 &lt;a href="http://localhost:8080" rel="noopener noreferrer"&gt;http://localhost:8080&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You will see:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1qv1ufqgeyadw7a89ggt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1qv1ufqgeyadw7a89ggt.png" alt="Web UI" width="800" height="485"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once you select an endpoint and click "Run", you will get the results:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8o5whsq2y80zdxjdtkpm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8o5whsq2y80zdxjdtkpm.png" alt=" " width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Use Cases — When parallelHTTP Shines
&lt;/h2&gt;

&lt;p&gt;Here are a few scenarios where using parallelhttp can be especially useful:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;API performance testing&lt;/strong&gt;: want to know how your endpoint behaves when hit 100, 1000 or 10000 times concurrently — parallelhttp can simulate load and report response times, errors, and timeouts.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Benchmarking new server versions&lt;/strong&gt;: deploy a new version and compare latency or error rate with the previous one.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Stress testing/load testing before production&lt;/strong&gt;: especially useful if you're about to launch a feature or expect a spike in traffic.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Regression testing for stability under load&lt;/strong&gt;: integrate into CI/CD to automatically run parallel tests after changes.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Exporting detailed metrics for analysis&lt;/strong&gt;: thanks to CSV export and aggregated stats, you can plug results into spreadsheets or graphs to track trends.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/nicumicle/parallelhttp" rel="noopener noreferrer"&gt;parallelHTTP&lt;/a&gt; serves a very real need: a straightforward tool for sending parallel HTTP requests that measures latency, status codes, and exports results. For developers, QA engineers, or anyone needing quick API stress-tests, it’s a neat addition to the toolbox.&lt;/p&gt;

&lt;p&gt;If you’re curious, check the &lt;a href="https://github.com/nicumicle/parallelhttp" rel="noopener noreferrer"&gt;repository&lt;/a&gt; and play with your APIs.&lt;/p&gt;

</description>
      <category>devtools</category>
      <category>api</category>
      <category>stresstest</category>
    </item>
    <item>
      <title>JWT in WordPress - Connect Mobile Apps with WordPress</title>
      <dc:creator>Nicu Micle</dc:creator>
      <pubDate>Sat, 08 Jan 2022 07:45:14 +0000</pubDate>
      <link>https://dev.to/nicumicle/jwt-in-wordpress-connect-mobile-apps-with-wordpress-4ecn</link>
      <guid>https://dev.to/nicumicle/jwt-in-wordpress-connect-mobile-apps-with-wordpress-4ecn</guid>
      <description>&lt;h2&gt;
  
  
  What is Simple JWT Login?
&lt;/h2&gt;

&lt;p&gt;Simple JWT Login is a &lt;strong&gt;FREE&lt;/strong&gt; WordPress plugin that allows you to use a JWT on WordPress REST endpoints.&lt;/p&gt;

&lt;p&gt;The main purpose of this plugin is to allow Mobile apps, or other websites to access the content from a WordPress website via REST endpoints in a secure way.&lt;/p&gt;

&lt;h2&gt;
  
  
  Some Awesome Features.
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;AUTO LOGIN&lt;/strong&gt;: You are able to auto-login into a WordPress website with a JWT.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;REGISTER USERS&lt;/strong&gt;: API endpoint that allows you to register new users in WordPress.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DELETE USERS&lt;/strong&gt;: Delete Users with JWT.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AUTHENTICATE USERS&lt;/strong&gt;: API endpoint to Generate a JWT, refresh JWT and invalidate JWT.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;LIMIT ACCESS BY IP ADDRESS&lt;/strong&gt;: Limit access to Simple-JWT-Login only for specific IP addresses.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CREATE USERS WITH DIFFERENT ROLES&lt;/strong&gt;: You are able to create multiple users with different roles on the same endpoint.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;INTEGRATES WELL WITH OTHER PLUGINS&lt;/strong&gt;: This plugin works well in combination with other plugins that extends the WordPRess REST API.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ALLOW JWT USAGE ON OTHER ENDPOINTS&lt;/strong&gt;: Add a JWT to requests for other api endpoints and you will act as an authenticated user.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PROTECT ENDPOINTS&lt;/strong&gt;: Protect endpoints for being accessed without a JWT. This way, you can limit the access to your endpoints only to authenticated users.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CORS SUPPORT&lt;/strong&gt;: CORS support for your API endpoints.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;RESET PASSWORD&lt;/strong&gt;: You can request password change via API call.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CHANGE PASSWORD&lt;/strong&gt;: You can change users password with an API call.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How the plugin looks like?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Plugin Dashboard&lt;/strong&gt;:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F06torgo4c2ca8sufkrbq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F06torgo4c2ca8sufkrbq.png" alt="Dashboard" width="800" height="268"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;General Settings&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk1sbz9m2dqqsdef9nt31.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk1sbz9m2dqqsdef9nt31.png" alt="General Settings" width="800" height="424"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How to install the plugin?
&lt;/h2&gt;

&lt;p&gt;Here’s how you install and activate the Simple-JWT-login plugin:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Go to the Plugins menu in WordPress and click Add New&lt;/li&gt;
&lt;li&gt;Search for 'Simple JWT Login' and select Install Now&lt;/li&gt;
&lt;li&gt;Activate the plugin when prompted&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Or&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Download the plugin from &lt;a href="https://wordpress.org/plugins/simple-jwt-login" rel="noopener noreferrer"&gt;https://wordpress.org/plugins/simple-jwt-login&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Upload the zip file in WordPress&lt;/li&gt;
&lt;li&gt;Activate the plugin&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  SDK
&lt;/h2&gt;

&lt;p&gt;Currently I've implemented only the PHP SDK, that can be found here: &lt;a href="https://github.com/nicumicle/simple-jwt-login-client-php" rel="noopener noreferrer"&gt;https://github.com/nicumicle/simple-jwt-login-client-php&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'm planning in the near feature to release a JS SDK.  &lt;/p&gt;

&lt;h2&gt;
  
  
  Documentation
&lt;/h2&gt;

&lt;p&gt;You can find more details about the plugin on &lt;a href="https://simplejwtlogin.com" rel="noopener noreferrer"&gt;https://simplejwtlogin.com&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Contribution
&lt;/h2&gt;

&lt;p&gt;Any feedback is welcomed. Feel free to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;create a topic on &lt;a href="https://wordpress.org/support/plugin/simple-jwt-login/" rel="noopener noreferrer"&gt;https://wordpress.org/support/plugin/simple-jwt-login/&lt;/a&gt; &lt;/li&gt;
&lt;li&gt;or create an issue on &lt;a href="https://github.com/nicumicle/simple-jwt-login" rel="noopener noreferrer"&gt;https://github.com/nicumicle/simple-jwt-login&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>wordpress</category>
      <category>php</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
