84% simple-social-share

Code Review | Simple Social Share

WordPress plugin Simple Social Share scored 84% from 54 tests.

About plugin

  • Plugin page: simple-social-share
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.3-4.4.1
  • WordPress version: 6.3.1
  • First release: Jun 15, 2014
  • Latest release: Jan 16, 2016
  • Number of updates: 13
  • Update frequency: every 44.9 days
  • Top authors: perials.com (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

2,000+ active / 48,288 total downloads

Benchmarks

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
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼0.27ms] Passed 4 tests

Analyzing server-side resources used by Simple Social Share
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0840.86 ▼2.43
Dashboard /wp-admin3.38 ▲0.0849.05 ▲1.60
Posts /wp-admin/edit.php3.43 ▲0.0746.86 ▼2.97
Add New Post /wp-admin/post-new.php5.98 ▲0.0995.35 ▲5.25
Media Library /wp-admin/upload.php3.30 ▲0.0735.30 ▲2.70
Simple Social Share /wp-admin/options-general.php?page=simple-social-share-settings3.2729.75

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Simple Social Share
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,896 ▲13913.71 ▼1.045.92 ▲3.2540.46 ▼0.93
Dashboard /wp-admin2,214 ▲264.87 ▼0.04113.02 ▼3.4339.75 ▼4.82
Posts /wp-admin/edit.php2,097 ▲52.04 ▲0.0042.00 ▼0.3035.27 ▼2.70
Add New Post /wp-admin/post-new.php1,530 ▲618.46 ▼4.90609.17 ▼13.2053.99 ▼16.89
Media Library /wp-admin/upload.php1,399 ▲174.17 ▼0.15101.30 ▼2.5843.37 ▼0.94
Simple Social Share /wp-admin/options-general.php?page=simple-social-share-settings1,0211.8829.9531.63

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • s3_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/simple-social-share/simple-social-share.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Admin panel), #2 (Front End appearance for small button style with count), #3 (Front End appearance for small button style without count), #4 (Front End appearance for square button style), #5 (Front End appearance for rounded corner button style), #6 (Front End appearance for circular buttons)
The official readme.txt might help

simple-social-share/simple-social-share.php Passed 13 tests

"Simple Social Share" version 3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
76 characters long description:
A simple plugin for displaying social media icons to share Post/Page content

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 plugin483 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP65918369
CSS45598
JavaScript25616

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity39.00
▷ Minimum class complexity39.00
▷ Maximum class complexity39.00
Average method complexity3.92
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.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
12 PNG files occupy 0.18MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/horizontal-w-c-square.png4.26KB1.65KB▼ 61.30%
screenshot-4.png13.25KB5.09KB▼ 61.56%
images/horizontal-w-c-r-border.png5.36KB2.27KB▼ 57.72%
screenshot-6.png18.04KB6.82KB▼ 62.19%
images/horizontal-with-count.png7.02KB3.55KB▼ 49.40%