84% wpsso-rrssb

Code Review | WPSSO Ridiculously Responsive Social Sharing Buttons (RRSSB)

WordPress plugin WPSSO Ridiculously Responsive Social Sharing Buttons (RRSSB) scored84%from 54 tests.

About plugin

  • Plugin page: wpsso-rrssb
  • Plugin version: 11.0.0
  • PHP compatiblity: 7.2.34+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.4.1
  • WordPress version: 6.3.1
  • First release: Jul 28, 2015
  • Latest release: Nov 9, 2023
  • Number of updates: 2,500
  • Update frequency: every 0.7 days
  • Top authors: jsmoriss (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

200+ active /59,207 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
Installer ran successfully

Server metrics [RAM: ▲0.23MB] [CPU: ▼4.54ms] Passed 4 tests

An overview of server-side resources used by WPSSO Ridiculously Responsive Social Sharing Buttons (RRSSB)
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2241.04 ▼0.69
Dashboard /wp-admin3.59 ▲0.2448.16 ▼13.66
Posts /wp-admin/edit.php3.64 ▲0.2850.23 ▲2.52
Add New Post /wp-admin/post-new.php6.11 ▲0.2297.71 ▼2.59
Media Library /wp-admin/upload.php3.45 ▲0.2233.89 ▼1.21

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 64 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

WPSSO Ridiculously Responsive Social Sharing Buttons (RRSSB): an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3414.67 ▲0.311.94 ▲0.2243.44 ▼0.43
Dashboard /wp-admin2,198 ▲185.49 ▼0.11104.21 ▲13.1443.95 ▲1.76
Posts /wp-admin/edit.php2,109 ▲121.95 ▼0.0544.62 ▲9.2938.18 ▲5.39
Add New Post /wp-admin/post-new.php1,532 ▲623.86 ▲0.57627.52 ▼52.5163.73 ▲12.34
Media Library /wp-admin/upload.php1,409 ▲64.17 ▲0.0797.50 ▼3.9342.12 ▼3.27

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Please fix the following
  • 32× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/wpsso-rrssb/lib/share/pinterest.php
    • > /wp-content/plugins/wpsso-rrssb/lib/filters-options.php
    • > /wp-content/plugins/wpsso-rrssb/lib/integ/ecom/woocommerce.php
    • > /wp-content/plugins/wpsso-rrssb/gettext/gettext-lib-config.php
    • > /wp-content/plugins/wpsso-rrssb/lib/register.php
    • > /wp-content/plugins/wpsso-rrssb/lib/filters-upgrade.php
    • > /wp-content/plugins/wpsso-rrssb/lib/actions.php
    • > /wp-content/plugins/wpsso-rrssb/lib/share/facebook.php
    • > /wp-content/plugins/wpsso-rrssb/lib/filters-messages.php
    • > /wp-content/plugins/wpsso-rrssb/lib/shortcode/sharing.php

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

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can look at the official readme.txt

wpsso-rrssb/wpsso-rrssb.php Passed 13 tests

The main PHP file in "WPSSO Ridiculously Responsive Social Sharing Buttons (RRSSB)" ver. 11.0.0 adds more information about the plugin and also serves as the entry point for this plugin
135 characters long description:
Ridiculously Responsive (SVG) Social Sharing Buttons for your content, excerpts, CSS sidebar, widget, shortcode, templates, and editor.

Code Analysis Passed 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 detected4,337 lines of code in 51 files:
LanguageFilesBlank linesComment linesLines of code
PHP331,6285903,206
CSS103541428
PO File1119133320
JavaScript26853257
HTML455075
Markdown126051

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity10.55
▷ Minimum class complexity2.00
▷ Maximum class complexity116.00
Average method complexity3.19
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes40
▷ Abstract classes25.00%
▷ Concrete classes3895.00%
▷ Final classes00.00%
Methods173
▷ Static methods179.83%
▷ Public methods15790.75%
▷ Protected methods84.62%
▷ Private methods84.62%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants7
▷ Global constants7100.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
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon-256x256.png38.60KB20.14KB▼ 47.82%
images/icon-128x128.png13.83KB6.58KB▼ 52.40%