56% mystickymenu

Code Review | Floating Notification Bar, Sticky Menu on Scroll, Announcement Banner, and Sticky Header for Any Theme - My Sticky Bar (formerly myStickymenu)

WordPress plugin Floating Notification Bar, Sticky Menu on Scroll, Announcement Banner, and Sticky Header for Any Theme - My Sticky Bar (formerly myStickymenu) scored56%from 54 tests.

About plugin

  • Plugin page: mystickymenu
  • Plugin version: 2.6.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-6.3
  • WordPress version: 6.3.1
  • First release: Mar 6, 2014
  • Latest release: Oct 20, 2023
  • Number of updates: 338
  • Update frequency: every 10.4 days
  • Top authors: galdub (52.07%)damiroquai (41.12%)premiocommit (7.4%)

Code review

54 tests

User reviews

1066 reviews

Install metrics

100,000+ active /2,428,025 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.72MB] [CPU: ▼4.56ms] 75% from 4 tests

This is a short check of server-side resources used by Floating Notification Bar, Sticky Menu on Scroll, Announcement Banner, and Sticky Header for Any Theme - My Sticky Bar (formerly myStickymenu)
It is recommended to improve the following
  • CPU: Total CPU usage should be kept under 500.00ms (currently 2,052.06ms on /wp-admin/admin.php?page=msm-recommended-plugins)
PageMemory (MB)CPU Time (ms)
Home /4.15 ▲0.6942.66 ▲2.98
Dashboard /wp-admin4.06 ▲0.7149.41 ▼10.91
Posts /wp-admin/edit.php4.17 ▲0.8152.43 ▲7.41
Add New Post /wp-admin/post-new.php6.64 ▲0.7586.33 ▼17.06
Media Library /wp-admin/upload.php3.98 ▲0.7541.49 ▲6.77
Sticky menu settings /wp-admin/admin.php?page=my-stickymenu-settings3.9635.90
+ Create New Bar /wp-admin/admin.php?page=my-stickymenu-new-welcomebar3.9338.40
Upgrade to Pro ⭐️ /wp-admin/admin.php?page=my-stickymenu-upgrade4.1940.35
Recommended Plugins /wp-admin/admin.php?page=msm-recommended-plugins4.382,052.06
Contact Form Leads /wp-admin/admin.php?page=my-sticky-menu-leads3.9639.37
Dashboard /wp-admin/admin.php?page=my-stickymenu-welcomebar3.9635.47

Server storage [IO: ▲3.11MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 104 new files
Database: 1 new table, 15 new options
New tables
wp_mystickymenu_contact_lists
New WordPress options
has_sticky_header_old_version
mysticky_option_name
update_mysticky_version_2_5_7
theysaidso_admin_options
mystickymenu_update_message
can_compress_scripts
widget_recent-comments
sticky_header_status
update_mysticky_version_2_6
my-sticky-menu_show_upgrade_box_after
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Floating Notification Bar, Sticky Menu on Scroll, Announcement Banner, and Sticky Header for Any Theme - My Sticky Bar (formerly myStickymenu)
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,057 ▲29613.84 ▼0.4110.88 ▲9.2640.45 ▼0.20
Dashboard /wp-admin2,241 ▲665.55 ▼0.1381.45 ▼17.8840.39 ▼0.88
Posts /wp-admin/edit.php2,146 ▲461.96 ▲0.0235.61 ▲0.6138.10 ▲3.87
Add New Post /wp-admin/post-new.php1,563 ▲3723.52 ▲0.51674.66 ▲23.2063.08 ▲6.48
Media Library /wp-admin/upload.php1,440 ▲434.21 ▲0.0298.41 ▲2.5746.24 ▼0.52
Sticky menu settings /wp-admin/admin.php?page=my-stickymenu-settings1,6352.2635.6579.59
+ Create New Bar /wp-admin/admin.php?page=my-stickymenu-new-welcomebar7,8953.0178.60186.91
Upgrade to Pro ⭐️ /wp-admin/admin.php?page=my-stickymenu-upgrade4,6423.1960.55106.79
Recommended Plugins /wp-admin/admin.php?page=msm-recommended-plugins1,2342.3532.1140.92
Contact Form Leads /wp-admin/admin.php?page=my-sticky-menu-leads1,0262.2530.2034.27
Dashboard /wp-admin/admin.php?page=my-stickymenu-welcomebar1,6292.2031.7553.16

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie tables were found after uninstall: 1 table
    • wp_mystickymenu_contact_lists
  • Zombie WordPress options detected upon uninstall: 15 options
    • has_sticky_header_old_version
    • mystickymenu_update_message
    • update_mysticky_version_2_5_7
    • my-sticky-menu_show_upgrade_box_after
    • mystickymenu_show_affiliate_box_after
    • mysticky_option_name
    • widget_theysaidso_widget
    • mystickymenu_intro_box
    • widget_recent-posts
    • update_mysticky_version_2_6
    • ...

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=my-stickymenu-new-welcomebar
    • > Notice in wp-content/plugins/mystickymenu/welcome-bar.php+71
    Undefined index: mysticky_welcomebar_enable
    • > GET request to /wp-admin/admin.php?page=my-stickymenu-new-welcomebar
    • > Notice in wp-content/plugins/mystickymenu/welcome-bar.php+332
    Undefined index: mysticky_welcomebar_show_success_message
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=my-stickymenu-new-welcomebar
    • > Notice in wp-content/plugins/mystickymenu/welcome-bar.php+426
    Undefined index: mysticky_welcomebar_attentionselect

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 take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/mystickymenu/mystickymenu.php
  • 12× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/mystickymenu/mystickymeny-new-welcomebar.php:2
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mystickymenu/recommended-plugins.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mystickymenu/mystickymenu-affiliate.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mystickymenu/welcome-bar.php:1984
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/mystickymenu/stickymenu-dashboard.php:2
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin-install.php' (include_path='.:/usr/share/php') in wp-content/plugins/mystickymenu/recommended-plugins.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mystickymenu/class-upgrade-box.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/mystickymenu/mystickymenu-review-popup.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/mystickymenu/mystickymenu-popup.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/mystickymenu/help.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=my-stickymenu-welcomebar
    • > Network (severe)
    wp-content/plugins/mystickymenu/fonts/Lato-Regular.ttf - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 14 tag instead of maximum 10
You can look at the official readme.txt

mystickymenu/mystickymenu.php 92% from 13 tests

"Floating Notification Bar, Sticky Menu on Scroll, Announcement Banner, and Sticky Header for Any Theme - My Sticky Bar (formerly myStickymenu)" version 2.6.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 227 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin20,115 lines of code in 56 files:
LanguageFilesBlank linesComment linesLines of code
CSS106511388,922
PHP187952317,937
JavaScript113471051,815
SVG1200800
PO File5237279641

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity72.60
▷ Minimum class complexity8.00
▷ Maximum class complexity229.00
Average method complexity9.14
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods44
▷ Static methods00.00%
▷ Public methods44100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
25 PNG files occupy 0.79MB with 0.47MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/owner.png46.48KB16.16KB▼ 65.23%
images/Back To The Book Nutrition.png41.35KB18.03KB▼ 56.41%
images/pro-widget.png3.86KB2.09KB▼ 45.87%
images/contact-lead-ss.png119.78KB27.90KB▼ 76.71%
images/plus-price.png27.95KB14.13KB▼ 49.44%