Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.68MB] [CPU: ▼40.09ms] Passed 4 tests
An overview of server-side resources used by Buooy Sticky Header
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.35 ▲1.16 |
Dashboard /wp-admin | 3.26 ▼0.04 | 15.31 ▼31.90 |
Posts /wp-admin/edit.php | 3.26 ▼0.10 | 17.93 ▼27.81 |
Add New Post /wp-admin/post-new.php | 3.26 ▼2.63 | 15.20 ▼84.96 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 18.53 ▼15.67 |
Sticky Header /wp-admin/options-general.php?page=buooy-sticky-header | 3.26 | 20.57 |
Server storage [IO: ▲6.68MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Please fix the following
- Illegal file modification detected: 1 file (0.00KB) outside of "wp-content/plugins/buooy-sticky-header/" and "wp-content/uploads/"
- (new file) wp-content/redux/.empty
Filesystem: 425 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
redux-framework-tracking |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
sticky_header |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Buooy Sticky Header
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲188 | 14.43 ▲0.05 | 43.82 ▲42.03 | 41.65 ▼21.92 |
Dashboard /wp-admin | 2,210 ▲22 | 5.86 ▲0.97 | 102.18 ▲1.20 | 40.22 ▼4.51 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.04 | 36.77 ▼5.21 | 33.07 ▼6.18 |
Add New Post /wp-admin/post-new.php | 1,526 ▲6 | 23.27 ▲0.02 | 679.68 ▲1.46 | 57.43 ▲0.03 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.22 ▲0.06 | 108.58 ▲8.08 | 47.53 ▲0.64 |
Sticky Header /wp-admin/options-general.php?page=buooy-sticky-header | 1,499 | 4.05 | 73.88 | 41.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5453
Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
- Zombie WordPress options detected upon uninstall: 8 options
- sticky_header
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- redux-framework-tracking
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=buooy-sticky-header
- > User deprecated in wp-includes/functions.php+5453
Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=buooy-sticky-header
- > Warning in wp-content/plugins/buooy-sticky-header/admin/includes/admin-folder/admin/redux-framework/ReduxCore/extensions/customizer/extension_customizer.php+368
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
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
Almost there! Just fix the following items
- 17× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/buooy-sticky-header/admin/includes/admin-folder/admin/options-sections.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buooy-sticky-header/admin/includes/admin-folder/admin/redux-extensions/loader.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action_ref_array() in wp-content/plugins/buooy-sticky-header/admin/includes/admin-folder/admin/tgm/class-tgm-plugin-activation.php:174
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buooy-sticky-header/admin/includes/admin-folder/admin/redux-extensions/loader.php:27
- > PHP Warning
require(wp-content/plugins/buooy-sticky-header/admin/bootstrap.php): failed to open stream: No such file or directory in wp-content/plugins/buooy-sticky-header/admin/includes/admin-folder/admin/redux-framework/bootstrap_tests.php on line 27
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/buooy-sticky-header/admin/includes/admin-folder/admin/redux-framework/ReduxCore/extensions/customizer/extension_customizer.php on line 368
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/buooy-sticky-header/admin/includes/admin-folder/admin/redux-framework/ReduxCore/extensions/customizer/extension_customizer.php on line 349
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buooy-sticky-header/admin/includes/admin-folder/admin/redux-extensions/loader.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buooy-sticky-header/admin/includes/admin-folder/admin/redux-extensions/loader.php:27
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/buooy-sticky-header/admin/includes/admin-folder/admin/redux-framework/ReduxCore/extensions/customizer/extension_customizer.php on line 337
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (Sticky Header smartly hides when you are at the top of your page), #2 (Set a specific pixel distance where Sticky Header will appear), #3 (Easily share and get more attention to your website/blog/news), #4 (Easy to use inituitive dashboard)
buooy-sticky-header/buooy-sticky-header.php Passed 13 tests
The primary PHP file in "Buooy Sticky Header" version 0.5.2 is used by WordPress to initiate all plugin functionality
95 characters long description:
This plugin provides you with an sticky header that contains your post title and share buttons!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin40,131 lines of code in 347 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 88 | 3,495 | 7,101 | 13,161 |
JavaScript | 147 | 2,528 | 2,221 | 11,428 |
JSON | 5 | 0 | 0 | 5,026 |
CSS | 42 | 383 | 219 | 4,606 |
LESS | 30 | 298 | 120 | 3,419 |
Sass | 25 | 3 | 0 | 1,140 |
Markdown | 6 | 253 | 0 | 837 |
SVG | 1 | 0 | 0 | 309 |
XML | 1 | 1 | 0 | 90 |
HTML | 1 | 8 | 0 | 60 |
Bourne Shell | 1 | 24 | 0 | 55 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 34.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 762.00 |
Average method complexity | 6.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 95.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 76 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 76 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 458 | |
▷ Static methods | 42 | 9.17% |
▷ Public methods | 427 | 93.23% |
▷ Protected methods | 6 | 1.31% |
▷ Private methods | 25 | 5.46% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
49 PNG files occupy 0.96MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/includes/admin-folder/admin/redux-framework/ReduxCore/assets/css/vendor/jquery-ui-bootstrap/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
admin/includes/admin-folder/admin/redux-framework/ReduxCore/assets/css/vendor/jquery-ui-bootstrap/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
admin/includes/admin-folder/admin/redux-framework/ReduxCore/assets/img/toggle_tabs.png | 0.35KB | 0.35KB | 0.00% |
admin/includes/admin-folder/admin/redux-framework/ReduxCore/assets/css/vendor/jquery-ui-bootstrap/images/ui-icons_ffffff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
admin/includes/admin-folder/admin/redux-framework/ReduxCore/assets/img/1col.png | 2.83KB | 0.14KB | ▼ 95.13% |