90% social-share-with-floating-bar

Code Review | Social Share With Floating Bar

WordPress plugin Social Share With Floating Bar scored90%from 54 tests.

About plugin

  • Plugin page: social-share-with...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.7
  • WordPress version: 6.3.1
  • First release: Aug 15, 2018
  • Latest release: Mar 24, 2021
  • Number of updates: 6
  • Update frequency: every 158.7 days
  • Top authors: themeinwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

3,000+ active /145,038 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.18MB] [CPU: ▼9.14ms] Passed 4 tests

This is a short check of server-side resources used by Social Share With Floating Bar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2041.37 ▲1.89
Dashboard /wp-admin3.51 ▲0.1349.69 ▼18.26
Posts /wp-admin/edit.php3.62 ▲0.2645.19 ▼4.71
Add New Post /wp-admin/post-new.php6.09 ▲0.2083.91 ▼15.46
Media Library /wp-admin/upload.php3.43 ▲0.2036.26 ▲2.36
Social Share With Floating Bar /wp-admin/options-general.php?page=social_share_with_floating_bar_settings3.4031.49

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
social_share_with_floating_bar_version
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Social Share With Floating Bar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲7313.32 ▼1.051.83 ▲0.0943.00 ▲1.03
Dashboard /wp-admin2,212 ▲274.88 ▼1.0099.74 ▼12.6340.54 ▼2.29
Posts /wp-admin/edit.php2,092 ▼02.04 ▲0.0334.23 ▼5.2635.22 ▼9.39
Add New Post /wp-admin/post-new.php6,252 ▲4,73826.04 ▲8.57915.89 ▲206.0165.72 ▲13.95
Media Library /wp-admin/upload.php1,397 ▲124.18 ▼0.1498.86 ▼7.6744.97 ▲0.27
Social Share With Floating Bar /wp-admin/options-general.php?page=social_share_with_floating_bar_settings9101.8123.5533.23

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • social_share_with_floating_bar_version
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: social sharing, wordpress, plugin

social-share-with-floating-bar/social-share-with-floating-bar.php 92% from 13 tests

The primary PHP file in "Social Share With Floating Bar" version 1.0.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 249 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,336 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP2331311820
CSS4894516

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity44.33
▷ Minimum class complexity23.00
▷ Maximum class complexity67.00
Average method complexity4.94
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods33
▷ Static methods26.06%
▷ Public methods2781.82%
▷ Protected methods00.00%
▷ Private methods618.18%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin