74% custom-share-buttons-with-floating-sidebar

Code Review | Custom Share Buttons with Floating Sidebar

WordPress plugin Custom Share Buttons with Floating Sidebar scored74%from 54 tests.

About plugin

  • Plugin page: custom-share-butt...
  • Plugin version: 4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3.1
  • WordPress version: 6.3.1
  • First release: Jun 4, 2014
  • Latest release: Sep 27, 2023
  • Number of updates: 176
  • Update frequency: every 19.3 days
  • Top authors: india-web-developer (100%)

Code review

54 tests

User reviews

93 reviews

Install metrics

9,000+ active /465,191 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
Install script ran successfully

Server metrics [RAM: ▲0.30MB] [CPU: ▼0.68ms] Passed 4 tests

An overview of server-side resources used by Custom Share Buttons with Floating Sidebar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1943.28 ▲0.76
Dashboard /wp-admin3.65 ▲0.3450.68 ▼1.11
Posts /wp-admin/edit.php3.76 ▲0.4052.82 ▼0.09
Add New Post /wp-admin/post-new.php6.22 ▲0.34101.93 ▼0.35
Media Library /wp-admin/upload.php3.57 ▲0.3436.74 ▼1.19
Social Share Buttons(CSBWFS) /wp-admin/options-general.php?page=csbwfs-settings3.6850.73

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Custom Share Buttons with Floating Sidebar
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.16 ▼1.221.72 ▼0.3044.74 ▼4.02
Dashboard /wp-admin2,224 ▲364.91 ▼0.97109.00 ▲0.1443.32 ▼2.75
Posts /wp-admin/edit.php2,107 ▲152.01 ▼0.0239.97 ▼5.0534.76 ▼2.93
Add New Post /wp-admin/post-new.php1,554 ▲4018.40 ▲1.00606.60 ▼47.9050.81 ▼8.37
Media Library /wp-admin/upload.php1,400 ▲154.20 ▼0.0195.55 ▼14.5641.72 ▼2.35
Social Share Buttons(CSBWFS) /wp-admin/options-general.php?page=csbwfs-settings3,59517.74599.0087.54

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Csbwfs_Class::csbwfs_uninstall() should not be called statically
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/custom-share-buttons-with-floating-sidebar/lib/settings.php:8

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

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

custom-share-buttons-with-floating-sidebar/custom-share-buttons-with-floating-sidebar.php 92% from 13 tests

The entry point to "Custom Share Buttons with Floating Sidebar" version 4.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 147 characters long)

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
Everything looks great! No dangerous files found in this plugin1,307 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP5872251,123
CSS2827120
JavaScript15746
SVG16018

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity8.50
▷ Minimum class complexity2.00
▷ Maximum class complexity15.00
Average method complexity2.15
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods430.77%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
22 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/ml.png0.45KB0.20KB▼ 56.33%
images/pinit.png2.11KB1.12KB▼ 46.66%
images/minify-social.png7.83KB8.22KB0.00%
images/in.png1.25KB0.47KB▼ 62.33%
images/overlay.png0.11KB0.09KB▼ 12.84%