58% wp-sticky-side-buttons

Code Review | WP Sticky Side Buttons

WordPress plugin WP Sticky Side Buttons scored58%from 54 tests.

About plugin

  • Plugin page: wp-sticky-side-bu...
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-4.5
  • WordPress version: 6.3.1
  • First release: Dec 20, 2015
  • Latest release: May 8, 2016
  • Number of updates: 8
  • Update frequency: every 17.5 days
  • Top authors: truser (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /6,777 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.93MB] [CPU: ▼38.36ms] Passed 4 tests

A check of server-side resources used by WP Sticky Side Buttons
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0435.89 ▼3.70
Dashboard /wp-admin3.03 ▼0.3225.08 ▼32.55
Posts /wp-admin/edit.php3.03 ▼0.3324.40 ▼26.41
Add New Post /wp-admin/post-new.php3.03 ▼2.8625.42 ▼85.57
Media Library /wp-admin/upload.php3.03 ▼0.2024.04 ▼8.92
WpAJANS-StickyButtons /wp-admin/options-general.php?page=wpajansstickybuttons3.0328.31

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: 1 new table, 6 new options
New tables
wp_wpajans_stickybuttons
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for WP Sticky Side Buttons
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3314.80 ▲0.141.59 ▼0.2040.91 ▲3.05
Dashboard /wp-admin2,210 ▲195.79 ▲0.83103.47 ▼0.3138.50 ▼3.63
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0532.61 ▼10.6432.08 ▼6.24
Add New Post /wp-admin/post-new.php1,531 ▼1123.11 ▲4.90672.43 ▼13.0961.26 ▼3.69
Media Library /wp-admin/upload.php1,389 ▼24.20 ▲0.02105.00 ▲7.9248.56 ▲3.25
WpAJANS-StickyButtons /wp-admin/options-general.php?page=wpajansstickybuttons8832.0222.3627.78

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie tables were found after uninstall: 1 table
    • wp_wpajans_stickybuttons
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wpajansstickybuttons
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/options-general.php?page=wpajansstickybuttons
    • > Notice in wp-content/plugins/wp-sticky-side-buttons/index.php+97
    Undefined index: action

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/wp-sticky-side-buttons/index.php:18

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 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: wordpress sticky buttons, wordpress sticky side buttons, wordpress button make, wordpress, wordpress button creator...

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

Analyzing the main PHP file in "WP Sticky Side Buttons" version 2.1
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-sticky-side-buttons.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin205 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13422205

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected