80% plain-social-sharing-buttons

Code Review | Plain Social Sharing Buttons

WordPress plugin Plain Social Sharing Buttons scored 80% from 54 tests.

About plugin

  • Plugin page: plain-social-shar...
  • Plugin version: 0.6.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-5.1
  • WordPress version: 5.8.1
  • First release: Feb 18, 2019
  • Latest release: Mar 1, 2019
  • Number of updates: 15
  • Update frequency: every 0.7 days
  • Top authors: cleancodegr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 573 total downloads


Plugin footprint 65% 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.17MB] [CPU: ▼171.04ms] Passed 4 tests

This is a short check of server-side resources used by Plain Social Sharing Buttons
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.97 ▲0.2536.58 ▲14.43
Dashboard /wp-admin3.23 ▲0.1755.39 ▲4.76
Posts /wp-admin/edit.php3.28 ▲0.1747.60 ▲9.58
Add New Post /wp-admin/post-new.php5.59 ▲0.1699.74 ▼685.11
Media Library /wp-admin/upload.php3.17 ▲0.1730.50 ▼13.39
Plain Social Sharing Buttons /wp-admin/options-general.php?page=plain_social_sharing3.1430.08

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

Plain Social Sharing Buttons: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,717 ▲12115.88 ▲0.3011.41 ▼0.4754.73 ▲5.42
Dashboard /wp-admin2,975 ▲415.88 ▼0.20170.14 ▲24.13131.93 ▲16.57
Posts /wp-admin/edit.php2,744 ▲52.72 ▼0.0078.14 ▲9.84102.36 ▲17.93
Add New Post /wp-admin/post-new.php1,686 ▲18618.79 ▲0.21395.39 ▲24.14108.59 ▼15.80
Media Library /wp-admin/upload.php1,753 ▼575.00 ▼0.03158.03 ▼1.49126.26 ▼0.12
Plain Social Sharing Buttons /wp-admin/options-general.php?page=plain_social_sharing1,9242.3158.70108.27

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/plain-social-sharing-buttons/uninstall.php+44
    Undefined variable: cc_plain_social_settings
  • Zombie WordPress options were found after uninstall: 1 option
    • _ccPlainSocial

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: social floating bar, social sharing, page facebook share, social media share, social share bar...

plain-social-sharing-buttons/cc-plain-social-shares.php 92% from 13 tests

"Plain Social Sharing Buttons" version 0.6.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("plain-social-sharing-buttons.php" instead of "cc-plain-social-shares.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin2,821 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
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 functions41100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
There are no PNG files in this plugin