78% sticky-social-icons

Code Review | Sticky Social Icons

WordPress plugin Sticky Social Icons scored78%from 54 tests.

About plugin

  • Plugin page: sticky-social-icons
  • Plugin version: 1.1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Aug 28, 2020
  • Latest release: Oct 12, 2022
  • Number of updates: 13
  • Update frequency: every 59.6 days
  • Top authors: sonill (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

10,000+ active /38,278 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼2.58ms] Passed 4 tests

An overview of server-side resources used by Sticky Social Icons
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0436.30 ▼2.91
Dashboard /wp-admin3.37 ▲0.0748.13 ▼4.00
Posts /wp-admin/edit.php3.42 ▲0.0746.28 ▼3.21
Add New Post /wp-admin/post-new.php5.95 ▲0.0690.82 ▲6.37
Media Library /wp-admin/upload.php3.29 ▲0.0635.45 ▼0.21
Sticky Social Icons /wp-admin/options-general.php?page=sticky-social-icons3.3234.52

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 34 new files
Database: no new tables, 7 new options
New WordPress options
sanil_ssi_db_all_options_names
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Sticky Social Icons
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲7613.21 ▼1.541.58 ▼0.1437.34 ▼5.80
Dashboard /wp-admin2,210 ▲195.85 ▲0.91107.64 ▼10.3642.05 ▼0.05
Posts /wp-admin/edit.php2,093 ▲41.97 ▼0.0938.10 ▼2.0336.17 ▼3.36
Add New Post /wp-admin/post-new.php1,537 ▲223.45 ▲0.39587.70 ▼100.9945.79 ▼13.14
Media Library /wp-admin/upload.php1,389 ▼24.18 ▼0.0395.91 ▼7.7042.60 ▼1.05
Sticky Social Icons /wp-admin/options-general.php?page=sticky-social-icons9292.0722.3330.64

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% 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 0% 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
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/sticky-social-icons/public/templates/sticky-social-icons-template.php
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Undefined variable: hide_in_mobile in wp-content/plugins/sticky-social-icons/public/templates/sticky-social-icons-template.php on line 3
    • > PHP Notice
      Undefined variable: icons_data in wp-content/plugins/sticky-social-icons/public/templates/sticky-social-icons-template.php on line 8
    • > PHP Notice
      Undefined variable: enable_animation in wp-content/plugins/sticky-social-icons/public/templates/sticky-social-icons-template.php on line 2
    • > PHP Notice
      Undefined variable: design in wp-content/plugins/sticky-social-icons/public/templates/sticky-social-icons-template.php on line 1
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/sticky-social-icons/public/templates/sticky-social-icons-template.php on line 8
    • > PHP Notice
      Undefined variable: alignment in wp-content/plugins/sticky-social-icons/public/templates/sticky-social-icons-template.php on line 1
    • > PHP Notice
      Undefined variable: alignment in wp-content/plugins/sticky-social-icons/public/templates/sticky-social-icons-template.php on line 6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === sticky-social-icons === )
You can take inspiration from this readme.txt

sticky-social-icons/sticky-social-icons.php Passed 13 tests

The main PHP file in "Sticky Social Icons" ver. 1.1.3 adds more information about the plugin and also serves as the entry point for this plugin
75 characters long description:
Show your favorite social media icons into the side of your website screen.

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
Success! There were no dangerous files found in this plugin3,787 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3803,058
PHP15276597703
SVG30022
CSS4024

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity6.71
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity2.03
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods39
▷ Static methods25.13%
▷ Public methods3282.05%
▷ Protected methods00.00%
▷ Private methods717.95%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin