84% floating-social-share-bar-lizard

Code Review | Floating Social Share Bar (Lizard)

WordPress plugin Floating Social Share Bar (Lizard) scored 84% from 54 tests.

About plugin

  • Plugin page: floating-social-s...
  • Plugin version: 3.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.0-4.6.3
  • WordPress version: 5.8.1
  • First release: Jun 19, 2016
  • Latest release: Dec 8, 2016
  • Number of updates: 18
  • Update frequency: every 9.6 days
  • Top authors: shivashankerbhatta (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active / 5,233 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼138.50ms] Passed 4 tests

An overview of server-side resources used by Floating Social Share Bar (Lizard)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1341.39 ▲17.70
Dashboard /wp-admin3.09 ▲0.0445.14 ▲0.46
Posts /wp-admin/edit.php3.14 ▲0.0344.59 ▼0.68
Add New Post /wp-admin/post-new.php5.46 ▲0.0293.50 ▼555.12
Media Library /wp-admin/upload.php3.03 ▲0.0336.17 ▲1.33
Floating Social Share /wp-admin/options-general.php?page=awfss-social-share3.0026.56

Server storage [IO: ▲0.06MB] [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: 12 new files
Database: no new tables, 12 new options
New WordPress options
awfss-social-share-above-content
awfss-social-share-linkurl
awfss-social-share-envelope
awfss-social-share-below-content
awfss-social-share-floating-menu
awfss-social-share-facebook
awfss-social-share-linkedin
awfss-social-share-position
awfss-social-share-googleplus
awfss-social-share-tumblr
...

Browser metrics Passed 4 tests

A check of browser resources used by Floating Social Share Bar (Lizard)
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,880 ▲28416.30 ▲0.6513.77 ▲3.9447.08 ▼0.20
Dashboard /wp-admin2,972 ▲415.89 ▼0.04161.40 ▼0.46103.97 ▼5.63
Posts /wp-admin/edit.php2,744 ▲52.72 ▼0.0064.94 ▼8.2589.32 ▼0.33
Add New Post /wp-admin/post-new.php1,618 ▼6521.48 ▲2.74315.60 ▼86.04108.35 ▼3.32
Media Library /wp-admin/upload.php1,812 ▲55.04 ▲0.00168.74 ▲10.92121.68 ▲5.44
Floating Social Share /wp-admin/options-general.php?page=awfss-social-share1,2322.1055.4779.33

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 12 options
    • awfss-social-share-shape
    • awfss-social-share-googleplus
    • awfss-social-share-tumblr
    • awfss-social-share-linkedin
    • awfss-social-share-facebook
    • awfss-social-share-twitter
    • awfss-social-share-envelope
    • awfss-social-share-below-content
    • awfss-social-share-above-content
    • awfss-social-share-floating-menu
    • ...

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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/floating-social-share-bar-lizard/aankha-wp-floating-social-share.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% 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
Please fix the following attributes: You can take inspiration from this readme.txt

floating-social-share-bar-lizard/aankha-wp-floating-social-share.php 92% from 13 tests

The principal PHP file in "Floating Social Share Bar (Lizard)" v. 3.0.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("floating-social-share-bar-lizard.php" instead of "aankha-wp-floating-social-share.php")

Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected660 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP319595483
CSS11418144
SVG10018
JavaScript16815

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity12.00
▷ Minimum class complexity1.00
▷ Maximum class complexity33.00
Average method complexity2.10
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods30
▷ Static methods26.67%
▷ Public methods30100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/share-128.png1.84KB1.96KB0.00%