79% social-stream

Code Review | Social Stream

WordPress plugin Social Stream scored79%from 54 tests.

About plugin

  • Plugin page: social-stream
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Jul 16, 2015
  • Latest release: Jul 27, 2015
  • Number of updates: 4
  • Update frequency: every 4.3 days
  • Top authors: steve228uk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▲0.23MB] [CPU: ▲0.95ms] Passed 4 tests

An overview of server-side resources used by Social Stream
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2643.99 ▲4.83
Dashboard /wp-admin3.57 ▲0.2649.31 ▲1.79
Posts /wp-admin/edit.php3.62 ▲0.2649.78 ▲2.67
Add New Post /wp-admin/post-new.php6.08 ▲0.2087.34 ▼4.19
Media Library /wp-admin/upload.php3.43 ▲0.2038.92 ▲3.52
Social Stream /wp-admin/options-general.php?page=social_stream3.3933.15

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Social Stream
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲17513.98 ▼0.445.52 ▲3.6445.67 ▼0.03
Dashboard /wp-admin2,213 ▲254.84 ▼0.0696.49 ▼18.8539.25 ▼3.91
Posts /wp-admin/edit.php2,093 ▲12.01 ▼0.0434.11 ▼1.1835.53 ▲2.97
Add New Post /wp-admin/post-new.php1,517 ▼323.71 ▲0.78697.39 ▲19.9553.46 ▼7.87
Media Library /wp-admin/upload.php1,392 ▲14.16 ▼0.0892.54 ▼6.6740.54 ▼5.06
Social Stream /wp-admin/options-general.php?page=social_stream8462.0422.8729.32

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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 detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/social-stream/views/social_stream.php
    • > /wp-content/plugins/social-stream/views/loader.php
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/social-stream/views/settings.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/social-stream/classes/SS_Settings.php:18
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/social-stream/views/social_stream.php on line 2
    • > PHP Notice
      Undefined variable: posts in wp-content/plugins/social-stream/views/social_stream.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: feed, twitter, facebook, posts, social

social-stream/social-stream.php Passed 13 tests

The main file in "Social Stream" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
69 characters long description:
Pull your Twitter, Facebook and WordPress posts into one neat section

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
There were no executable files found in this plugin989 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP12261584979
JavaScript1108
Markdown1002

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity7.18
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity1.97
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes17
▷ Abstract classes211.76%
▷ Concrete classes1588.24%
▷ Final classes00.00%
Methods113
▷ Static methods1210.62%
▷ Public methods9079.65%
▷ Protected methods21.77%
▷ Private methods2118.58%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected