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
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼10.97ms] Passed 4 tests
This is a short check of server-side resources used by Sticky Menu & Sticky Header
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 40.96 ▲2.45 |
Dashboard /wp-admin | 3.33 ▼0.02 | 47.81 ▼14.35 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 44.49 ▼5.40 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 83.80 ▼15.11 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 30.90 ▼9.01 |
Sticky Menu (or Anything!) /wp-admin/options-general.php?page=stickyanythingmenu | 3.38 | 39.30 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
sticky_anything_options |
Browser metrics Passed 4 tests
Checking browser requirements for Sticky Menu & Sticky Header
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,949 ▲203 | 13.86 ▼0.49 | 9.01 ▲7.41 | 33.14 ▼10.48 |
Dashboard /wp-admin | 2,244 ▲67 | 5.78 ▲0.12 | 100.94 ▼0.66 | 42.59 ▼2.55 |
Posts /wp-admin/edit.php | 2,149 ▲49 | 2.28 ▲0.27 | 43.00 ▲9.48 | 36.91 ▲2.63 |
Add New Post /wp-admin/post-new.php | 1,534 ▼3 | 23.16 ▲4.84 | 670.42 ▲52.00 | 56.72 ▼14.07 |
Media Library /wp-admin/upload.php | 1,449 ▲52 | 4.35 ▲0.19 | 100.65 ▲0.14 | 42.53 ▼2.51 |
Sticky Menu (or Anything!) /wp-admin/options-general.php?page=stickyanythingmenu | 2,086 | 2.69 | 61.45 | 151.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
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
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/sticky-menu-or-anything-on-scroll/sticky-menu-or-anything.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sticky-menu-or-anything-on-scroll/assets/sidebar.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function sticky_wp_kses_wf() in wp-content/plugins/sticky-menu-or-anything-on-scroll/assets/faq.php:1
- > 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 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: header, floating menu, sticky header, menu, sticky menu...
sticky-menu-or-anything-on-scroll/sticky-menu-or-anything.php 85% from 13 tests
The primary PHP file in "Sticky Menu & Sticky Header" version 2.32 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("sticky-menu-or-anything-on-scroll.php" instead of "sticky-menu-or-anything.php")
- Description: Keep the plugin description shorter than 140 characters (currently 178 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin2,197 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 252 | 95 | 1,125 |
CSS | 2 | 98 | 5 | 547 |
JavaScript | 6 | 77 | 86 | 525 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 18 | 90.00% |
▷ Anonymous functions | 2 | 10.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
wf-flyout/icons/wp-reset.png | 3.11KB | 2.28KB | ▼ 26.85% |
wf-flyout/icons/301-logo.png | 6.33KB | 3.09KB | ▼ 51.22% |
assets/img/wp-sticky-pro.png | 10.23KB | 4.54KB | ▼ 55.64% |
wf-flyout/icons/ucp.png | 16.30KB | 2.35KB | ▼ 85.58% |
wf-flyout/icons/wp-ssl.png | 13.01KB | 6.69KB | ▼ 48.56% |