Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼7.20ms] Passed 4 tests
Server-side resources used by SOGO Add Script to Individual Pages Header Footer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 42.87 ▲0.71 |
Dashboard /wp-admin | 3.41 ▲0.11 | 59.93 ▲4.29 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 48.39 ▼3.58 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 88.27 ▼29.14 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 42.88 ▲3.20 |
Header Footer Settings /wp-admin/options-general.php?page=oh-header-footer-settings | 3.28 | 32.77 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by SOGO Add Script to Individual Pages Header Footer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.25 ▼0.12 | 1.81 ▲0.13 | 43.44 ▲2.01 |
Dashboard /wp-admin | 2,199 ▲18 | 5.58 ▼0.14 | 92.12 ▼13.99 | 43.11 ▲3.73 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.94 ▼0.04 | 34.42 ▼5.02 | 32.38 ▼0.79 |
Add New Post /wp-admin/post-new.php | 6,361 ▲4,835 | 25.87 ▲2.76 | 914.77 ▲261.15 | 88.35 ▲29.91 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.08 ▼0.10 | 110.29 ▲7.31 | 47.02 ▲4.30 |
Header Footer Settings /wp-admin/options-general.php?page=oh-header-footer-settings | 913 | 2.01 | 28.66 | 29.25 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- 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 shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=oh-header-footer-settings
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=oh-header-footer-settings
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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 fix the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/oh-add-script-header-footer/metaboxes/oh-header-footer-metabox.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/oh-add-script-header-footer/oh-settings-page.php:321
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/oh-add-script-header-footer/oh-terms-settings.php:108
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/oh-add-script-header-footer/oh-add-script-header-footer.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration Passed 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
5 plugin tags: header, re-marketing code, footer, js, javascript
oh-add-script-header-footer/oh-add-script-header-footer.php Passed 13 tests
This is the main PHP file of "SOGO Add Script to Individual Pages Header Footer" version 3.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
85 characters long description:
create a simple way to add js code to individual page post or custom post type header
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
No dangerous file extensions were detected493 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 162 | 90 | 493 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 94.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.88% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected