83% my-social-share-buttons

Code Review | My Social Share Buttons

WordPress plugin My Social Share Buttons scored83%from 54 tests.

About plugin

  • Plugin page: my-social-share-b...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 3, 2014
  • Latest release: Nov 19, 2014
  • Number of updates: 12
  • Update frequency: every 6.1 days
  • Top authors: awd_team (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,438 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.49ms] Passed 4 tests

Analyzing server-side resources used by My Social Share Buttons
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.40 ▲0.67
Dashboard /wp-admin3.32 ▲0.0146.35 ▼1.35
Posts /wp-admin/edit.php3.37 ▲0.0144.93 ▼1.76
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.37 ▼10.00
Media Library /wp-admin/upload.php3.24 ▲0.0133.42 ▼0.84

Server storage [IO: ▲0.05MB] [DB: ▲0.31MB] Passed 3 tests

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for My Social Share Buttons
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.25 ▼1.141.90 ▲0.2045.32 ▲2.87
Dashboard /wp-admin2,206 ▲144.83 ▼0.11102.82 ▼1.2041.11 ▼2.84
Posts /wp-admin/edit.php2,086 ▼32.06 ▲0.0334.61 ▼0.5436.85 ▼0.78
Add New Post /wp-admin/post-new.php1,534 ▼223.39 ▲0.13661.68 ▼11.1151.54 ▼5.81
Media Library /wp-admin/upload.php1,391 ▲94.24 ▲0.12101.11 ▲1.1144.38 ▲0.82

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/my-social-share-buttons/my-social-share-buttons.php:59

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (14 tag instead of maximum 10)
  • Requires at least: Invalid version format
  • Screenshots: Screenshot #1 (live mode) image required
You can look at the official readme.txt

my-social-share-buttons/my-social-share-buttons.php Passed 13 tests

The main file in "My Social Share Buttons" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
135 characters long description:
My Social Share Buttons - Facebook Like, Twitter, Google +, Buffer, LinkedIn, StumbleUpon, Pinterest Share Buttons after post contents.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin78 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1112878

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png40.97KB16.08KB▼ 60.75%