Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▲0.34ms] Passed 4 tests
An overview of server-side resources used by Better Headers
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 44.27 ▲2.93 |
Dashboard /wp-admin | 3.53 ▲0.23 | 48.16 ▼2.49 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 48.65 ▼0.73 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.23 | 88.89 ▲1.65 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 35.67 ▲5.01 |
Better Headers /wp-admin/options-general.php?page=better-headers-settings | 3.40 | 31.33 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Better Headers
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.26 ▼1.15 | 1.98 ▲0.33 | 42.69 ▼6.94 |
Dashboard /wp-admin | 2,207 ▲19 | 5.83 ▲0.95 | 98.74 ▼7.62 | 39.80 ▼3.36 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 1.97 ▼0.16 | 39.55 ▼3.43 | 39.15 ▲3.60 |
Add New Post /wp-admin/post-new.php | 1,523 ▼10 | 23.33 ▲0.07 | 668.50 ▼4.77 | 54.69 ▲1.00 |
Media Library /wp-admin/upload.php | 1,383 ▼5 | 4.17 ▲0.02 | 99.07 ▼6.68 | 43.07 ▲0.54 |
Better Headers /wp-admin/options-general.php?page=better-headers-settings | 1,791 | 1.72 | 31.68 | 48.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=better-headers-settings
- > Notice in wp-content/plugins/better-headers/better-headers.php+724
Trying to access array offset on value of type bool
SRP 50% from 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
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/better-headers/better-headers.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: better, policy, response, headers, options...
better-headers/better-headers.php 85% from 13 tests
Analyzing the main PHP file in "Better Headers" version 2.1
Please take the time to fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin757 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 56 | 59 | 757 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
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 | 60 | |
▷ Named functions | 59 | 98.33% |
▷ Anonymous functions | 1 | 1.67% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
header.png | 10.50KB | 6.82KB | ▼ 35.03% |