77% social-testimonials-and-reviews-widget

Code Review | Social proof testimonials and reviews by Repuso

WordPress plugin Social proof testimonials and reviews by Repuso scored77%from 54 tests.

About plugin

  • Plugin page: social-testimonia...
  • Plugin version: 5.04
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Aug 23, 2016
  • Latest release: Nov 2, 2023
  • Number of updates: 116
  • Update frequency: every 22.7 days
  • Top authors: neran (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

1,000+ active /48,138 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
Installer ran successfully

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

A check of server-side resources used by Social proof testimonials and reviews by Repuso
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0545.54 ▲2.13
Dashboard /wp-admin3.35 ▲0.0148.94 ▼13.51
Posts /wp-admin/edit.php3.40 ▲0.0549.50 ▼1.18
Add New Post /wp-admin/post-new.php5.95 ▲0.0784.40 ▼3.65
Media Library /wp-admin/upload.php3.28 ▲0.0536.85 ▼2.64
Floating widget /wp-admin/admin.php?page=pagewide_widget3.2935.25
Widgets /wp-admin/admin.php?page=rw_widgets3.3235.19
Reviews /wp-admin/admin.php?page=rw_reviews3.2632.92
Video guides /wp-admin/admin.php?page=rw_overview3.2735.39
Channels /wp-admin/admin.php?page=rw_channels3.2641.39

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Social proof testimonials and reviews by Repuso
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,880 ▲14514.62 ▲0.271.71 ▼0.0641.94 ▼4.25
Dashboard /wp-admin2,289 ▲1155.62 ▼0.0388.22 ▼13.4780.25 ▲36.24
Posts /wp-admin/edit.php2,194 ▲912.01 ▼0.0239.55 ▲3.1735.10 ▼1.94
Add New Post /wp-admin/post-new.php1,762 ▲23422.17 ▼0.80718.37 ▲12.0052.07 ▼0.06
Media Library /wp-admin/upload.php1,485 ▲824.24 ▲0.08101.19 ▲4.1947.90 ▲4.93
Floating widget /wp-admin/admin.php?page=pagewide_widget9652.0223.4628.54
Widgets /wp-admin/admin.php?page=rw_widgets1,8342.9149.0676.07
Reviews /wp-admin/admin.php?page=rw_reviews1,8262.6748.2355.99
Video guides /wp-admin/admin.php?page=rw_overview2,90422.81744.8199.44
Channels /wp-admin/admin.php?page=rw_channels1,8352.6053.2466.12

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/social-testimonials-and-reviews-widget/tmpl/overview.php
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_js() in wp-content/plugins/social-testimonials-and-reviews-widget/tmpl/main.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_url() in wp-content/plugins/social-testimonials-and-reviews-widget/tmpl/floating.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/social-testimonials-and-reviews-widget/tmpl/shortcodes.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === social-testimonials-and-reviews-widget === )
  • Screenshots: Add images for these screenshots: #1 (Some of our widgets), #2 (Create various showcase widgets for your website), #3 (Easy access via Wordpress admin), #4 (Easily organize your testimonials), #5 (Adding channels is easy)
  • Tags: You are using too many tags: 39 tag instead of maximum 10
You can look at the official readme.txt

social-testimonials-and-reviews-widget/social-testimonials-and-reviews-widget.php Passed 13 tests

Analyzing the main PHP file in "Social proof testimonials and reviews by Repuso" version 5.04
129 characters long description:
Social testimonials & reviews on your own website as social proof. Increase your website's sales and conversion rate with Repuso.

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
Success! There were no dangerous files found in this plugin1,364 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP5238571,165
CSS1200111
JavaScript117388

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity75.00
▷ Minimum class complexity75.00
▷ Maximum class complexity75.00
Average method complexity3.06
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods36
▷ Static methods00.00%
▷ Public methods36100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
14 PNG files occupy 1.05MB with 0.55MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/widgets-grid@2x.png24.45KB25.45KB0.00%
screenshot-3.png71.80KB18.64KB▼ 74.04%
screenshot-4.png231.39KB90.90KB▼ 60.72%
images/shortcode1.png20.62KB6.43KB▼ 68.84%
screenshot-6.png132.25KB55.54KB▼ 58.00%