68% social-web-suite

Code Review | Social Web Suite - Social Media Auto Post, Social Media Auto Publish and Schedule now with Gutenberg and WooCommerce support

WordPress plugin Social Web Suite - Social Media Auto Post, Social Media Auto Publish and Schedule now with Gutenberg and WooCommerce support scored68%from 54 tests.

About plugin

  • Plugin page: social-web-suite
  • Plugin version: 3.1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.0-5.8.2
  • WordPress version: 6.3.1
  • First release: Feb 2, 2017
  • Latest release: Nov 12, 2021
  • Number of updates: 103
  • Update frequency: every 16.9 days
  • Top authors: hypestudio (60.19%)dejanmarkovic (40.78%)

Code review

54 tests

User reviews

11 reviews

Install metrics

1,000+ active /51,677 total downloads

Benchmarks

Plugin footprint 65% 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: ▼7.34ms] Passed 4 tests

Analyzing server-side resources used by Social Web Suite - Social Media Auto Post, Social Media Auto Publish and Schedule now with Gutenberg and WooCommerce support
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.39 ▼1.25
Dashboard /wp-admin3.31 ▼0.0444.53 ▼16.79
Posts /wp-admin/edit.php3.36 ▲0.0046.78 ▲3.08
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.74 ▼9.21
Media Library /wp-admin/upload.php3.23 ▲0.0033.72 ▼2.09

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Social Web Suite - Social Media Auto Post, Social Media Auto Publish and Schedule now with Gutenberg and WooCommerce support
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.17 ▼1.241.72 ▼0.0743.50 ▲0.61
Dashboard /wp-admin2,209 ▲245.91 ▼0.0694.56 ▼16.7840.73 ▼5.46
Posts /wp-admin/edit.php2,089 ▼32.00 ▲0.0135.08 ▼1.7935.78 ▲0.36
Add New Post /wp-admin/post-new.php1,533 ▲1422.78 ▼0.35670.70 ▼24.5267.30 ▲13.85
Media Library /wp-admin/upload.php1,388 ▲64.23 ▲0.0693.31 ▼14.7942.06 ▼1.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/social-web-suite/includes/libs/class-socialwebsuite-setup.php+92
    Use of undefined constant WP_UNINSTALL_PLUGIN - assumed 'WP_UNINSTALL_PLUGIN' (this will throw an Error in a future version of PHP)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/social-web-suite/includes/admin/templates/admin-sharing-notice.php
    • > /wp-content/plugins/social-web-suite/social-web-suite.php
    • > /wp-content/plugins/social-web-suite/includes/admin/templates/admin-sharing-notice-not-public.php
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/social-web-suite/includes/admin/templates/post-meta-box.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/social-web-suite/includes/admin/templates/settings.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/social-web-suite/includes/admin/templates/admin-rate-notice.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/social-web-suite/includes/admin/templates/admin-notice.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/social-web-suite/includes/admin/templates/admin-optin.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 132 tag instead of maximum 10
The official readme.txt is a good inspiration

social-web-suite/social-web-suite.php 92% from 13 tests

The main file in "Social Web Suite - Social Media Auto Post, Social Media Auto Publish and Schedule now with Gutenberg and WooCommerce support" v. 3.1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 236 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin7,984 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP171,2277764,028
PO File87768882,456
CSS27091,056
JavaScript25336415
SVG10014
JSON10011
Markdown1304

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity84.33
▷ Minimum class complexity11.00
▷ Maximum class complexity270.00
Average method complexity4.27
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods153
▷ Static methods9864.05%
▷ Public methods13588.24%
▷ Protected methods00.00%
▷ Private methods1811.76%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
7 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/instagram_acc_small.png4.19KB2.45KB▼ 41.59%
images/twitter_acc_small.png7.25KB2.70KB▼ 62.76%
images/sws-logo-small.png6.82KB3.31KB▼ 51.43%
images/facebook_acc_small.png5.55KB2.47KB▼ 55.45%
images/sws-logo.png28.25KB9.22KB▼ 67.37%