Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲4.09MB] [CPU: ▼280.16ms] 75% from 4 tests
A check of server-side resources used by Email Header Footer
The following require your attention
- CPU: Total CPU usage should be kept under 500.00ms (currently 1,812.15ms on /wp-admin/options-general.php?page=ehf_setting)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.78 ▲4.27 | 79.65 ▲26.81 |
Dashboard /wp-admin | 7.80 ▲4.40 | 56.63 ▲18.04 |
Posts /wp-admin/edit.php | 7.80 ▲4.16 | 60.26 ▲13.92 |
Add New Post /wp-admin/post-new.php | 10.49 ▲3.52 | 113.44 ▼1,174.01 |
Media Library /wp-admin/upload.php | 7.80 ▲4.51 | 48.89 ▲21.42 |
Freemius Debug [v.2.2.4] /wp-admin/admin.php?page=freemius | 7.80 | 44.77 |
Email Header Footer /wp-admin/options-general.php?page=ehf_setting | 7.80 | 1,812.15 |
Install recommended Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 7.91 | 47.23 |
Server storage [IO: ▲3.45MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 200 new files
Database: no new tables, 5 new options
New WordPress options |
---|
fs_active_plugins |
fs_debug_mode |
fs_api_cache |
fs_gdpr |
fs_accounts |
Browser metrics Passed 4 tests
An overview of browser requirements for Email Header Footer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,841 ▲87 | 15.98 ▲1.16 | 5.95 ▲0.02 | 2.35 ▼0.11 |
Dashboard /wp-admin | 2,966 ▲112 | 6.16 ▲0.03 | 120.32 ▼17.95 | 237.58 ▼6.11 |
Posts /wp-admin/edit.php | 2,773 ▲79 | 3.25 ▲0.02 | 68.94 ▲4.72 | 177.81 ▲33.09 |
Add New Post /wp-admin/post-new.php | 1,681 ▼29 | 20.29 ▼1.19 | 486.32 ▼1.49 | 146.87 ▼37.76 |
Media Library /wp-admin/upload.php | 1,783 ▲85 | 5.56 ▲0.08 | 152.16 ▼2.27 | 236.57 ▲47.54 |
Freemius Debug [v.2.2.4] /wp-admin/admin.php?page=freemius | 1,477 | 2.74 | 59.63 | 194.40 |
Email Header Footer /wp-admin/options-general.php?page=ehf_setting | 1,271 | 2.50 | 93.29 | 189.07 |
Install recommended Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 1,488 | 2.74 | 56.86 | 195.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 5 options
- fs_gdpr
- fs_active_plugins
- fs_accounts
- fs_debug_mode
- fs_api_cache
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/email-header-footer/freemius/templates/ajax-loader.php
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/email-header-footer/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/email-header-footer/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/email-header-footer/freemius/templates/account/partials/addon.php on line 6
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/email-header-footer/freemius/templates/account/partials/addon.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/email-header-footer/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/email-header-footer/freemius/templates/partials/network-activation.php:6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/email-header-footer/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/email-header-footer/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/email-header-footer/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
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 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: There are too many tags (11 tag instead of maximum 10)
email-header-footer/email-header-footer.php Passed 13 tests
The main file in "Email Header Footer" v. 1.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
110 characters long description:
Email Header Footer is a wordpress plugin that lets you customize email by setting header and footer of email.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin42,966 lines of code in 157 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 106 | 6,782 | 16,257 | 28,234 |
PO File | 10 | 5,550 | 6,667 | 12,010 |
Sass | 28 | 399 | 77 | 2,515 |
JavaScript | 3 | 34 | 59 | 194 |
CSS | 10 | 0 | 0 | 13 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,360)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 71.63 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,360.00 |
Average method complexity | 4.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 83.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 52 | |
▷ Abstract classes | 2 | 3.85% |
▷ Concrete classes | 50 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 1,147 | |
▷ Static methods | 171 | 14.91% |
▷ Public methods | 810 | 70.62% |
▷ Protected methods | 38 | 3.31% |
▷ Private methods | 299 | 26.07% |
Functions | 107 | |
▷ Named functions | 107 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 119 | |
▷ Global constants | 96 | 80.67% |
▷ Class constants | 23 | 19.33% |
▷ Public constants | 23 | 100.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
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/email-header-footer.png | 14.00KB | 5.06KB | ▼ 63.85% |