Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.83MB] [CPU: ▲5.85ms] Passed 4 tests
Analyzing server-side resources used by Header Footer Custom Html
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.12 ▲0.66 | 46.68 ▲6.75 |
Dashboard /wp-admin | 4.22 ▲0.87 | 58.45 ▲4.87 |
Posts /wp-admin/edit.php | 4.26 ▲0.91 | 53.44 ▲13.62 |
Add New Post /wp-admin/post-new.php | 6.86 ▲0.97 | 101.84 ▲3.40 |
Media Library /wp-admin/upload.php | 4.11 ▲0.89 | 44.19 ▲8.39 |
Support Forum /wp-admin/admin.php?page=header-footer-custom-html-wp-support-forum | 3.82 | 30.29 |
Contact Us /wp-admin/admin.php?page=header-footer-custom-html-contact | 4.16 | 39.12 |
Global Settings /wp-admin/admin.php?page=header-footer-custom-html | 4.17 | 45.08 |
Header Footer Custom Html /wp-admin/admin.php?page=header-footer-custom-html&page=header-footer-custom-html | 4.15 | 46.25 |
Add New /wp-admin/post-new.php?post_type=enwb_hfch_settings | 4.28 | 55.56 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 4.50 | 41.80 |
Upgrade ➤ /wp-admin/admin.php?page=header-footer-custom-html-pricing | 4.18 | 41.37 |
All HFCH Settings /wp-admin/edit.php?post_type=enwb_hfch_settings | 4.20 | 47.11 |
Server storage [IO: ▲3.34MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 223 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
fs_debug_mode |
db_upgraded |
theysaidso_admin_options |
fs_active_plugins |
widget_recent-comments |
fs_accounts |
Browser metrics Passed 4 tests
Header Footer Custom Html: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,083 ▲337 | 15.26 ▲0.67 | 6.39 ▲4.62 | 42.18 ▼2.57 |
Dashboard /wp-admin | 2,406 ▲226 | 6.40 ▲0.76 | 113.38 ▲29.05 | 37.65 ▼0.49 |
Posts /wp-admin/edit.php | 2,336 ▲236 | 3.26 ▲1.29 | 49.16 ▲8.62 | 30.50 ▼11.29 |
Add New Post /wp-admin/post-new.php | 1,587 ▲61 | 23.40 ▲0.49 | 651.84 ▲23.45 | 44.62 ▼8.89 |
Media Library /wp-admin/upload.php | 1,476 ▲73 | 4.40 ▲0.19 | 84.90 ▼13.77 | 44.39 ▼0.71 |
Support Forum /wp-admin/admin.php?page=header-footer-custom-html-wp-support-forum | 1,370 | 3.92 | 87.26 | 72.68 |
Contact Us /wp-admin/admin.php?page=header-footer-custom-html-contact | 1,794 | 4.57 | 70.00 | 44.62 |
Global Settings /wp-admin/admin.php?page=header-footer-custom-html | 1,555 | 5.55 | 96.77 | 76.42 |
Header Footer Custom Html /wp-admin/admin.php?page=header-footer-custom-html&page=header-footer-custom-html | 1,549 | 5.41 | 97.41 | 67.91 |
Add New /wp-admin/post-new.php?post_type=enwb_hfch_settings | 3,469 | 11.19 | 238.17 | 105.28 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 1,314 | 3.34 | 39.81 | 25.31 |
Upgrade ➤ /wp-admin/admin.php?page=header-footer-custom-html-pricing | 1,884 | 4.94 | 85.80 | 48.62 |
All HFCH Settings /wp-admin/edit.php?post_type=enwb_hfch_settings | 1,313 | 3.54 | 49.98 | 28.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/header-footer-custom-html/freemius/includes/class-freemius.php+8515
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 9 options
- fs_accounts
- fs_active_plugins
- widget_recent-comments
- widget_theysaidso_widget
- fs_debug_mode
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
- 4× PHP files output text when accessed directly:
- > /wp-content/plugins/header-footer-custom-html/public/partials/header-footer-custom-html-public-display.php
- > /wp-content/plugins/header-footer-custom-html/index.php
- > /wp-content/plugins/header-footer-custom-html/public/index.php
- > /wp-content/plugins/header-footer-custom-html/admin/partials/hfch-main-menu.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Warning
Unterminated comment starting line 2 in wp-content/plugins/header-footer-custom-html/admin/index.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/header-footer-custom-html/admin/partials/header-footer-custom-html-admin-display.php:26
- > PHP Warning
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 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: custom script in header or footer, header footer custom html, custom css script in header, header footer css, header script...
header-footer-custom-html/header-footer-custom-html.php 92% from 13 tests
"Header Footer Custom Html" version 1.0.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 242 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin36,508 lines of code in 162 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 136 | 8,698 | 18,422 | 35,524 |
JavaScript | 6 | 85 | 172 | 443 |
Markdown | 2 | 82 | 0 | 405 |
CSS | 16 | 6 | 10 | 100 |
SVG | 1 | 0 | 1 | 20 |
XML | 1 | 3 | 0 | 16 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 81.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 4.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 59 | |
▷ Abstract classes | 2 | 3.39% |
▷ Concrete classes | 57 | 96.61% |
▷ Final classes | 0 | 0.00% |
Methods | 1,408 | |
▷ Static methods | 209 | 14.84% |
▷ Public methods | 1,004 | 71.31% |
▷ Protected methods | 20 | 1.42% |
▷ Private methods | 384 | 27.27% |
Functions | 105 | |
▷ Named functions | 104 | 99.05% |
▷ Anonymous functions | 1 | 0.95% |
Constants | 150 | |
▷ Global constants | 103 | 68.67% |
▷ Class constants | 47 | 31.33% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
13 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/enweby-logo-old.png | 4.51KB | 2.98KB | ▼ 33.96% |
admin/images/enweby-logo-white.png | 4.23KB | 2.92KB | ▼ 31.14% |
admin/images/hfch-128x128.png | 3.93KB | 2.60KB | ▼ 34.00% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/header-footer-custom-html.png | 9.16KB | 5.26KB | ▼ 42.58% |