10% floating-social-media-links

Code Review | Floating Social Media Links

WordPress plugin Floating Social Media Links scored10%from 54 tests.

About plugin

  • Plugin page: floating-social-m...
  • Plugin version: 1.5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.6
  • WordPress version: 6.3.1
  • First release: Jun 6, 2012
  • Latest release: Feb 23, 2014
  • Number of updates: 125
  • Update frequency: every 5.0 days
  • Top authors: celloexpressions (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

1,000+ active /88,835 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/floating-social-media-links/floating-social-media-links.php+46
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.24MB] [CPU: ▼5.27ms] Passed 4 tests

This is a short check of server-side resources used by Floating Social Media Links
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1829.49 ▼15.41
Dashboard /wp-admin3.57 ▲0.2752.47 ▼4.25
Posts /wp-admin/edit.php3.62 ▲0.2652.50 ▼2.21
Add New Post /wp-admin/post-new.php6.15 ▲0.2691.43 ▲0.78
Media Library /wp-admin/upload.php3.49 ▲0.2639.31 ▲5.28
Floating Social Media Links /wp-admin/options-general.php?page=floating-social-media-links/floating-social-media-links.php3.4940.93

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: no new tables, 7 new options
New WordPress options
fsml_options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Floating Social Media Links
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲8613.30 ▼1.094.83 ▲2.7144.06 ▼1.23
Dashboard /wp-admin2,204 ▲165.92 ▲1.02103.94 ▼15.1040.50 ▼3.81
Posts /wp-admin/edit.php2,090 ▼32.02 ▼0.0637.09 ▼4.5932.42 ▼3.78
Add New Post /wp-admin/post-new.php1,536 ▲1723.15 ▼0.26686.58 ▲69.4052.57 ▼1.06
Media Library /wp-admin/upload.php1,392 ▲44.20 ▼0.02100.56 ▼3.2445.10 ▼3.90
Floating Social Media Links /wp-admin/options-general.php?page=floating-social-media-links/floating-social-media-links.php2,9124.21105.74120.77

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/floating-social-media-links/floating-social-media-links.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
The official readme.txt is a good inspiration

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

The principal PHP file in "Floating Social Media Links" v. 1.5.2 is loaded by WordPress automatically on each request
99 characters long description:
Add a clean and simple floating frame, with social media and/or custom links, to your website/blog.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,699 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP1991131,258
CSS285294
JavaScript22627139
SVG1008

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
24 PNG files occupy 0.10MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/admin/theme-bright.png11.72KB5.34KB▼ 54.41%
img/x-dark.png0.35KB0.21KB▼ 40.33%
img/youtube.png9.48KB9.33KB▼ 1.64%
img/x.png0.17KB0.18KB0.00%
img/pintrest.png7.39KB7.45KB0.00%