68% wp-social-reviews

Code Review | WP Social Ninja – Best Social Feed, Reviews Plugin for WordPress (Google Reviews, Photo Feeds, Chat & More)

WordPress plugin WP Social Ninja – Best Social Feed, Reviews Plugin for WordPress (Google Reviews, Photo Feeds, Chat & More) scored68%from 54 tests.

About plugin

  • Plugin page: wp-social-reviews
  • Plugin version: 3.12.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.4
  • WordPress version: 6.3.1
  • First release: Jan 2, 2020
  • Latest release: Nov 28, 2023
  • Number of updates: 77
  • Update frequency: every 18.5 days
  • Top authors: techjewel (44.16%)devutpol (41.56%)adreastrian (16.88%)

Code review

54 tests

User reviews

37 reviews

Install metrics

10,000+ active /147,917 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.55MB] [CPU: ▼7.11ms] Passed 4 tests

This is a short check of server-side resources used by WP Social Ninja – Best Social Feed, Reviews Plugin for WordPress (Google Reviews, Photo Feeds, Chat & More)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.07 ▲0.6041.79 ▼3.50
Dashboard /wp-admin3.87 ▲0.5349.35 ▼14.52
Posts /wp-admin/edit.php3.93 ▲0.5749.32 ▲1.86
Add New Post /wp-admin/post-new.php6.65 ▲0.77100.12 ▼11.12
Media Library /wp-admin/upload.php3.74 ▲0.5036.45 ▲0.70

Server storage [IO: ▲7.39MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 502 new files
Database: 3 new tables, 7 new options
New tables
wp_wpsr_caches
wp_wpsr_reviews
wp_wpsr_optimize_images
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_wpsn-widget
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

WP Social Ninja – Best Social Feed, Reviews Plugin for WordPress (Google Reviews, Photo Feeds, Chat & More): an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,870 ▲9814.71 ▲0.351.67 ▼0.4238.20 ▼5.42
Dashboard /wp-admin2,275 ▲945.64 ▼0.0489.10 ▼9.3741.24 ▼0.09
Posts /wp-admin/edit.php2,184 ▲812.02 ▲0.0640.21 ▲3.6637.34 ▲1.50
Add New Post /wp-admin/post-new.php6,412 ▲4,88627.80 ▲4.90899.08 ▲264.6257.32 ▲7.74
Media Library /wp-admin/upload.php1,478 ▲754.16 ▼0.0897.84 ▼0.4841.59 ▲0.20
Tools /wp-admin/admin.php?page=wpsocialninja.php#/tools/export-reviews1,4288.88218.3131.81
Reviews /wp-admin/admin.php?page=wpsocialninja.php#/reviews1,4339.07201.0727.95
Chat Widgets /wp-admin/admin.php?page=wpsocialninja.php#/chat-widgets1,4338.81116.3029.06
Testimonials /wp-admin/admin.php?page=wpsocialninja.php#/testimonials2,00115.13426.08102.60
Support /wp-admin/admin.php?page=wpsocialninja.php#/support1,8568.79112.1136.49
Notification Popups /wp-admin/admin.php?page=wpsocialninja.php#/notifications2,00015.11376.4163.02
Settings /wp-admin/admin.php?page=wpsocialninja.php#/settings/advance-settings1,72710.37131.0763.92
Platforms /wp-admin/admin.php?page=wpsocialninja.php#/1,8139.87130.1245.73
Templates /wp-admin/admin.php?page=wpsocialninja.php#/templates1,4368.91108.0124.01

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie tables detected upon uninstall: 3 tables
    • wp_wpsr_reviews
    • wp_wpsr_optimize_images
    • wp_wpsr_caches
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_wpsn-widget
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • 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 smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-social-reviews/app/Views/admin/menu.php
  • 206× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'WPSocialReviews\\Framework\\Pagination\\PaginatorInterface' not found in wp-content/plugins/wp-social-reviews/vendor/wpfluent/framework/src/WPFluent/Pagination/LengthAwarePaginatorInterface.php:5
    • > PHP Notice
      Undefined variable: external_platform in wp-content/plugins/wp-social-reviews/app/Views/public/feeds-templates/twitter/elements/tweet-external-link.php on line 5
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/wp-social-reviews/app/Views/public/chat-templates/elements/bubble-icon.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'FLBuilderModule' not found in wp-content/plugins/wp-social-reviews/app/Services/Widgets/Beaver/Reviews/ReviewsWidget.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'FLBuilderModule' not found in wp-content/plugins/wp-social-reviews/app/Services/Widgets/Beaver/YouTube/YouTubeWidget.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WPSocialReviews\\Framework\\Database\\Orm\\Relations\\HasOneOrMany' not found in wp-content/plugins/wp-social-reviews/vendor/wpfluent/framework/src/WPFluent/Database/Orm/Relations/HasOne.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WPSocialReviews\\App\\Http\\Controllers\\Controller' not found in wp-content/plugins/wp-social-reviews/app/Http/Controllers/SettingsController.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'WPSocialReviews\\Framework\\Database\\ConnectionInterface' not found in wp-content/plugins/wp-social-reviews/vendor/wpfluent/framework/src/WPFluent/Database/Query/WPDBConnection.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'WPSocialReviews\\App\\Services\\GlobalSettings' not found in wp-content/plugins/wp-social-reviews/app/Views/public/reviews-templates/elements/reviewer-rating.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WPSocialReviews\\App\\Http\\Policies\\BasePolicy' not found in wp-content/plugins/wp-social-reviews/app/Http/Policies/TemplatePolicy.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt might help

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

The main PHP file in "WP Social Ninja – Best Social Feed, Reviews Plugin for WordPress (Google Reviews, Photo Feeds, Chat & More)" ver. 3.12.0 adds more information about the plugin and also serves as the entry point for this plugin
133 characters long description:
Display your social feeds, reviews and chat widgets automatically and easily on your website with the all-in-one social media plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected45,002 lines of code in 362 files:
LanguageFilesBlank linesComment linesLines of code
PHP3147,94913,77744,372
SVG26121479
JSON300132
CSS9009
JavaScript9009
Markdown1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity18.94
▷ Minimum class complexity1.00
▷ Maximum class complexity197.00
Average method complexity2.62
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces43
Interfaces16
Traits10
Classes189
▷ Abstract classes136.88%
▷ Concrete classes17693.12%
▷ Final classes00.00%
Methods2,396
▷ Static methods24710.31%
▷ Public methods1,95581.59%
▷ Protected methods37415.61%
▷ Private methods672.80%
Functions149
▷ Named functions74.70%
▷ Anonymous functions14295.30%
Constants23
▷ Global constants1043.48%
▷ Class constants1356.52%
▷ Public constants13100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
123 PNG files occupy 1.91MB with 0.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/icon/icon-telegram.png9.61KB10.04KB0.00%
assets/images/template/instagram-placeholder-template.png28.93KB30.13KB0.00%
assets/images/icon/icon-booking.com.png6.79KB7.06KB0.00%
assets/images/template/editor-placeholder.png23.90KB12.92KB▼ 45.91%
assets/images/icon/wp-social-ninja-email-logo.png6.08KB2.93KB▼ 51.80%