78% ss-bar

Code Review | Social Share - Bar

WordPress plugin Social Share - Bar scored78%from 54 tests.

About plugin

  • Plugin page: ss-bar
  • Plugin version: 2.0.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8
  • WordPress version: 6.3.1
  • First release: Apr 2, 2020
  • Latest release: Aug 21, 2021
  • Number of updates: 19
  • Update frequency: every 26.6 days
  • Top authors: santosh199 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /567 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▲0.12ms] Passed 4 tests

This is a short check of server-side resources used by Social Share - Bar
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.63 ▼0.76
Dashboard /wp-admin3.32 ▲0.0250.03 ▼2.65
Posts /wp-admin/edit.php3.44 ▲0.0850.94 ▲0.03
Add New Post /wp-admin/post-new.php5.90 ▲0.0291.86 ▲4.95
Media Library /wp-admin/upload.php3.25 ▲0.0238.51 ▲3.85

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
ss_share_settings
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Social Share - Bar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲5014.53 ▲0.162.43 ▲0.9039.01 ▼5.64
Dashboard /wp-admin2,208 ▲315.62 ▲0.0496.40 ▲5.9143.62 ▲4.91
Posts /wp-admin/edit.php2,116 ▲132.02 ▲0.0540.04 ▼1.0338.99 ▲2.84
Add New Post /wp-admin/post-new.php1,539 ▲1323.09 ▲0.28656.67 ▼22.2453.87 ▼8.47
Media Library /wp-admin/upload.php1,410 ▲104.23 ▲0.04100.87 ▼20.1344.27 ▼0.91

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • ss_share_settings
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 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
Please fix the following
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/ss-bar/includes/views/dashboard-template.php
    • > /wp-content/plugins/ss-bar/ss-bar.php
    • > /wp-content/plugins/ss-bar/includes/views/page-template.php
  • 8× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      include(SSBR_PATHincludes/views/designs/default.php): failed to open stream: No such file or directory in wp-content/plugins/ss-bar/includes/views/page-template.php on line 22
    • > PHP Warning
      include(): Failed opening 'SSBR_PATHincludes/views/designs/default.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/ss-bar/includes/views/page-template.php on line 22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ss-bar/includes/views/designs/design1.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ss-bar/includes/class/class-setting.php:11
    • > PHP Warning
      Use of undefined constant SSBR_PATH - assumed 'SSBR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ss-bar/includes/views/page-template.php on line 22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ss-bar/includes/views/designs/default.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ss-bar/includes/views/register-setting.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ss-bar/includes/views/designs/design2.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% 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:
  • Screenshots: Add descriptions for screenshots #1, #2 in ss-bar/assets to your readme.txt
Please take inspiration from this readme.txt

ss-bar/ss-bar.php 85% from 13 tests

The entry point to "Social Share - Bar" version 2.0.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "5.2")
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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
Good job! No executable or dangerous file extensions detected404 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP919135304
CSS130100

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity8.00
▷ Minimum class complexity6.00
▷ Maximum class complexity10.00
Average method complexity1.78
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin