10% virtual-brick-social-bar-side-widget

Code Review | VB Social Share Widget

WordPress plugin VB Social Share Widget scored 10% from 54 tests.

About plugin

  • Plugin page: virtual-brick-soc...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2
  • WordPress version: 6.3.1
  • First release: Feb 1, 2013
  • Latest release: Apr 26, 2015
  • Number of updates: 23
  • Update frequency: every 35.5 days
  • Top authors: toledoroy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,450 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • The plugin cannot be installed
    • > Parse error in wp-content/plugins/virtual-brick-social-bar-side-widget/widget.php+90
    syntax error, unexpected end of file

Server metrics [RAM: ▲0.00MB] [CPU: ▼0.84ms] Passed 4 tests

This is a short check of server-side resources used by VB Social Share Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.14 ▼11.31
Dashboard /wp-admin3.31 ▲0.0055.14 ▲10.08
Posts /wp-admin/edit.php3.36 ▲0.0049.26 ▲1.62
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.54 ▲6.38
Media Library /wp-admin/upload.php3.23 ▲0.0035.10 ▼0.04

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for VB Social Share Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.19 ▼1.382.02 ▼0.2437.51 ▼2.78
Dashboard /wp-admin2,206 ▲184.85 ▼1.03113.50 ▲6.0243.44 ▲0.41
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.1640.60 ▲2.3235.95 ▲1.85
Add New Post /wp-admin/post-new.php1,529 ▼1323.19 ▲5.02682.81 ▲74.5859.32 ▲6.96
Media Library /wp-admin/upload.php1,391 ▲34.20 ▼0.0295.23 ▼11.3242.89 ▲0.09

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/virtual-brick-social-bar-side-widget/widget.php on line 90

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

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: like, twitter, facebook, pinterest, google 1...

virtual-brick-social-bar-side-widget/widget.php 92% from 13 tests

"VB Social Share Widget" version 2.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("virtual-brick-social-bar-side-widget.php" instead of "widget.php")

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
Everything looks great! No dangerous files found in this plugin107 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3913104
Pascal1053

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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