Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.63MB] [CPU: ▲3.28ms] Passed 4 tests
Server-side resources used by My Header Footer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.14 ▲0.68 | 50.55 ▲8.03 |
Dashboard /wp-admin | 3.94 ▲0.63 | 57.72 ▲7.45 |
Posts /wp-admin/edit.php | 3.99 ▲0.63 | 55.08 ▲4.76 |
Add New Post /wp-admin/post-new.php | 6.53 ▲0.65 | 93.32 ▼6.83 |
Media Library /wp-admin/upload.php | 3.86 ▲0.63 | 45.29 ▲7.75 |
Templates /wp-admin/edit.php?post_type=vd_posts | 3.95 | 53.10 |
Build a Theme /wp-admin/admin.php?page=visual-designer-tb | 3.89 | 44.69 |
MHF Setup Wizard /wp-admin/admin.php?page=visual-designer-mhf-setup | 4.00 | 48.66 |
MHF Settings /wp-admin/admin.php?page=visual-designer-mhf | 3.88 | 46.34 |
Server storage [IO: ▲4.00MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 91 new files
Database: no new tables, 15 new options
New WordPress options |
---|
vd_tmpl_header |
theysaidso_admin_options |
can_compress_scripts |
VD_CACHE_TIME |
VD_NOTIF_MHF_REMINDER |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
VD_MHF_RUNS |
VD_MHF_NAG_2_DISMISS_TIME |
... |
Browser metrics Passed 4 tests
My Header Footer: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,353 ▲618 | 15.67 ▲1.67 | 45.88 ▲44.11 | 47.46 ▼2.95 |
Dashboard /wp-admin | 2,296 ▲108 | 5.89 ▲1.00 | 100.07 ▼13.84 | 83.93 ▲41.35 |
Posts /wp-admin/edit.php | 2,137 ▲48 | 2.01 ▼0.00 | 33.72 ▼3.63 | 34.22 ▲0.30 |
Add New Post /wp-admin/post-new.php | 1,571 ▲37 | 18.36 ▼4.82 | 661.21 ▲31.79 | 61.57 ▼8.42 |
Media Library /wp-admin/upload.php | 1,430 ▲42 | 4.23 ▼0.01 | 98.70 ▼7.76 | 89.91 ▲43.05 |
Templates /wp-admin/edit.php?post_type=vd_posts | 1,811 | 2.01 | 36.10 | 32.58 |
Build a Theme /wp-admin/admin.php?page=visual-designer-tb | 1,382 | 3.00 | 48.85 | 99.66 |
MHF Setup Wizard /wp-admin/admin.php?page=visual-designer-mhf-setup | 3,519 | 11.04 | 317.27 | 141.84 |
MHF Settings /wp-admin/admin.php?page=visual-designer-mhf | 1,235 | 3.18 | 45.21 | 95.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 15 options in the database
- db_upgraded
- vd_tmpl_footer
- VD_MHF_RUNS
- VD_CACHE_TIME
- VD_MHF_ACTIVATE_TIME
- vd_tmpl_header
- widget_theysaidso_widget
- VD_MHF_NAG_2_DISMISS_TIME
- VD_MHF_NAG_1_DISMISS_TIME
- theysaidso_admin_options
- ...
Smoke tests 25% 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
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=visual-designer-mhf-setup
- > Notice in wp-content/plugins/vd-my-header-footer/lib/vd_editor.php+779
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/vd-my-header-footer/includes/partials/vd-mhf-pro-page.php
- 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function path_join() in wp-content/plugins/vd-my-header-footer/includes/partials/vd-theme-features-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_query_arg() in wp-content/plugins/vd-my-header-footer/includes/partials/vd-notification.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_query_arg() in wp-content/plugins/vd-my-header-footer/includes/partials/vd-notif-support.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function path_join() in wp-content/plugins/vd-my-header-footer/includes/partials/vd-setup-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/vd-my-header-footer/includes/partials/mhf-header.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_query_arg() in wp-content/plugins/vd-my-header-footer/includes/partials/vd-notif-2.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vd-my-header-footer/includes/addon.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function path_join() in wp-content/plugins/vd-my-header-footer/includes/partials/vd-settings-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function path_join() in wp-content/plugins/vd-my-header-footer/lib/vd_editor_admin.php:27
- > PHP Warning
Use of undefined constant VD_ENVIRONMENT - assumed 'VD_ENVIRONMENT' (this will throw an Error in a future version of PHP) in wp-content/plugins/vd-my-header-footer/lib/vd_editor.php on line 24
- > PHP Fatal error
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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Tags: You are using too many tags: 11 tag instead of maximum 10
vd-my-header-footer/vd_my_header_footer.php 85% from 13 tests
This is the main PHP file of "My Header Footer" version 1.27, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
- Main file name: It is recommended to name the main PHP file as the plugin slug ("vd-my-header-footer.php" instead of "vd_my_header_footer.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected57,264 lines of code in 73 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 19 | 6,168 | 4,152 | 26,984 |
CSS | 9 | 46 | 2,540 | 20,628 |
HTML | 15 | 1 | 26 | 5,080 |
PHP | 22 | 782 | 701 | 4,451 |
SVG | 8 | 0 | 3 | 121 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 50.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 154.00 |
Average method complexity | 3.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 137 | |
▷ Static methods | 121 | 88.32% |
▷ Public methods | 123 | 89.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 10.22% |
Functions | 7 | |
▷ Named functions | 3 | 42.86% |
▷ Anonymous functions | 4 | 57.14% |
Constants | 76 | |
▷ Global constants | 28 | 36.84% |
▷ Class constants | 48 | 63.16% |
▷ Public constants | 48 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.17MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/img/logo.png | 29.87KB | 9.35KB | ▼ 68.70% |
lib/img/logo.png | 39.81KB | 21.37KB | ▼ 46.33% |
lib/img/logo_inverted.png | 42.09KB | 21.44KB | ▼ 49.07% |
lib/img/tb-icon.png | 3.78KB | 3.61KB | ▼ 4.49% |
includes/img/mhf-logo.PNG | 50.25KB | 16.96KB | ▼ 66.25% |