10% 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 scored10%from 54 tests.

About plugin

  • Plugin page: floating-links
  • Plugin version: 3.6.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Sep 2, 2016
  • Latest release: Aug 19, 2023
  • Number of updates: 95
  • Update frequency: every 26.8 days
  • Top authors: jwebsol (54.74%)DaNish Ali (32.63%)maltathemes (14.74%)

Code review

54 tests

User reviews

70 reviews

Install metrics

300+ active /35,728 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • This plugin did not install gracefully
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)

Server metrics [RAM: ▲5.22MB] [CPU: ▼20.47ms] 75% from 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
Please take the time to fix the following items
  • Extra RAM: Extra memory usage must be kept under 5MB (currently 5.22MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.21 ▲5.7434.17 ▼3.31
Dashboard /wp-admin9.23 ▲5.9235.84 ▼12.69
Posts /wp-admin/edit.php9.23 ▲5.8734.86 ▼12.74
Add New Post /wp-admin/post-new.php9.23 ▲3.3438.60 ▼53.13
Media Library /wp-admin/upload.php9.23 ▲6.0041.22 ▲7.88
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius9.2333.10

Server storage [IO: ▲5.27MB] [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: 232 new files
Database: no new tables, 10 new options
New WordPress options
widget_recent-comments
fs_debug_mode
fs_accounts
can_compress_scripts
fl_settings
db_upgraded
fs_active_plugins
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

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 /3,046 ▲28513.46 ▼0.7810.38 ▲8.7132.42 ▼10.42
Dashboard /wp-admin2,230 ▲505.62 ▼0.0282.09 ▼4.4279.98 ▲36.13
Posts /wp-admin/edit.php2,133 ▲331.96 ▼0.0137.94 ▼1.8936.96 ▲3.03
Add New Post /wp-admin/post-new.php1,707 ▲17224.13 ▲6.02673.72 ▲73.2457.65 ▼7.93
Media Library /wp-admin/upload.php1,426 ▲234.21 ▼0.01100.92 ▲7.1075.04 ▲31.23
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,1001.6826.0136.69

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
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • fl_settings
    • fs_accounts
    • fs_debug_mode
    • fs_active_plugins

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=freemius
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)

SRP Passed 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
The SRP test was a success

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: next previous post links, sharing icons pagination, sharing, social

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.6.2, 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,879 lines of code in 161 files:
LanguageFilesBlank linesComment linesLines of code
PHP1298,29817,52135,766
Sass49103,106
JavaScript73201761,422
PO File2324396864
SVG100685
CSS1801836

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 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity86.13
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.63
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes54
▷ Abstract classes23.70%
▷ Concrete classes5296.30%
▷ Final classes00.00%
Methods1,294
▷ Static methods19715.22%
▷ Public methods90469.86%
▷ Protected methods171.31%
▷ Private methods37328.83%
Functions106
▷ Named functions106100.00%
▷ Anonymous functions00.00%
Constants149
▷ Global constants10268.46%
▷ Class constants4731.54%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
admin/assets/images/plugin-icon.png0.97KB0.88KB▼ 9.54%
admin/assets/images/plugin-logo.png13.11KB5.80KB▼ 55.75%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%