73% wp-sticky-social

Code Review | WP Sticky Social

WordPress plugin WP Sticky Social scored 73% from 54 tests.

About plugin

  • Plugin page: wp-sticky-social
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.1.3
  • WordPress version: 6.3.1
  • First release: Jan 9, 2014
  • Latest release: Jun 14, 2023
  • Number of updates: 6
  • Update frequency: every 573.8 days
  • Top authors: Musilda (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

300+ active / 8,054 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.13MB] [CPU: ▼6.59ms] Passed 4 tests

Analyzing server-side resources used by WP Sticky Social
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.36 ▼3.86
Dashboard /wp-admin3.43 ▲0.1345.61 ▼4.76
Posts /wp-admin/edit.php3.53 ▲0.1748.43 ▼0.93
Add New Post /wp-admin/post-new.php6.11 ▲0.2284.12 ▼10.88
Media Library /wp-admin/upload.php3.37 ▲0.1431.33 ▼6.84
Sticky Social /wp-admin/options-general.php?page=wp-sticky-social3.3137.95

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
wp-sticky-social
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

WP Sticky Social: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,038 ▲28114.74 ▲0.381.73 ▼0.3952.63 ▲9.82
Dashboard /wp-admin2,207 ▲195.82 ▲0.9496.08 ▼7.9040.67 ▼5.73
Posts /wp-admin/edit.php2,093 ▲42.02 ▼0.0141.68 ▲1.0538.13 ▲1.49
Add New Post /wp-admin/post-new.php1,517 ▼2617.63 ▼0.67676.08 ▲61.5249.72 ▼5.77
Media Library /wp-admin/upload.php1,395 ▲104.20 ▼0.0395.88 ▼3.5142.69 ▼2.71
Sticky Social /wp-admin/options-general.php?page=wp-sticky-social1,5821.8527.4033.37

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-sticky-social/public/views/public.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-sticky-social/admin/views/admin.php:66

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=wp-sticky-social
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).wpColorPicker is not a function" "TypeError: jQuery(...).wpColorPicker is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wp-sticky-social/admin/assets/js/admin.js?ver=1.0.2:6:45)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/options-general.php?page=wp-sticky-social
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).wpColorPicker is not a function

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Donate link: Please fix this invalid url: ""
You can look at the official readme.txt

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

"WP Sticky Social" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
32 characters long description:
Add sticky bar with social icons

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
Everything looks great! No dangerous files found in this plugin1,068 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP7115277444
CSS46837299
PO File27581184
Sass380113
SVG10015
JavaScript28013

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity13.00
▷ Minimum class complexity6.00
▷ Maximum class complexity20.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods20
▷ Static methods735.00%
▷ Public methods1575.00%
▷ Protected methods00.00%
▷ Private methods525.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin