10% sticky-side-buttons

Code Review | Sticky Side Buttons

WordPress plugin Sticky Side Buttons scored10%from 54 tests.

About plugin

  • Plugin page: sticky-side-buttons
  • Plugin version: 1.0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-5.8.1
  • WordPress version: 6.3.1
  • First release: Jan 12, 2017
  • Latest release: Oct 11, 2021
  • Number of updates: 31
  • Update frequency: every 55.8 days
  • Top authors: EnigmaWeb (100%)

Code review

54 tests

User reviews

40 reviews

Install metrics

20,000+ active /229,514 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/sticky-side-buttons/ssb-ui.php+34
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.96MB] [CPU: ▼52.44ms] Passed 4 tests

A check of server-side resources used by Sticky Side Buttons
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.449.46 ▼24.64
Dashboard /wp-admin2.05 ▼1.266.28 ▼38.47
Posts /wp-admin/edit.php2.05 ▼1.316.99 ▼53.11
Add New Post /wp-admin/post-new.php2.05 ▼3.845.88 ▼92.14
Media Library /wp-admin/upload.php2.05 ▼1.186.41 ▼26.05

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
ssb_settings
widget_recent-posts
ssb_showoncpt
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Sticky Side Buttons
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,968 ▲19714.59 ▲0.0111.79 ▲10.0743.14 ▲5.93
Dashboard /wp-admin2,244 ▲615.51 ▲0.56118.57 ▼10.3044.87 ▲0.01
Posts /wp-admin/edit.php2,146 ▲542.37 ▲0.4038.09 ▼4.5834.48 ▼5.35
Add New Post /wp-admin/post-new.php1,551 ▲3023.63 ▲0.39650.71 ▼28.8137.57 ▼21.59
Media Library /wp-admin/upload.php1,432 ▲444.76 ▲0.5593.62 ▼17.1941.23 ▼6.15

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/sticky-side-buttons/ssb-ui.php+34
    Trying to access array offset on value of type bool
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • ssb_showoncpt
    • widget_theysaidso_widget
    • ssb_settings
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/sticky-side-buttons/sticky-side-buttons.php:52

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed: Please take inspiration from this readme.txt

sticky-side-buttons/sticky-side-buttons.php 92% from 13 tests

The main PHP script in "Sticky Side Buttons" version 1.0.9 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin16,006 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
SVG4006,940
JavaScript376225,368
CSS41,343253,193
PHP3116137505

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity39.00
▷ Minimum class complexity12.00
▷ Maximum class complexity66.00
Average method complexity6.85
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin