Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/headit/options.php+31
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.85MB] [CPU: ▼50.41ms] Passed 4 tests
This is a short check of server-side resources used by Headit
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.22 ▼4.14 |
Dashboard /wp-admin | 2.10 ▼1.21 | 5.61 ▼47.04 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 6.04 ▼40.65 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 5.33 ▼84.02 |
Media Library /wp-admin/upload.php | 2.10 ▼1.14 | 6.21 ▼29.91 |
Headit /wp-admin/options-general.php?page=headit_options | 2.10 | 5.71 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Headit
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.48 ▼0.14 | 1.70 ▼0.04 | 38.72 ▼11.78 |
Dashboard /wp-admin | 2,213 ▲25 | 5.88 ▲0.96 | 102.89 ▼13.31 | 38.80 ▼7.66 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.05 | 37.26 ▼0.38 | 32.34 ▼5.97 |
Add New Post /wp-admin/post-new.php | 1,536 ▲2 | 23.19 ▼0.03 | 625.59 ▼56.44 | 47.28 ▼7.58 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.28 ▲0.05 | 95.91 ▼0.20 | 41.98 ▲0.00 |
Headit /wp-admin/options-general.php?page=headit_options | 892 | 2.03 | 32.76 | 46.09 |
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
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/headit/options.php+31
Array and string offset access syntax with curly braces is deprecated
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=headit_options
- > Deprecated in wp-content/plugins/headit/options.php+31
Array and string offset access syntax with curly braces is deprecated
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/headit/headit.php
- > /wp-content/plugins/headit/options.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: csrf, hsts, hpkp, headers, http header...
headit/headit.php Passed 13 tests
The main file in "Headit" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
62 characters long description:
Allows adding arbitrary HTTP headers to all outbound responses
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin135 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 25 | 31 | 135 |
PHP code Passed 2 tests
An overview 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.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 | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
No PNG images were found in this plugin