84% socialmediastream

Code Review | SocialMediaStream: Show all your social media network posts in one social media stream.

WordPress plugin SocialMediaStream: Show all your social media network posts in one social media stream. scored84%from 54 tests.

About plugin

  • Plugin page: socialmediastream
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2
  • WordPress version: 6.3.1
  • First release: Aug 30, 2018
  • Latest release: Jul 5, 2019
  • Number of updates: 5
  • Update frequency: every 61.8 days
  • Top authors: socialmediastream (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /914 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.01MB] [CPU: ▲0.21ms] Passed 4 tests

A check of server-side resources used by SocialMediaStream: Show all your social media network posts in one social media stream.
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.04 ▲2.55
Dashboard /wp-admin3.31 ▲0.0149.93 ▼3.19
Posts /wp-admin/edit.php3.36 ▲0.0149.98 ▲1.98
Add New Post /wp-admin/post-new.php5.89 ▲0.0199.76 ▲8.16
Media Library /wp-admin/upload.php3.23 ▲0.0034.48 ▼0.51

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by SocialMediaStream: Show all your social media network posts in one social media stream.
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲8514.76 ▲0.404.70 ▲2.7744.37 ▼0.18
Dashboard /wp-admin2,191 ▲145.50 ▼0.0785.73 ▼13.9436.81 ▼7.03
Posts /wp-admin/edit.php2,102 ▲21.97 ▼0.0339.34 ▲3.4936.53 ▲1.02
Add New Post /wp-admin/post-new.php1,528 ▼323.57 ▲0.53686.06 ▲35.5262.06 ▲15.71
Media Library /wp-admin/upload.php1,399 ▼14.20 ▼0.02105.00 ▲3.6144.31 ▼0.22

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 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/socialmediastream/socialmediastream.php:22

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)
No browser issues were found

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: Please reduce the number of tags, currently 11 tag instead of maximum 10
  • Screenshots: Add descriptions for screenshots #2, #3 in socialmediastream/assets to your readme.txt
Please take inspiration from this readme.txt

socialmediastream/socialmediastream.php Passed 13 tests

Analyzing the main PHP file in "SocialMediaStream: Show all your social media network posts in one social media stream." version 1.0
43 characters long description:
Embed a social media stream into your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected281 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript4116174
PHP1184277
SVG10120
CSS10010

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png5.56KB2.79KB▼ 49.77%
assets/icon-256x256.png7.85KB3.67KB▼ 53.34%