Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.72ms] Passed 4 tests
This is a short check of server-side resources used by Awesome Sticky Header by DevCanyon
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 42.95 ▼0.39 |
Dashboard /wp-admin | 3.37 ▲0.03 | 53.71 ▼12.73 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 54.66 ▲2.02 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 89.81 ▼3.78 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 40.74 ▲4.70 |
Awesome Header /wp-admin/themes.php?page=awesome-header | 3.30 | 39.17 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Awesome Sticky Header by DevCanyon: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,035 ▲289 | 13.63 ▼0.74 | 10.98 ▲9.18 | 43.32 ▼1.76 |
Dashboard /wp-admin | 2,210 ▲22 | 5.02 ▲0.14 | 116.48 ▼1.51 | 41.54 ▼2.07 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.05 | 36.95 ▼2.28 | 33.43 ▼2.32 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.20 ▲4.75 | 661.71 ▲9.36 | 64.72 ▲10.98 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.13 ▼0.23 | 110.63 ▲4.39 | 46.75 ▲3.32 |
Awesome Header /wp-admin/themes.php?page=awesome-header | 1,714 | 3.62 | 51.23 | 54.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/awesome-sticky-header/lib/css-live.php on line 92
- > PHP Fatal error
Uncaught Error: Class name must be a valid object or a string in wp-content/plugins/awesome-sticky-header/lib/css-util.php:96
- > PHP Notice
Trying to get property 'settings' of non-object in wp-content/plugins/awesome-sticky-header/lib/css-live.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/awesome-sticky-header/lib/css-live.php on line 19
- > PHP Notice
Trying to get property 'customizer' of non-object in wp-content/plugins/awesome-sticky-header/lib/css-live.php on line 4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/awesome-sticky-header/lib/css-live.php on line 42
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/awesome-sticky-header/lib/css-live.php on line 34
- > PHP Notice
Trying to get property 'customizer' of non-object in wp-content/plugins/awesome-sticky-header/lib/css-util.php on line 4
- > PHP Fatal error
Uncaught Error: Class name must be a valid object or a string in wp-content/plugins/awesome-sticky-header/lib/css-live.php:118
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/awesome-sticky-header/lib/utils.php:89
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/themes.php?page=awesome-header
- > Network (severe)
asmh/styles/preview?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/themes.php?page=awesome-header
- > Network (severe)
https://s3-us-west-1.amazonaws.com/awesomeheader/banner-image-11.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: sticky menu, fixed header, header admin control, header options, sticky header...
awesome-sticky-header/awesomeheader.php 85% from 13 tests
Analyzing the main PHP file in "Awesome Sticky Header by DevCanyon" version 1.0.4
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("awesome-sticky-header.php" instead of "awesomeheader.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected4,902 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 681 | 81 | 3,414 |
JavaScript | 4 | 309 | 43 | 1,366 |
CSS | 5 | 12 | 24 | 76 |
JSON | 1 | 0 | 0 | 24 |
SVG | 2 | 1 | 0 | 22 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 20.80 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 2.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 87 | |
▷ Static methods | 14 | 16.09% |
▷ Public methods | 82 | 94.25% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 5.75% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
16 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/jquery-ui/images/ui-bg_glass_35_dddddd_1x400.png | 0.26KB | 0.13KB | ▼ 49.24% |
assets/css/jquery-ui/images/ui-bg_flat_55_eeeeee_40x100.png | 0.21KB | 0.08KB | ▼ 60.45% |
assets/css/jquery-ui/images/ui-icons_999999_256x240.png | 6.82KB | 4.17KB | ▼ 38.81% |
assets/css/jquery-ui/images/ui-bg_inset-soft_50_c9c9c9_1x100.png | 0.27KB | 0.16KB | ▼ 40.93% |
assets/css/jquery-ui/images/ui-bg_glass_100_f8f8f8_1x400.png | 0.26KB | 0.11KB | ▼ 55.34% |