78% social-proof-testimonials-slider

Code Review | Social Proof (Testimonial) Slider

WordPress plugin Social Proof (Testimonial) Slider scored78%from 54 tests.

About plugin

  • Plugin page: social-proof-test...
  • Plugin version: 2.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.2.2
  • WordPress version: 6.3.1
  • First release: Jun 30, 2016
  • Latest release: Aug 1, 2023
  • Number of updates: 43
  • Update frequency: every 60.2 days
  • Top authors: alexmustin (97.67%)kimberlynorris (4.65%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active /28,006 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.16MB] [CPU: ▼1.49ms] Passed 4 tests

A check of server-side resources used by Social Proof (Testimonial) Slider
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0939.37 ▼0.62
Dashboard /wp-admin3.48 ▲0.1844.46 ▼2.14
Posts /wp-admin/edit.php3.53 ▲0.1846.75 ▲3.48
Add New Post /wp-admin/post-new.php6.09 ▲0.2181.81 ▼2.80
Media Library /wp-admin/upload.php3.40 ▲0.1836.72 ▼0.41
Testimonials /wp-admin/edit.php?post_type=socialproofslider3.4636.20
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=socialproofslider3.4039.62
Social Proof Slider /wp-admin/options-general.php?page=social-proof-slider3.4238.24
Add New Testimonial /wp-admin/post-new.php?post_type=socialproofslider3.5649.90

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
category_children
theysaidso_admin_options
db_upgraded
widget_social_proof_slider_widget
can_compress_scripts

Browser metrics Passed 4 tests

Social Proof (Testimonial) Slider: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,981 ▲23113.75 ▼0.908.44 ▲6.8842.96 ▼1.18
Dashboard /wp-admin2,264 ▲844.99 ▼0.6397.10 ▲12.6838.80 ▼1.29
Posts /wp-admin/edit.php2,144 ▲442.79 ▲0.7744.21 ▲6.2137.94 ▲5.68
Add New Post /wp-admin/post-new.php6,428 ▲4,89928.44 ▲5.36900.62 ▲246.6739.19 ▼14.26
Media Library /wp-admin/upload.php1,464 ▲674.48 ▲0.29102.28 ▼16.5345.30 ▼2.60
Testimonials /wp-admin/edit.php?post_type=socialproofslider1,1512.4039.7132.17
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=socialproofslider1,5202.1635.4534.12
Social Proof Slider /wp-admin/options-general.php?page=social-proof-slider2,2272.6067.3453.69
Add New Testimonial /wp-admin/post-new.php?post_type=socialproofslider2,99810.95222.6671.06

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 8 options
    • theysaidso_admin_options
    • category_children
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_social_proof_slider_widget
    • 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/social-proof-testimonials-slider/public/partials/social-proof-slider-public-display.php
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/social-proof-testimonials-slider/admin/partials/social-proof-slider-admin-metabox-testimonial-details.php:13
    • > PHP Notice
      Undefined variable: instance in wp-content/plugins/social-proof-testimonials-slider/includes/partials/social-proof-slider-display-widget.php on line 11
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/social-proof-testimonials-slider/includes/partials/social-proof-slider-display-widget.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_editor() in wp-content/plugins/social-proof-testimonials-slider/admin/partials/social-proof-slider-admin-field-editor.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/social-proof-testimonials-slider/admin/partials/social-proof-slider-admin-display.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Social_Proof_Slider_Shared' not found in wp-content/plugins/social-proof-testimonials-slider/includes/partials/social-proof-slider-display-widget.php:272
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/social-proof-testimonials-slider/includes/class-social-proof-slider-widget.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: responsive, slideshow, portfolio, reviews, quotes...

social-proof-testimonials-slider/social-proof-slider.php 85% from 13 tests

The entry point to "Social Proof (Testimonial) Slider" version 2.2.4 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("social-proof-testimonials-slider.php" instead of "social-proof-slider.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 253 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin7,766 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
PHP181,0481,7113,997
JavaScript89902,0483,046
CSS510619542
Markdown1400127
Sass34140
SVG10014

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity31.36
▷ Minimum class complexity1.00
▷ Maximum class complexity105.00
Average method complexity3.41
▷ Minimum method complexity1.00
▷ Maximum method complexity48.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods128
▷ Static methods53.91%
▷ Public methods11388.28%
▷ Protected methods00.00%
▷ Private methods1511.72%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin