Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.16MB] [CPU: ▼11.73ms] Passed 4 tests
An overview of server-side resources used by Sentinel Headers Unlimited Extension
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 42.09 ▼3.33 |
Dashboard /wp-admin | 3.48 ▲0.14 | 46.99 ▼16.19 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 48.83 ▲3.57 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 83.45 ▼28.03 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 34.21 ▲0.62 |
Sentinel Headers Unlimited Extension /wp-admin/options-general.php?page=enhanced-csp-and-hsts-security-headers-sentinel-setting-url | 3.37 | 35.85 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Sentinel Headers Unlimited Extension: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,980 ▲234 | 14.78 ▲0.52 | 1.61 ▼0.11 | 35.30 ▼9.79 |
Dashboard /wp-admin | 2,390 ▲219 | 5.78 ▲0.25 | 82.31 ▼10.39 | 54.88 ▲15.82 |
Posts /wp-admin/edit.php | 2,189 ▲86 | 2.03 ▲0.04 | 34.13 ▼9.62 | 36.09 ▼3.61 |
Add New Post /wp-admin/post-new.php | 1,544 ▲16 | 23.50 ▲0.27 | 650.62 ▲41.35 | 59.82 ▲8.84 |
Media Library /wp-admin/upload.php | 1,489 ▲89 | 4.25 ▲0.03 | 96.32 ▲4.66 | 40.44 ▲1.23 |
Sentinel Headers Unlimited Extension /wp-admin/options-general.php?page=enhanced-csp-and-hsts-security-headers-sentinel-setting-url | 1,760 | 1.85 | 27.41 | 107.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sentinel-headers-unlimited-extension/sentinel-headers-unlimited-extension.php:62
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== sentinel-headers-unlimited-extension ===
) - Screenshots: These screenshots do not have images: #10 (Content Security Policy (CSP) (BEFORE)), #11 (Site-wide security setting)
sentinel-headers-unlimited-extension/sentinel-headers-unlimited-extension.php 92% from 13 tests
"Sentinel Headers Unlimited Extension" version 0.0.03's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 639 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected500 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 29 | 44 | 398 |
PO File | 1 | 11 | 15 | 53 |
CSS | 2 | 1 | 1 | 49 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.13MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon3.png | 1.79KB | 1.23KB | ▼ 31.25% |
assets/icon-256x256.png | 114.49KB | 53.87KB | ▼ 52.95% |
assets/images/icon2.png | 16.07KB | 7.22KB | ▼ 55.06% |