84% social-sharing-block

Code Review | Social Sharing Block

WordPress plugin Social Sharing Block scored84%from 54 tests.

About plugin

  • Plugin page: social-sharing-block
  • Plugin version: 0.9.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.3
  • WordPress version: 6.3.1
  • First release: Jan 17, 2022
  • Latest release: Aug 13, 2023
  • Number of updates: 19
  • Update frequency: every 30.2 days
  • Top authors: ndiego (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

3,000+ active /18,481 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.28ms] Passed 4 tests

A check of server-side resources used by Social Sharing Block
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.26 ▼8.28
Dashboard /wp-admin3.34 ▲0.0449.90 ▼6.45
Posts /wp-admin/edit.php3.39 ▲0.0353.23 ▼4.13
Add New Post /wp-admin/post-new.php5.93 ▲0.0489.92 ▼10.26
Media Library /wp-admin/upload.php3.26 ▲0.0338.46 ▼0.24

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Social Sharing Block
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲5614.33 ▼0.222.02 ▲0.0541.33 ▼3.70
Dashboard /wp-admin2,198 ▲215.61 ▼0.0686.83 ▼16.1539.58 ▼2.58
Posts /wp-admin/edit.php2,097 ▼31.97 ▼0.0339.95 ▲2.4637.53 ▲4.17
Add New Post /wp-admin/post-new.php1,549 ▲2323.23 ▲0.15673.05 ▼1.0637.15 ▼11.82
Media Library /wp-admin/upload.php1,400 ▼34.20 ▼0.0897.25 ▼3.7545.51 ▲1.91

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

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

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× 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/social-sharing-block/social-sharing-block.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: block, social icon, share, social, social share

social-sharing-block/social-sharing-block.php Passed 13 tests

The principal PHP file in "Social Sharing Block" v. 0.9.0 is loaded by WordPress automatically on each request
52 characters long description:
Effortlessly add social share icons to your website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected393 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions7100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin