Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼1.13ms] Passed 4 tests
A check of server-side resources used by External Header Footer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 40.65 ▼0.96 |
Dashboard /wp-admin | 3.37 ▲0.06 | 51.00 ▼4.18 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 49.38 ▲1.69 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 92.33 ▼1.07 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.28 ▲3.04 |
External Header Footer /wp-admin/options-general.php?page=external_header_footer_settings | 3.25 | 41.85 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for External Header Footer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.10 ▼0.50 | 1.91 ▼0.28 | 45.87 ▲3.12 |
Dashboard /wp-admin | 2,199 ▲25 | 5.58 ▼0.02 | 93.39 ▼3.23 | 43.12 ▼1.27 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▼0.04 | 37.35 ▲1.12 | 39.53 ▲3.33 |
Add New Post /wp-admin/post-new.php | 1,544 ▲18 | 23.03 ▼0.06 | 662.36 ▲4.71 | 67.81 ▲9.00 |
Media Library /wp-admin/upload.php | 1,395 ▼5 | 4.19 ▼0.05 | 95.39 ▼13.42 | 44.32 ▼4.49 |
External Header Footer /wp-admin/options-general.php?page=external_header_footer_settings | 1,093 | 2.15 | 25.17 | 33.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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 fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/external-header-footer/test-page.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/external-header-footer/external-header-footer.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (The settings page for External Header Footer allows you to enable/disable whether or not your WordPress website's header and footer will be available for external consumption (**Expose Header and Footer**). If that option is checked, the **Header URL** and **Footer URL** fields display the URLs that should be retrieved by external websites when using your site's header and footer.), #2 (This displays what's found at the **Demo Page URL**; namely, some placeholder text wrapped by your site's header and footer.)
- Tags: No valid plugin tags found
external-header-footer/external-header-footer.php 92% from 13 tests
"External Header Footer" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 159 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected359 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 68 | 114 | 359 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.16MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/screenshot-2.png | 41.05KB | 20.38KB | ▼ 50.34% |
images/screenshot-1.png | 127.42KB | 57.25KB | ▼ 55.07% |