WP Manifestindependent plugin directory
manifest / editor / betterbookmarks

Better Bookmarks WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

A link card block that fetches Open Graph metadata and renders a rich preview card.

★ 0stars
24release downloads
V1.1.0latest · 6mo ago

Install

Download better-bookmarks.zip From the V1.1.0 release on GitHub, Apr 5, 2026

Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/philhoyt/betterbookmarks/releases/download/V1.1.0/better-bookmarks.zip
Updates itself. It ships its own updater (Plugin Update Checker), so new versions appear under Dashboard → Updates.

A WordPress block that fetches Open Graph metadata from a URL and renders a link preview card.

Better Bookmarks block showing a link preview card

Requirements

  • WordPress 6.5+
  • PHP 7.2+
  • Node.js 20+ (for building from source)

Installation

Download the latest better-bookmarks.zip from the Releases page, then install it from Plugins > Add New Plugin > Upload Plugin in your WordPress admin.

Building from Source

npm install && npm run build

Activate the plugin from the WordPress admin. The build/ directory must be present.

Usage

Add the Link Card block from the block inserter. Paste a URL into the placeholder input and press Enter. The block fetches metadata via the REST API, stores it as block attributes, and renders server-side on the frontend.

Once a preview is loaded, the Styles tab in the block inspector gives you:

  • Aspect ratio (pulls from your theme's registered ratios, same as the core Image block)
  • Image fit (cover or contain)
  • Typography, color, border, shadow, spacing

The editor preview is not clickable. The frontend card opens the URL in a new tab.

Style variations: Default, Compact (horizontal thumbnail), Compact Stacked (vertical with constrained width), Minimal (domain and title only).

TMDb Integration

For IMDb URLs, the plugin can pull richer metadata (title, description, poster) from TMDb instead of scraping the IMDb page. Add your TMDb API key in Settings > Better Bookmarks, or define it in wp-config.php:

define( 'BETTER_BOOKMARKS_TMDB_API_KEY', 'your-key-here' );

REST API

GET /wp-json/better-bookmarks/v1/preview?url={url}

Requires edit_posts capability. The URL must be a valid public http/https address. Private and reserved IP ranges are blocked.

{
  "url": "https://example.com",
  "title": "Page title",
  "description": "OG or meta description, truncated to 200 characters.",
  "image": "https://example.com/image.jpg",
  "domain": "example.com",
  "imageWidth": 1200,
  "imageHeight": 630
}

Image dimensions come from og:image:width/og:image:height tags when present. If absent, the endpoint fetches the first 32 KB of the image to read the file header (5-second timeout). If that fails, dimensions return as 0 and the block uses a 1.91:1 default aspect ratio.

Limitations

  • Metadata is fetched at edit time and stored in block attributes. The card does not update if the linked page changes.
  • The REST endpoint fetches pages server-side, so it will not see content injected by JavaScript.
  • Meta tag parsing uses regex, not a DOM parser. Malformed HTML may cause silent extraction failures.
  • No caching. Each fetch is a fresh HTTP request.
  • Description is hard-truncated at 200 characters server-side.

Development

npm start              # Webpack watch mode
npm run build          # Production build
npm run lint           # ESLint + Stylelint
npm run test:js        # Jest unit tests
composer run lint      # PHPCS (WordPress Coding Standards)
composer run test      # PHPUnit

Source files are in src/blocks/link-card/. Built output goes to build/.

Releases

Releases are published automatically when a version tag is pushed:

git tag v1.2.0 && git push origin v1.2.0

The CI workflow builds the assets, packages the plugin zip via wp-scripts plugin-zip, and attaches both the zip and readme.txt to the GitHub release.

Releases

7 releases. Each count is every asset in that release; expand a row for the breakdown.

Tag
Published
Assets
Downloads
V1.1.0 latest
Apr 5, 2026 6mo ago
better-bookmarks.zip +1 asset
9
better-bookmarks.zip8
readme.txt1
Mar 28, 2026 6mo ago
better-bookmarks.zip +1 asset
10
better-bookmarks.zip9
readme.txt1
Mar 28, 2026 6mo ago
better-bookmarks.zip
4
Mar 27, 2026 7mo ago
better-bookmarks.zip
0
Mar 27, 2026 7mo ago
better-bookmarks.zip
1
Mar 27, 2026 7mo ago
better-bookmarks.zip
1
Mar 27, 2026 7mo ago
better-bookmarks.zip
1
A grade

Security

Better Bookmarks 1.1.0 · audited by WP Registry

No security issues found.

Audited release
1.1.0
Findings
none
Worst severity
—
Content hash
2a4e2dec806489934d3f0a0e…

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.