Benchmarks
Plugin footprint 83% 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 gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼5.02ms] Passed 4 tests
An overview of server-side resources used by Sticky Header On Scroll
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 44.05 ▲7.34 |
Dashboard /wp-admin | 3.37 ▲0.06 | 50.17 ▲3.40 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 44.91 ▼4.59 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 85.84 ▼17.24 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.05 ▼1.63 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 25 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_sticky_header_on_scroll |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Sticky Header On Scroll: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,940 ▲183 | 13.66 ▼0.60 | 7.07 ▲4.94 | 41.58 ▼1.55 |
Dashboard /wp-admin | 2,225 ▲39 | 4.85 ▼0.15 | 112.19 ▼14.10 | 45.18 ▼0.21 |
Posts /wp-admin/edit.php | 2,111 ▲19 | 2.02 ▲0.06 | 34.83 ▼4.06 | 33.23 ▼4.15 |
Add New Post /wp-admin/post-new.php | 1,532 ▼1 | 22.81 ▼0.30 | 660.04 ▼35.28 | 54.04 ▼5.09 |
Media Library /wp-admin/upload.php | 1,410 ▲22 | 4.21 ▼0.05 | 94.16 ▼12.12 | 41.01 ▼2.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/sticky-header-on-scroll/public/partials/sticky-header-on-scroll-public-display.php
- > /wp-content/plugins/sticky-header-on-scroll/public/partials/scroll-to-top.php
- > /wp-content/plugins/sticky-header-on-scroll/admin/partials/sticky-header-on-scroll-admin-display.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/sticky-header-on-scroll/admin/partials/insert-sticky-id.php:5
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/sticky-header-on-scroll/admin/partials/insert-sticky-id.php on line 3
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Screenshot-1.PNG), #2 (Screenshot-2.PNG), #3 (Screenshot-3.PNG)
sticky-header-on-scroll/sticky-header-on-scroll.php Passed 13 tests
This is the main PHP file of "Sticky Header On Scroll" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin423 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 173 | 556 | 299 |
CSS | 3 | 19 | 14 | 78 |
JavaScript | 2 | 43 | 60 | 46 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
Average class complexity | 1.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin