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.08MB] [CPU: ▼4.10ms] Passed 4 tests
Server-side resources used by Head, Footer and Post Injections
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 42.62 ▲2.35 |
Dashboard /wp-admin | 3.38 ▲0.08 | 44.08 ▼7.98 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 44.56 ▼3.14 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 89.97 ▼2.30 |
Media Library /wp-admin/upload.php | 3.31 ▲0.07 | 34.17 ▼2.99 |
Head and Footer /wp-admin/options-general.php?page=header-footer/admin/options.php | 3.40 | 32.67 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
hefo |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Head, Footer and Post Injections
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.25 ▼0.32 | 1.69 ▼0.10 | 38.37 ▼6.00 |
Dashboard /wp-admin | 2,196 ▲18 | 5.54 ▼0.16 | 82.80 ▼32.35 | 38.33 ▼8.21 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.01 ▼0.01 | 35.40 ▼1.58 | 32.39 ▼3.81 |
Add New Post /wp-admin/post-new.php | 6,239 ▲4,713 | 20.95 ▼2.26 | 830.36 ▲156.53 | 69.64 ▲19.11 |
Media Library /wp-admin/upload.php | 1,398 ▲1 | 4.15 ▼0.03 | 94.31 ▼56.77 | 41.53 ▼12.98 |
Head and Footer /wp-admin/options-general.php?page=header-footer/admin/options.php | 3,850 | 4.93 | 148.23 | 158.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=header-footer/admin/options.php
- > Notice in wp-content/plugins/header-footer/admin/controls.php+163
Undefined index: inner_alt_1
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=header-footer/admin/options.php
- > Notice in wp-content/plugins/header-footer/admin/controls.php+163
Undefined index: inner_alt_2
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=header-footer/admin/options.php
- > Notice in wp-content/plugins/header-footer/admin/controls.php+163
Undefined index: inner_alt_3
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=header-footer/admin/options.php
- > Notice in wp-content/plugins/header-footer/admin/controls.php+163
Undefined index: inner_alt_4
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=header-footer/admin/options.php
- > Notice in wp-content/plugins/header-footer/admin/controls.php+163
Undefined index: inner_alt_5
- > GET request to /wp-admin/options-general.php?page=header-footer/admin/options.php
- > Notice in wp-content/plugins/header-footer/admin/options.php+455
Undefined index: mobile_user_agents_parsed
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 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
6 plugin tags: ads, amp, footer, facebook pixel, analytics...
header-footer/plugin.php 85% from 13 tests
This is the main PHP file of "Head, Footer and Post Injections" version 3.2.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 205 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("header-footer.php" instead of "plugin.php")
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
Success! There were no dangerous files found in this plugin993 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 222 | 37 | 878 |
CSS | 3 | 20 | 5 | 115 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
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 | 35 | |
▷ Named functions | 25 | 71.43% |
▷ Anonymous functions | 10 | 28.57% |
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
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/jquery-ui/images/ui-icons_555555_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |
vendor/jquery-ui/images/ui-icons_cc0000_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
vendor/jquery-ui/images/ui-icons_777777_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
vendor/jquery-ui/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
vendor/jquery-ui/images/ui-icons_777620_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |