Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.32MB] [CPU: ▼0.60ms] Passed 4 tests
A check of server-side resources used by Insert Headers And Footers
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.28 | 40.52 ▼1.92 |
Dashboard /wp-admin | 3.69 ▲0.39 | 53.88 ▲0.52 |
Posts /wp-admin/edit.php | 3.75 ▲0.39 | 58.38 ▲12.08 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 96.53 ▼3.69 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 38.79 ▲2.68 |
WP Headers and Footers /wp-admin/options-general.php?page=wp-headers-and-footers | 3.54 | 40.70 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 10 new options
New WordPress options |
---|
wpheaderandfooter_basics |
wpheaderandfooter_settings |
widget_recent-posts |
widget_recent-comments |
wpheaderandfooter_basics_logger |
widget_theysaidso_widget |
wpheaderandfooter_diagnostic_log |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Insert Headers And Footers
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,948 ▲186 | 14.80 ▲0.44 | 1.65 ▲0.05 | 40.50 ▼5.02 |
Dashboard /wp-admin | 2,356 ▲182 | 6.33 ▲0.66 | 118.55 ▲18.91 | 41.40 ▼4.84 |
Posts /wp-admin/edit.php | 2,284 ▲187 | 3.48 ▲1.48 | 57.26 ▲20.17 | 35.15 ▼0.84 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 23.32 ▲0.22 | 600.33 ▼105.50 | 33.34 ▼12.24 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.34 ▲0.16 | 84.24 ▼13.85 | 41.01 ▲0.12 |
WP Headers and Footers /wp-admin/options-general.php?page=wp-headers-and-footers | 1,630 | 5.85 | 118.63 | 108.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 10 options
- theysaidso_admin_options
- wpheaderandfooter_basics_logger
- widget_recent-comments
- wpheaderandfooter_basics
- widget_recent-posts
- can_compress_scripts
- wpheaderandfooter_diagnostic_log
- wpheaderandfooter_settings
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please take a closer look at the following
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-headers-and-footers/lib/wpb-sdk/views/wpb-sdk-deactivate-form.php:109
- > PHP Notice
Undefined variable: product_slug in wp-content/plugins/wp-headers-and-footers/lib/wpb-sdk/views/wpb-sdk-deactivate-form.php on line 103
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-headers-and-footers/classes/plugin-meta.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-headers-and-footers/wp-headers-and-footers.php:137
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #2, #3 in wp-headers-and-footers/assets to your readme.txt
wp-headers-and-footers/wp-headers-and-footers.php Passed 13 tests
"Insert Headers And Footers" version 2.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
81 characters long description:
Allows you to insert code or text in the header or footer of your WordPress site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected2,268 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 405 | 654 | 1,475 |
CSS | 3 | 25 | 8 | 732 |
JavaScript | 1 | 7 | 1 | 47 |
SVG | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 23.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 75.00 |
Average method complexity | 3.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 1 | 12.50% |
Methods | 79 | |
▷ Static methods | 10 | 12.66% |
▷ Public methods | 68 | 86.08% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 13.92% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
asset/img/icons.png | 13.07KB | 4.75KB | ▼ 63.65% |
asset/img/icon-128x128.png | 1.98KB | 0.62KB | ▼ 68.48% |