Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲1.94MB] [CPU: ▲7.54ms] Passed 4 tests
An overview of server-side resources used by Security Header Generator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.40 ▲1.93 | 50.61 ▲12.24 |
Dashboard /wp-admin | 5.25 ▲1.94 | 57.40 ▲3.50 |
Posts /wp-admin/edit.php | 5.30 ▲1.94 | 66.67 ▲18.55 |
Add New Post /wp-admin/post-new.php | 7.85 ▲1.96 | 94.88 ▲1.80 |
Media Library /wp-admin/upload.php | 5.17 ▲1.94 | 50.78 ▲12.61 |
Server storage [IO: ▲1.92MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 236 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
wpsh_settings |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Security Header Generator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,864 ▲103 | 14.35 ▼0.01 | 1.53 ▼0.04 | 36.06 ▼3.78 |
Dashboard /wp-admin | 2,262 ▲82 | 5.69 ▲0.02 | 90.10 ▼10.62 | 38.62 ▼4.83 |
Posts /wp-admin/edit.php | 2,170 ▲70 | 2.04 ▲0.07 | 41.54 ▲5.37 | 36.98 ▲2.01 |
Add New Post /wp-admin/post-new.php | 1,588 ▲59 | 18.13 ▼4.91 | 604.29 ▼69.19 | 70.33 ▲16.43 |
Media Library /wp-admin/upload.php | 1,467 ▲67 | 4.27 ▲0.11 | 100.54 ▼7.87 | 43.09 ▼3.84 |
Content Security Headers /wp-admin/admin.php?page=wpsh_settings#tab=content-security-headers | 4,391 | 3.99 | 74.48 | 41.85 |
Documentation /wp-admin/admin.php?page=wpsh_settings#tab=documentation | 4,544 | 3.45 | 58.02 | 42.43 |
Permissions Policy Headers /wp-admin/admin.php?page=wpsh_settings#tab=permissions-policy-headers | 4,403 | 4.02 | 61.22 | 32.60 |
Export/Import Settings /wp-admin/admin.php?page=wpsh_settings#tab=export-import-settings | 4,398 | 3.45 | 55.38 | 28.62 |
Standard Security Headers /wp-admin/admin.php?page=wpsh_settings#tab=standard-security-headers | 4,433 | 3.82 | 59.50 | 34.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-includes/option.php+2520
Trying to access array offset on value of type null
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- wpsh_settings
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 69× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/security-header-generator/vendor/custom-fields/fields/code_editor/index.php
- > /wp-content/plugins/security-header-generator/index.php
- > /wp-content/plugins/security-header-generator/vendor/custom-fields/fields/hidden/index.php
- > /wp-content/plugins/security-header-generator/vendor/custom-fields/fields/media/index.php
- > /wp-content/plugins/security-header-generator/vendor/custom-fields/fields/switcher/index.php
- > /wp-content/plugins/security-header-generator/vendor/custom-fields/fields/repeater/index.php
- > /wp-content/plugins/security-header-generator/vendor/custom-fields/fields/number/index.php
- > /wp-content/plugins/security-header-generator/vendor/custom-fields/fields/radio/index.php
- > /wp-content/plugins/security-header-generator/vendor/custom-fields/fields/link_color/index.php
- > /wp-content/plugins/security-header-generator/work/common.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: permissions, security, permissions policy, content security policy, security headers
security-header-generator/security-header-generator.php Passed 13 tests
This is the main PHP file of "Security Header Generator" version 4.1.23, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
73 characters long description:
Generates proper security headers for the front-end & admin of your site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin35,147 lines of code in 140 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 86 | 2,980 | 2,022 | 9,173 |
Sass | 20 | 1,425 | 3 | 7,941 |
JavaScript | 7 | 1,321 | 513 | 6,627 |
PO File | 20 | 3,198 | 3,591 | 6,500 |
CSS | 6 | 376 | 509 | 4,901 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 25.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 151.00 |
Average method complexity | 6.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 68.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 69 | |
▷ Abstract classes | 2 | 2.90% |
▷ Concrete classes | 67 | 97.10% |
▷ Final classes | 0 | 0.00% |
Methods | 301 | |
▷ Static methods | 60 | 19.93% |
▷ Public methods | 282 | 93.69% |
▷ Protected methods | 1 | 0.33% |
▷ Private methods | 18 | 5.98% |
Functions | 34 | |
▷ Named functions | 22 | 64.71% |
▷ Anonymous functions | 12 | 35.29% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/custom-fields/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |