72% fuse-social-floating-sidebar

Code Review | Fuse Social Floating Sidebar

WordPress plugin Fuse Social Floating Sidebar scored72%from 54 tests.

About plugin

  • Plugin page: fuse-social-float...
  • Plugin version: 5.4.10
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3
  • WordPress version: 6.3.1
  • First release: May 5, 2015
  • Latest release: Jul 25, 2023
  • Number of updates: 89
  • Update frequency: every 33.7 days
  • Top authors: daniyalahmedk (100%)

Code review

54 tests

User reviews

56 reviews

Install metrics

20,000+ active /337,917 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲6.17MB] [CPU: ▲55.15ms] 75% from 4 tests

This is a short check of server-side resources used by Fuse Social Floating Sidebar
Please take the time to fix the following items
  • Extra RAM: The extra memory usage should kept under 5MB (currently 6.17MB on /wp-admin/options-general.php?page=redux-framework)
PageMemory (MB)CPU Time (ms)
Home /9.42 ▲5.9687.57 ▲47.38
Dashboard /wp-admin9.55 ▲6.21116.07 ▲55.22
Posts /wp-admin/edit.php9.60 ▲6.2499.28 ▲57.10
Add New Post /wp-admin/post-new.php12.16 ▲6.27152.45 ▲60.90
Media Library /wp-admin/upload.php9.49 ▲6.2794.39 ▲62.12
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius9.7385.79
Redux /wp-admin/options-general.php?page=redux-framework9.5082.26

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 1,112 new files
Database: no new tables, 11 new options
New WordPress options
db_upgraded
can_compress_scripts
fs_accounts
widget_recent-posts
fuse-transients
theysaidso_admin_options
fs_active_plugins
fuse
widget_theysaidso_widget
widget_recent-comments
...

Browser metrics Passed 4 tests

Checking browser requirements for Fuse Social Floating Sidebar
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,985 ▲23913.47 ▼0.889.05 ▲7.2632.31 ▼10.86
Dashboard /wp-admin2,294 ▲1175.54 ▲0.0090.53 ▼12.2282.25 ▲37.58
Posts /wp-admin/edit.php2,216 ▲1192.00 ▼0.0240.60 ▲3.0738.06 ▲1.27
Add New Post /wp-admin/post-new.php1,571 ▲3823.45 ▲0.57676.96 ▲30.7463.69 ▲8.30
Media Library /wp-admin/upload.php1,444 ▲474.23 ▲0.0994.84 ▼7.2346.87 ▲3.51
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,0961.8724.2128.58
Redux /wp-admin/options-general.php?page=redux-framework1,0523.3570.2785.87

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
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/fuse-social-floating-sidebar/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • Zombie WordPress options were found after uninstall: 11 options
    • fuse-transients
    • fs_active_plugins
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • fuse
    • widget_recent-posts
    • fs_debug_mode
    • db_upgraded
    • widget_recent-comments
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
  • 55× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/fuse-social-floating-sidebar/framework/redux-core/core/required.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/fuse-social-floating-sidebar/framework/redux-core/core/enqueue.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/fuse-social-floating-sidebar/framework/redux-core/inc/fields/slides/field_slides.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/fuse-social-floating-sidebar/framework/redux-core/inc/fields/textarea/field_textarea.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fuse-social-floating-sidebar/inc/fuse_social_sidebar_scripts.php:12
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/fuse-social-floating-sidebar/framework/redux-core/templates/panel/container.tpl.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/fuse-social-floating-sidebar/framework/redux-core/inc/fields/section/field_section.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/fuse-social-floating-sidebar/framework/redux-core/inc/fields/multi_text/field_multi_text.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/fuse-social-floating-sidebar/framework/redux-core/inc/fields/info/field_info.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/fuse-social-floating-sidebar/framework/redux-core/inc/fields/media/field_media.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === fuse-social-floating-sidebar === )
  • Screenshots: A description for screenshot #6 is required in fuse-social-floating-sidebar/assets to your readme.txt
The official readme.txt might help

fuse-social-floating-sidebar/fuse_social_sidebar.php 92% from 13 tests

This is the main PHP file of "Fuse Social Floating Sidebar" version 5.4.10, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("fuse-social-floating-sidebar.php" instead of "fuse_social_sidebar.php")

Code Analysis 95% from 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
No dangerous file extensions were detected122,161 lines of code in 754 files:
LanguageFilesBlank linesComment linesLines of code
PHP34115,71630,17261,740
JavaScript1506,2653,58426,291
Sass1111,95511814,764
CSS1296,71834013,745
SVG7003,617
LESS1594562,001
Markdown1103

PHP code 0% from 2 tests

A short review of cyclomatic complexity and code structure
Please fix the following
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 110)
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity50.85
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity5.31
▷ Minimum method complexity1.00
▷ Maximum method complexity110.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes201
▷ Abstract classes62.99%
▷ Concrete classes19597.01%
▷ Final classes00.00%
Methods2,358
▷ Static methods48820.70%
▷ Public methods1,73873.71%
▷ Protected methods1526.45%
▷ Private methods46819.85%
Functions134
▷ Named functions12996.27%
▷ Anonymous functions53.73%
Constants247
▷ Global constants10241.30%
▷ Class constants14558.70%
▷ Public constants145100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
74 PNG files occupy 1.14MB with 0.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
framework/redux-core/assets/img/raw/jquery-ui-bootstrap/ui-bg_inset-soft_95_fef1ec_1x100.png0.12KB0.16KB0.00%
framework/redux-core/assets/img/jquery-ui-bootstrap/ui-bg_flat_0_aaaaaa_40x100.png0.08KB0.08KB0.00%
framework/redux-core/assets/img/raw/3cm.png2.96KB0.29KB▼ 90.35%
framework/redux-core/assets/img/raw/jquery-ui-bootstrap/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%
framework/presets/preset-2.png29.15KB9.31KB▼ 68.05%