84% mystickysidebar

Code Review | WP Sticky Sidebar - Floating Sidebar On Scroll for Any Theme

WordPress plugin WP Sticky Sidebar - Floating Sidebar On Scroll for Any Theme scored84%from 54 tests.

About plugin

  • Plugin page: mystickysidebar
  • Plugin version: 1.3.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-6.3
  • WordPress version: 6.3.1
  • First release: Nov 16, 2016
  • Latest release: Jul 27, 2023
  • Number of updates: 104
  • Update frequency: every 23.5 days
  • Top authors: damiroquai (52.88%)galdub (44.23%)premiocommit (4.81%)

Code review

54 tests

User reviews

142 reviews

Install metrics

10,000+ active /197,308 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.19MB] [CPU: ▼1.34ms] Passed 4 tests

An overview of server-side resources used by WP Sticky Sidebar - Floating Sidebar On Scroll for Any Theme
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1135.87 ▼8.77
Dashboard /wp-admin3.53 ▲0.2246.63 ▼1.43
Posts /wp-admin/edit.php3.64 ▲0.2851.12 ▲6.80
Add New Post /wp-admin/post-new.php6.11 ▲0.2291.75 ▲5.32
Media Library /wp-admin/upload.php3.45 ▲0.2236.27 ▼0.49
WP Sticky Sidebar /wp-admin/options-general.php?page=my-stickysidebar-settings3.4232.95

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 11 new options
New WordPress options
wpstickysidebar_show_review_box_after
widget_recent-posts
can_compress_scripts
has_sticky_sidebar_old_version
theysaidso_admin_options
wpstickysidebar_show_affiliate_box_after
widget_theysaidso_widget
widget_recent-comments
mystickyside_option_name
db_upgraded
...

Browser metrics Passed 4 tests

WP Sticky Sidebar - Floating Sidebar On Scroll for Any Theme: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,018 ▲24713.69 ▼0.689.68 ▲7.7041.40 ▼2.57
Dashboard /wp-admin2,213 ▲285.85 ▲0.99105.81 ▼13.6440.61 ▼7.54
Posts /wp-admin/edit.php2,096 ▲102.04 ▲0.0439.40 ▲3.8836.42 ▲3.40
Add New Post /wp-admin/post-new.php1,536 ▲2223.09 ▲5.58625.50 ▼69.3261.91 ▲0.87
Media Library /wp-admin/upload.php1,389 ▲14.18 ▼0.0396.74 ▼0.1443.28 ▼4.17
WP Sticky Sidebar /wp-admin/options-general.php?page=my-stickysidebar-settings1,5091.7231.38114.88

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 11 options
    • wpstickysidebar_show_affiliate_box_after
    • sticky_sidebar_status
    • db_upgraded
    • widget_recent-comments
    • has_sticky_sidebar_old_version
    • wpstickysidebar_show_review_box_after
    • mystickyside_option_name
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/mystickysidebar/mystickysidebar.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: sidebar, sticky sidebar, disable sidebar, sticky, fixed sidebar...

mystickysidebar/mystickysidebar.php Passed 13 tests

The entry point to "WP Sticky Sidebar - Floating Sidebar On Scroll for Any Theme" version 1.3.9 is a PHP file that has certain tags in its header comment area
134 characters long description:
Simple sticky sidebar implementation. After install go to Settings / WP Sticky Sidebar and change Sticky Class to .your_sidebar_class.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin3,061 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP3182811,368
CSS222471,314
JavaScript37856285
PO File1343694

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity32.00
▷ Minimum class complexity10.00
▷ Maximum class complexity73.00
Average method complexity6.90
▷ Minimum method complexity1.00
▷ Maximum method complexity58.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods21
▷ Static methods14.76%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/rpt_recommended.png1.49KB0.45KB▼ 69.99%
images/payment.png7.55KB4.38KB▼ 42.08%
images/testimonial.png68.13KB22.33KB▼ 67.22%
images/premio-owner.png6.21KB3.08KB▼ 50.38%