Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼8.57ms] Passed 4 tests
This is a short check of server-side resources used by Header and Footer Scripts
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 40.74 ▼11.06 |
Dashboard /wp-admin | 3.37 ▲0.06 | 51.53 ▼2.08 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 47.99 ▼6.46 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 83.24 ▼14.66 |
Media Library /wp-admin/upload.php | 3.30 ▲0.06 | 38.13 ▲6.59 |
Header and Footer Scripts /wp-admin/options-general.php?page=header-and-footer-scripts/shfs.php | 3.28 | 35.47 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Header and Footer Scripts
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.40 ▼0.16 | 1.80 ▼0.08 | 46.06 ▲3.04 |
Dashboard /wp-admin | 2,196 ▲19 | 5.63 ▼0.11 | 96.27 ▲10.80 | 42.10 ▼2.25 |
Posts /wp-admin/edit.php | 2,101 ▲22 | 2.00 ▼0.02 | 36.69 ▲0.28 | 33.61 ▼3.52 |
Add New Post /wp-admin/post-new.php | 6,233 ▲4,688 | 18.80 ▼4.47 | 886.08 ▲234.27 | 59.88 ▲13.33 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.23 ▼0.10 | 100.28 ▼2.31 | 42.39 ▼3.29 |
Header and Footer Scripts /wp-admin/options-general.php?page=header-and-footer-scripts/shfs.php | 933 | 2.01 | 22.13 | 29.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/header-and-footer-scripts/shfs.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/header-and-footer-scripts/inc/sidebar.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/header-and-footer-scripts/inc/options.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/header-and-footer-scripts/inc/meta.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (Access this page from `Dashboard --> Settings --> Header and Footer Scripts`), #2 (This box will appear below the compose box on posts and pages. If not please refer to [our docs][4] if it's not there.)
header-and-footer-scripts/shfs.php 77% from 13 tests
This is the main PHP file of "Header and Footer Scripts" version 2.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 150 characters long)
- Domain Path: The domain path points to an invalid folder, "/lang" does not exist
- Main file name: The principal plugin file should be the same as the plugin slug ("header-and-footer-scripts.php" instead of "shfs.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected172 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 68 | 60 | 172 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin