承接 pantheon-systems/wp-tls-compatibility-checker 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

pantheon-systems/wp-tls-compatibility-checker

Composer 安装命令:

composer require pantheon-systems/wp-tls-compatibility-checker

包简介

A scanner for outgoing HTTP requests in WordPress code to check TLS 1.2/1.3 compatibility.

README 文档

README

Unofficial Support Test WP-CLI Lint GitHub Release GitHub License

Stable tag: 1.0.0
Contributors: jazzsequence

A scanner for outgoing HTTP requests in WordPress code to check TLS 1.2/1.3 compatibility.

Installation

Via Composer

composer require pantheon-systems/wp-tls-compatibility-checker

Via Git Updater

WP TLS Compatibility Checker supports Andy Fragen's Git Updater method of managing plugins.

  1. Download and install Git Updater on your WordPress site.
  2. From the Git Updater admin pages, navigate to Install Plugin and use the following values:

Plugin URI: pantheon-systems/wp-tls-compatibility-checker
Repository Branch: main
Remote Repository Host: GitHub
GitHub Access Token: (optional, leave blank)

Manually

  1. Download the [latest release on GitHub](https://.
  2. Unzip the archive into your WordPress plugins directory (usually /wp-content/plugins/).
  3. Upload the plugin to your WordPress site.
  4. Activate the plugin.

Usage

There are two ways to use the TLS Checker: via the WordPress admin or via WP-CLI. The plugin adds a new TLS Compatibility page to the Tools menu. This page allows you to run a TLS scan on your site against /wp-content and all subdirectories. When the scan is complete, a list of URLs that are not compatible with TLS 1.2 or higher will be displayed.

WP TLS Compatibility Checker admin page

You can also run the scan using the WP-CLI command described below. WP-CLI allows you to specify directories to scan, and to output the results in different formats (table, JSON, CSV, or YAML).

In either case, both passing and failing urls are stored to the database. Subsequent scans will automatically skip the TLS check for URLs that are known to have passed previously (while still testing URLs that were previously failing). This data can be reset at any time either by using the tls-checker reset command from WP-CLI or in the admin with the "Reset TLS Compatibility Data" button.

After a scan has been run, if there are any URLs detected that fail the TLS 1.2/1.3 check, an alert will be displayed on your Site Health page with a list of the failing URLs.

Site Health reported issue

Filters

The TLS Compatibility Checker plugin contains two filters that can be used to either explicitly add URLs to scan or exclude URLs from scanning.

pantheon.tls_checker.skip_urls

This filter can be used to exclude URLs from scanning. The filter accepts an array of URLs to skip. For example:

add_filter( 'pantheon.tls_checker.skip_urls', function( $skip_urls ) {
	$skip_urls[] = 'https://example.com';
	return $skip_urls;
} ) ;

pantheon.tls_checker.additional_urls

This filter can be used to add URLs to scan. The filter accepts an array of URLs to add. For example:

add_filter( 'pantheon.tls_checker.additional_urls', function( $additional_urls ) {
	$additional_urls[] = 'https://example.com';
	return $additional_urls;
} ) ;

Extending the plugin

All the functions in inc/core.php are globally declared, allowing you to use any of them in your own code.

WP-CLI Commands

The TLS Checker can be run from the command line with WP-CLI.

run

Runs the TLS checker scan across all PHP files in the given directories (defaults to /mu-plugins, /themes and /plugins). You can specify a directory by passing a --directory flag, e.g.:

wp tls-checker run --directory=/path/to/my/directory

Examples

wp tls-checker scan
wp tls-checker scan --directory=/private/scripts/quicksilver

Or, in a Pantheon environment using Terminus:

terminus wp -- <site>.<env> tls-checker scan

report

Returns a full report of checked URLs and whether they passed or failed the TLS check. Supports multiple formats (table, JSON, CSV, YAML).

Examples

wp tls-checker report
wp tls-checker report --format=json | jq
wp tls-checker report --format=csv

Or, in a Pantheon environment using Terminus:

terminus wp -- <site>.<env> tls-checker report

reset

Resets the stored passing and failing URLs so the next scan will re-check all discovered URLs.

Examples

wp tls-checker reset
terminus wp -- <site>.<env> tls-checker reset

How do I know it worked?

If the scan doesn't find anything bad, you should be good to go. If it does, it will list the URLs that it found that weren't compatible. However, if you want to validate that it's working, you can create a new plugin with the following code:

<?php
/**
 * Plugin Name: TLS checker bad plugin
 * Description: Makes a request against a known bad (non-TLS 1.2+) URL
 * Version: 1.3
 * Author: Pantheon Systems
 */
add_action( 'admin_init', function() {
	print_r( wp_remote_get( 'https://tls-v1-1.badssl.com:1011/' ) );
});

When you run the command, the URL above should be returned as a host that does NOT support TLS 1.2 or higher.

pantheon-systems/wp-tls-compatibility-checker 适用场景与选型建议

pantheon-systems/wp-tls-compatibility-checker 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1 次下载、GitHub Stars 达 1, 最近一次更新时间为 2025 年 03 月 07 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 pantheon-systems/wp-tls-compatibility-checker 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 pantheon-systems/wp-tls-compatibility-checker 我们能提供哪些服务?
定制开发 / 二次开发

基于 pantheon-systems/wp-tls-compatibility-checker 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 1
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 24
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 5
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-03-07