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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼6.86ms] Passed 4 tests
A check of server-side resources used by WP Sticky Header
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 42.47 ▼3.90 |
Dashboard /wp-admin | 3.37 ▲0.06 | 50.44 ▼2.35 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 50.26 ▼5.67 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 87.27 ▼15.50 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.91 ▼1.96 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 15 new options
New WordPress options |
---|
widget_recent-comments |
wpsh_closable |
wpsh_close_icon_color |
theysaidso_admin_options |
widget_theysaidso_widget |
wpsh_where |
wpsh_text_color |
can_compress_scripts |
wpsh_enable |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
WP Sticky Header: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,941 ▲155 | 13.56 ▼0.71 | 7.19 ▲5.21 | 58.38 ▲13.11 |
Dashboard /wp-admin | 2,234 ▲57 | 5.78 ▲0.24 | 86.52 ▼9.34 | 89.89 ▲45.43 |
Posts /wp-admin/edit.php | 2,144 ▲44 | 2.28 ▲0.24 | 44.11 ▲7.88 | 36.39 ▲1.63 |
Add New Post /wp-admin/post-new.php | 1,557 ▲29 | 23.04 ▼0.13 | 805.07 ▲132.69 | 37.66 ▼11.23 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.35 ▲0.16 | 102.44 ▼2.33 | 77.17 ▲30.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- wpsh_close_icon_color
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-sticky-header/wp-sticky-header.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: notification, content, sticky, top, header...
wp-sticky-header/wp-sticky-header.php Passed 13 tests
"WP Sticky Header" version 1.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
66 characters long description:
Plugin to display some content/notification on top of the webpage.
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
Good job! No executable or dangerous file extensions detected276 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 39 | 15 | 239 |
JavaScript | 4 | 4 | 0 | 37 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 1.68KB | 0.86KB | ▼ 48.92% |
images/help2.png | 15.12KB | 6.97KB | ▼ 53.92% |
images/help1.png | 39.24KB | 16.03KB | ▼ 59.14% |