10% bosssocial

Code Review | BossSocial

WordPress plugin BossSocial scored10%from 54 tests.

About plugin

  • Plugin page: bosssocial
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5
  • WordPress version: 6.3.1
  • First release: Dec 20, 2012
  • Latest release: May 23, 2014
  • Number of updates: 11
  • Update frequency: every 47.2 days
  • Top authors: The-Boss (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,289 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/bosssocial/boss-social.php+173
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼50.63ms] Passed 4 tests

An overview of server-side resources used by BossSocial
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.433.95 ▼37.93
Dashboard /wp-admin2.05 ▼1.266.53 ▼41.83
Posts /wp-admin/edit.php2.05 ▼1.316.03 ▼39.76
Add New Post /wp-admin/post-new.php2.05 ▼3.845.25 ▼83.00
Media Library /wp-admin/upload.php2.05 ▼1.185.38 ▼28.95

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_boss_social_icons_widget

Browser metrics Passed 4 tests

A check of browser resources used by BossSocial
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲8413.32 ▼1.054.33 ▲2.2640.90 ▼1.62
Dashboard /wp-admin2,220 ▲325.85 ▲0.01104.04 ▲3.2979.89 ▲39.29
Posts /wp-admin/edit.php2,103 ▲112.00 ▼0.0539.58 ▼3.0836.49 ▲2.51
Add New Post /wp-admin/post-new.php1,529 ▲1517.51 ▲0.06753.42 ▲143.3057.53 ▲12.38
Media Library /wp-admin/upload.php1,405 ▲204.18 ▲0.0297.96 ▲3.0479.09 ▲38.63

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/bosssocial/boss-social.php+173
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_boss_social_icons_widget
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bosssocial/boss-social-admin.php:806
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bosssocial/boss-social.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Screenshot #1 (screenshot-1.jpg) image missing
The official readme.txt is a good inspiration

bosssocial/boss-social.php 92% from 13 tests

The primary PHP file in "BossSocial" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bosssocial.php" instead of "boss-social.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 detected833 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP233551613
CSS28710220

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity8.25
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
27 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/facebook.png2.93KB0.30KB▼ 89.74%
images/soundcloud.png3.02KB0.43KB▼ 85.65%
images/delicious.png2.96KB0.26KB▼ 91.07%
images/pinterest.png3.10KB0.56KB▼ 81.99%
images/flickr.png0.35KB0.28KB▼ 20.79%