90% security-txt-manager

Code Review | Security.txt Manager

WordPress plugin Security.txt Manager scored90%from 54 tests.

About plugin

  • Plugin page: security-txt-manager
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.3
  • WordPress version: 6.3.1
  • First release: Jun 15, 2023
  • Latest release: Jul 22, 2023
  • Number of updates: 3
  • Update frequency: every 12.3 days
  • Top authors: handyplugins (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active /489 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Security.txt Manager
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0535.55 ▼1.35
Dashboard /wp-admin3.35 ▲0.0151.66 ▼12.84
Posts /wp-admin/edit.php3.40 ▲0.0547.81 ▼1.14
Add New Post /wp-admin/post-new.php5.93 ▲0.0592.99 ▼0.66
Media Library /wp-admin/upload.php3.28 ▲0.0535.92 ▼1.54
Security.txt /wp-admin/options-general.php?page=security-txt-settings3.2429.89

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Security.txt Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.67 ▼0.982.01 ▲0.4542.39 ▲3.20
Dashboard /wp-admin2,207 ▲165.84 ▲0.9997.06 ▼9.4740.51 ▼2.56
Posts /wp-admin/edit.php2,096 ▲71.99 ▼0.0239.62 ▼1.3335.90 ▼1.52
Add New Post /wp-admin/post-new.php1,522 ▼622.94 ▲4.52635.05 ▲25.7255.14 ▼1.49
Media Library /wp-admin/upload.php1,392 ▲74.25 ▲0.0293.71 ▼7.1942.29 ▼2.64
Security.txt /wp-admin/options-general.php?page=security-txt-settings8242.0224.7228.69

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: responsible disclosure, securitytxt, security, bug bounty

security-txt-manager/plugin.php 92% from 13 tests

The main PHP script in "Security.txt Manager" version 1.0.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("security-txt-manager.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin194 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP653120194

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
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
Namespaces5
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants650.00%
▷ Class constants650.00%
▷ Public constants6100.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 files were detected