78% wp-social-stream

Code Review | WP Social Stream

WordPress plugin WP Social Stream scored78%from 54 tests.

About plugin

  • Plugin page: wp-social-stream
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9.1
  • WordPress version: 6.3.1
  • First release: Apr 9, 2014
  • Latest release: Jun 25, 2014
  • Number of updates: 6
  • Update frequency: every 99.7 days
  • Top authors: sagarseth9 (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

40+ active /3,898 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.01ms] Passed 4 tests

An overview of server-side resources used by WP Social Stream
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0236.50 ▼2.57
Dashboard /wp-admin3.35 ▲0.0447.13 ▼3.39
Posts /wp-admin/edit.php3.40 ▲0.0446.40 ▼0.40
Add New Post /wp-admin/post-new.php5.95 ▲0.0680.67 ▼17.66
Media Library /wp-admin/upload.php3.27 ▲0.0435.72 ▲0.07
WP Social Stream /wp-admin/options-general.php?page=wp-social-stream3.2131.35

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
wpss_styles
widget_recent-comments
can_compress_scripts
lifestream_data
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Social Stream
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,939 ▲17813.65 ▼0.708.87 ▲7.0445.02 ▲4.99
Dashboard /wp-admin2,233 ▲655.83 ▲0.2486.85 ▼0.0540.33 ▼4.77
Posts /wp-admin/edit.php2,140 ▲402.31 ▲0.2934.13 ▼1.2931.08 ▼4.26
Add New Post /wp-admin/post-new.php1,556 ▲3023.27 ▼0.26672.71 ▼2.5736.24 ▼18.01
Media Library /wp-admin/upload.php1,438 ▲414.51 ▲0.3295.11 ▼6.9641.57 ▼3.85
WP Social Stream /wp-admin/options-general.php?page=wp-social-stream1,7412.0826.8729.66

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 8 options
    • db_upgraded
    • wpss_styles
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • lifestream_data
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp-social-stream
    • > Notice in wp-content/plugins/wp-social-stream/admin.php+142
    Undefined index: tab

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
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wp-social-stream/wp-social-stream.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-social-stream/admin.php:68

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: Screenshot #1 (Check out [the demo](http://magnigenie.com/wp-social-stream-show-stream-online-activity/) for more screenshots and demo .) image not found
The official readme.txt is a good inspiration

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

This is the main PHP file of "WP Social Stream" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
115 characters long description:
By using this plugin you can easily get your online activity from lots of different sites and display on your site.

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
There were no executable files found in this plugin391 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP31388224
JavaScript432484
CSS20083

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png57.36KB22.39KB▼ 60.97%