84% tls-1-2-compatibility-test

Code Review | TLS 1.2 Compatibility Test

WordPress plugin TLS 1.2 Compatibility Test scored84%from 54 tests.

About plugin

  • Plugin page: tls-1-2-compatibi...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Jun 17, 2016
  • Latest release: Aug 9, 2019
  • Number of updates: 6
  • Update frequency: every 191.3 days
  • Top authors: strangerstudios (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

3,000+ active /28,392 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼0.59ms] Passed 4 tests

A check of server-side resources used by TLS 1.2 Compatibility Test
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.78 ▲3.16
Dashboard /wp-admin3.34 ▲0.0451.97 ▲1.46
Posts /wp-admin/edit.php3.39 ▲0.0450.38 ▼1.13
Add New Post /wp-admin/post-new.php5.92 ▲0.0489.76 ▼5.84
Media Library /wp-admin/upload.php3.27 ▲0.0438.72 ▲4.73
TLS 1.2 Test /wp-admin/tools.php?page=tls12ct-tests3.25260.29

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

TLS 1.2 Compatibility Test: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.20 ▼1.061.77 ▼0.2142.27 ▼2.18
Dashboard /wp-admin2,228 ▲254.84 ▼1.04113.82 ▲7.9245.88 ▲7.44
Posts /wp-admin/edit.php2,107 ▲71.96 ▼0.0434.82 ▼1.9531.46 ▼0.28
Add New Post /wp-admin/post-new.php1,548 ▲2222.94 ▲5.36649.81 ▼2.6567.39 ▲17.68
Media Library /wp-admin/upload.php1,407 ▲74.31 ▲0.0597.77 ▼6.2543.30 ▼3.91
TLS 1.2 Test /wp-admin/tools.php?page=tls12ct-tests1,0012.0521.5726.04

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tls-1-2-compatibility-test/tls-1-2-compatibility-test.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt might help

tls-1-2-compatibility-test/tls-1-2-compatibility-test.php 92% from 13 tests

"TLS 1.2 Compatibility Test" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin220 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12048220

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin