Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼140.59ms] Passed 4 tests
A check of server-side resources used by Advanced Sticky Header
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.02 | 26.45 ▲2.69 |
Dashboard /wp-admin | 3.09 ▲0.02 | 38.06 ▲2.55 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 31.54 ▲1.14 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.01 | 70.18 ▼566.51 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 23.92 ▲0.48 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 3 new options
New WordPress options |
---|
ash_wp_header_animation_type |
ash_wp_header_animate |
ash_wp_header_full_width |
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Sticky Header
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,853 ▲252 | 16.07 ▲0.13 | 8.53 ▲3.44 | 77.75 ▲5.32 |
Dashboard /wp-admin | 2,952 ▲56 | 6.04 ▼0.11 | 117.65 ▼8.91 | 165.91 ▼5.98 |
Posts /wp-admin/edit.php | 2,763 ▲23 | 3.24 ▲0.01 | 62.02 ▼3.64 | 138.82 ▼12.26 |
Add New Post /wp-admin/post-new.php | 3,828 ▲85 | 19.44 ▲0.45 | 449.10 ▲27.03 | 159.34 ▼7.36 |
Media Library /wp-admin/upload.php | 1,771 ▲22 | 5.49 ▼0.01 | 146.24 ▼8.07 | 184.25 ▼3.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix 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 register_activation_hook() in wp-content/plugins/advanced-sticky-header/advanced-sticky-header.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
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
Attributes that need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== advanced-sticky-header ===
)
advanced-sticky-header/advanced-sticky-header.php Passed 13 tests
"Advanced Sticky Header" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
40 characters long description:
Highly configurable sticky header plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin322 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 26 | 10 | 156 |
PHP | 2 | 50 | 15 | 133 |
CSS | 1 | 4 | 0 | 33 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
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 | 7 | |
▷ Named functions | 7 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin