Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.94ms] Passed 4 tests
Server-side resources used by WP Add Header Scripts
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.42 ▼0.04 | 28.43 ▼14.07 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.39 ▼3.16 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 48.58 ▼1.01 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 85.51 ▼16.31 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 34.78 ▼2.22 |
WP Add Header Scripts /wp-admin/options-general.php?page=wp-add-header-scripts/wp-add-header-scripts.php | 3.28 | 32.08 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for WP Add Header Scripts
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,484 ▼251 | 14.45 ▼0.33 | 0.76 ▼1.11 | 15.16 ▼36.99 |
Dashboard /wp-admin | 2,217 ▲26 | 5.80 ▼0.11 | 93.61 ▼7.96 | 37.65 ▼2.31 |
Posts /wp-admin/edit.php | 2,097 ▲5 | 2.04 ▲0.06 | 41.94 ▲1.84 | 34.42 ▼1.34 |
Add New Post /wp-admin/post-new.php | 1,530 ▲1 | 18.39 ▼0.25 | 590.62 ▼15.43 | 64.15 ▲3.93 |
Media Library /wp-admin/upload.php | 1,393 ▲2 | 4.30 ▲0.10 | 96.47 ▲1.30 | 45.38 ▲3.47 |
WP Add Header Scripts /wp-admin/options-general.php?page=wp-add-header-scripts/wp-add-header-scripts.php | 867 | 1.71 | 25.17 | 24.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- 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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-add-header-scripts/wp-add-header-scripts.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: order, head, random, multiple, script
wp-add-header-scripts/wp-add-header-scripts.php Passed 13 tests
"WP Add Header Scripts" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
86 characters long description:
WP Add Header Scripts will insert a script that was set between HEAD tag and HEAD tag.
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
Everything looks great! No dangerous files found in this plugin332 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 58 | 107 | 242 |
PO File | 1 | 15 | 9 | 50 |
JavaScript | 1 | 7 | 2 | 31 |
CSS | 1 | 4 | 0 | 9 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin