Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/simple-header-footer-scripts/simple-header-footer-scripts.php+46
Use of undefined constant shf_uninstall_plugin - assumed 'shf_uninstall_plugin' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.94MB] [CPU: ▼54.64ms] Passed 4 tests
An overview of server-side resources used by Simple Header Footer Scripts
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.41 | 4.06 ▼36.90 |
Dashboard /wp-admin | 2.07 ▼1.23 | 5.68 ▼43.92 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 5.81 ▼45.87 |
Add New Post /wp-admin/post-new.php | 2.07 ▼3.82 | 5.82 ▼91.86 |
Media Library /wp-admin/upload.php | 2.07 ▼1.16 | 5.87 ▼29.74 |
Simple Header Footer Scripts /wp-admin/options-general.php?page=simple-header-footer-scripts | 2.08 | 5.16 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Header Footer Scripts
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲69 | 13.22 ▼1.16 | 1.61 ▼0.46 | 40.10 ▼4.24 |
Dashboard /wp-admin | 2,232 ▲44 | 4.88 ▼0.06 | 104.11 ▼8.61 | 42.28 ▼4.96 |
Posts /wp-admin/edit.php | 2,115 ▲26 | 2.04 ▲0.02 | 41.28 ▲0.83 | 37.78 ▲2.75 |
Add New Post /wp-admin/post-new.php | 1,551 ▲18 | 23.45 ▲0.34 | 658.57 ▼56.25 | 56.35 ▼0.68 |
Media Library /wp-admin/upload.php | 1,414 ▲26 | 4.28 ▲0.07 | 101.07 ▼8.07 | 42.59 ▼0.72 |
Simple Header Footer Scripts /wp-admin/options-general.php?page=simple-header-footer-scripts | 1,155 | 3.80 | 84.82 | 42.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/simple-header-footer-scripts/simple-header-footer-scripts.php+46
Use of undefined constant shf_uninstall_plugin - assumed 'shf_uninstall_plugin' (this will throw an Error in a future version of PHP)
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=simple-header-footer-scripts
- > Warning in wp-content/plugins/simple-header-footer-scripts/simple-header-footer-scripts.php+46
Use of undefined constant shf_uninstall_plugin - assumed 'shf_uninstall_plugin' (this will throw an Error in a future version of PHP)
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-header-footer-scripts/admin/class-shf-settings.php:57
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-header-footer-scripts/admin/class-shf-admin.php:88
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 22 tag instead of maximum 10
- Screenshots: Please add an image for screenshot #1 (Admin view of Simple Header Footer Scripts plugin.)
simple-header-footer-scripts/simple-header-footer-scripts.php Passed 13 tests
The main file in "Simple Header Footer Scripts" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
62 characters long description:
Insert header footer scripts in your WordPress website easily.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected547 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 152 | 278 | 393 |
CSS | 2 | 13 | 1 | 81 |
JavaScript | 4 | 28 | 5 | 70 |
Markdown | 1 | 1 | 0 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 3.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 5 | 17.24% |
▷ Public methods | 29 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin