73% stylish-social-share

Code Review | Stylish Social Share

WordPress plugin Stylish Social Share scored 73% from 54 tests.

About plugin

  • Plugin page: stylish-social-share
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.9
  • WordPress version: 6.3.1
  • First release: Dec 9, 2015
  • Latest release: Nov 9, 2017
  • Number of updates: 5
  • Update frequency: every 140.4 days
  • Top authors: WPManiax (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 2,785 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.17ms] Passed 4 tests

Server-side resources used by Stylish Social Share
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.78 ▼4.09
Dashboard /wp-admin3.36 ▲0.0545.54 ▼0.23
Posts /wp-admin/edit.php3.47 ▲0.1147.61 ▼4.39
Add New Post /wp-admin/post-new.php5.96 ▲0.0791.79 ▲4.51
Media Library /wp-admin/upload.php3.28 ▲0.0533.21 ▼3.95
Stylish Social Share /wp-admin/options-general.php?page=stylish-social-share-settings3.2231.87

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Stylish Social Share
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,922 ▲18713.58 ▼0.795.68 ▲4.0041.62 ▲1.42
Dashboard /wp-admin2,218 ▲305.86 ▲0.01105.17 ▲6.3642.51 ▲7.40
Posts /wp-admin/edit.php2,101 ▲122.00 ▼0.0340.19 ▲4.3334.43 ▲2.03
Add New Post /wp-admin/post-new.php1,529 ▲123.29 ▲0.12606.41 ▼95.4459.99 ▲5.80
Media Library /wp-admin/upload.php1,403 ▲124.17 ▼0.0296.44 ▼0.0841.24 ▼6.56
Stylish Social Share /wp-admin/options-general.php?page=stylish-social-share-settings1,3461.8731.1429.08

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=stylish-social-share-settings
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=stylish-social-share-settings
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 0% 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
Please fix the following
  • 14× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/stylish-social-share/admin/settings/themes/theme6.php
    • > /wp-content/plugins/stylish-social-share/admin/settings/themes/theme3d0.php
    • > /wp-content/plugins/stylish-social-share/public/partials/stylish-social-share-public-display.php
    • > /wp-content/plugins/stylish-social-share/admin/settings/themes/theme3d1.php
    • > /wp-content/plugins/stylish-social-share/admin/settings/themes/theme4.php
    • > /wp-content/plugins/stylish-social-share/admin/settings/themes/theme2.php
    • > /wp-content/plugins/stylish-social-share/admin/settings/themes/theme1.php
    • > /wp-content/plugins/stylish-social-share/admin/partials/stylish-social-share-admin-display.php
    • > /wp-content/plugins/stylish-social-share/admin/settings/themes/theme0.php
    • > /wp-content/plugins/stylish-social-share/admin/settings/themes/theme7.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/stylish-social-share/admin/settings/settings.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: social url share, social share, social media share, social network share, share counter...

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

The main PHP file in "Stylish Social Share" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
94 characters long description:
Add nice looking skinnable social share bar to your Wordpress site. 12 designs to choose from.

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
Everything looks great! No dangerous files found in this plugin2,827 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
CSS426111,234
PHP27310749927
SVG100640
JavaScript462826

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity11.22
▷ Minimum class complexity1.00
▷ Maximum class complexity65.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods51
▷ Static methods35.88%
▷ Public methods4588.24%
▷ Protected methods00.00%
▷ Private methods611.76%
Functions7
▷ Named functions7100.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
There are no PNG files in this plugin