68% floating-links

Code Review | Floating Social Share Icons and Social Share buttons - Next Previous Post Links - FL

WordPress plugin Floating Social Share Icons and Social Share buttons - Next Previous Post Links - FL scored 68% from 54 tests.

About plugin

  • Plugin page: floating-links
  • Plugin version: 3.5.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.7
  • WordPress version: 5.8.1
  • First release: Sep 2, 2016
  • Latest release: Sep 25, 2021
  • Number of updates: 91
  • Update frequency: every 20.3 days
  • Top authors: jwebsol (57.14%)DaNish Ali (29.67%)maltathemes (15.38%)

Code review

54 tests

User reviews

65 reviews

Install metrics

500+ active / 29,217 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲4.82MB] [CPU: ▼112.04ms] Passed 4 tests

This is a short check of server-side resources used by Floating Social Share Icons and Social Share buttons - Next Previous Post Links - FL
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /8.29 ▲5.4559.25 ▲22.81
Dashboard /wp-admin8.31 ▲5.2571.73 ▲24.49
Posts /wp-admin/edit.php8.31 ▲5.2073.23 ▲29.38
Add New Post /wp-admin/post-new.php8.96 ▲3.53121.59 ▼512.34
Media Library /wp-admin/upload.php8.31 ▲5.3058.96 ▲16.89
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius8.3150.71

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 234 new files
Database: no new tables, 5 new options
New WordPress options
fs_gdpr
fs_accounts
fs_active_plugins
fs_debug_mode
fl_settings

Browser metrics Passed 4 tests

Checking browser requirements for Floating Social Share Icons and Social Share buttons - Next Previous Post Links - FL
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,058 ▲46216.86 ▲1.2638.49 ▲29.8670.06 ▲22.66
Dashboard /wp-admin3,010 ▲766.17 ▲0.21143.65 ▼13.40136.99 ▲26.00
Posts /wp-admin/edit.php2,806 ▲672.70 ▼0.0165.03 ▼3.4494.36 ▲1.87
Add New Post /wp-admin/post-new.php1,706 ▲20616.25 ▼2.30421.35 ▼33.76107.64 ▲5.70
Media Library /wp-admin/upload.php1,798 ▲505.00 ▼0.00141.34 ▼19.12147.77 ▲25.02
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius1,5122.0964.5978.83

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/floating-links/freemius/includes/class-freemius.php+8552
    Undefined property: stdClass::$plugins
  • This plugin did not uninstall successfully, leaving 5 options in the database
    • fl_settings
    • fs_active_plugins
    • fs_debug_mode
    • fs_accounts
    • fs_gdpr

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/floating-links/freemius/templates/ajax-loader.php
  • 8× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/floating-links/freemius/templates/account/partials/addon.php on line 8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/floating-links/freemius/templates/account/partials/addon.php on line 7
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/floating-links/freemius/templates/account/partials/addon.php on line 6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/floating-links/freemius/templates/account/partials/addon.php on line 8
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/floating-links/freemius/templates/account/partials/addon.php on line 7
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/floating-links/freemius/templates/account/partials/addon.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/floating-links/freemius/templates/account/partials/addon.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function freemius() in wp-content/plugins/floating-links/freemius/templates/partials/network-activation.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: Please add descriptions for these screenshots #10, #9 in floating-links/assets to your readme.txt
You can look at the official readme.txt

floating-links/floating-links.php Passed 13 tests

This is the main PHP file of "Floating Social Share Icons and Social Share buttons - Next Previous Post Links - FL" version 3.5.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
127 characters long description:
Displays fancy floating top, bottom, next post, previous post, random post links and Pagination with custom post types support.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected41,112 lines of code in 161 files:
LanguageFilesBlank linesComment linesLines of code
PHP1197,96517,12733,731
Sass1333744,385
JavaScript93492231,386
PO File2324396864
SVG100685
CSS1701861

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 2,907)
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity84.14
▷ Minimum class complexity1.00
▷ Maximum class complexity2,907.00
Average method complexity4.68
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes51
▷ Abstract classes23.92%
▷ Concrete classes4996.08%
▷ Final classes00.00%
Methods1,183
▷ Static methods17314.62%
▷ Public methods84371.26%
▷ Protected methods151.27%
▷ Private methods32527.47%
Functions99
▷ Named functions99100.00%
▷ Anonymous functions00.00%
Constants127
▷ Global constants10280.31%
▷ Class constants2519.69%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
images/cloudways-logo.png1.18KB1.15KB▼ 2.56%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/esf-featured-post.png3.53KB1.58KB▼ 55.34%
freemius/assets/img/easy-facebook-likebox.png7.39KB4.08KB▼ 44.75%