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
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.20ms] Passed 4 tests
Server-side resources used by Header and Footer Scripts Adder
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.97 ▼5.46 |
Dashboard /wp-admin | 3.36 ▲0.06 | 47.79 ▼5.86 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 51.95 ▼1.38 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 91.02 ▼4.09 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 38.29 ▲1.82 |
Header Footer Script Adder /wp-admin/options-general.php?page=header_footer_script_adder_mk | 3.25 | 36.12 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Header and Footer Scripts Adder
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.23 ▼0.32 | 1.74 ▼0.08 | 39.21 ▼4.92 |
Dashboard /wp-admin | 2,202 ▲25 | 5.61 ▲0.00 | 91.08 ▲1.25 | 41.46 ▲2.36 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.95 ▼0.01 | 40.96 ▲2.69 | 36.76 ▲3.47 |
Add New Post /wp-admin/post-new.php | 6,239 ▲4,711 | 26.06 ▲3.15 | 921.66 ▲314.48 | 60.94 ▲12.01 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.23 ▲0.08 | 108.30 ▲2.42 | 49.78 ▲7.19 |
Header Footer Script Adder /wp-admin/options-general.php?page=header_footer_script_adder_mk | 1,132 | 2.47 | 43.62 | 44.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/header-and-footer-script-adder/header_footer_script_adder.php:293
- > 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 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: scripts, footer scripts, footer, header scripts, admin...
header-and-footer-script-adder/header_footer_script_adder.php 92% from 13 tests
The principal PHP file in "Header and Footer Scripts Adder" v. 1.2.1 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("header-and-footer-script-adder.php" instead of "header_footer_script_adder.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected11,670 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 1,230 | 1,227 | 11,128 |
CSS | 2 | 45 | 24 | 312 |
PHP | 1 | 81 | 59 | 230 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin