83% testimonial-slider-and-showcase

Code Review | Testimonial Slider

WordPress plugin Testimonial Slider scored83%from 54 tests.

About plugin

  • Plugin page: testimonial-slide...
  • Plugin version: 2.3.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.4
  • WordPress version: 6.3.1
  • First release: Feb 28, 2017
  • Latest release: Nov 20, 2023
  • Number of updates: 60
  • Update frequency: every 40.9 days
  • Top authors: techlabpro1 (100%)

Code review

54 tests

User reviews

57 reviews

Install metrics

30,000+ active /342,551 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲1.32MB] [CPU: ▲5.20ms] Passed 4 tests

This is a short check of server-side resources used by Testimonial Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.80 ▲1.3344.73 ▲6.41
Dashboard /wp-admin4.63 ▲1.2859.10 ▲2.25
Posts /wp-admin/edit.php4.74 ▲1.3961.77 ▲14.04
Add New Post /wp-admin/post-new.php7.22 ▲1.33100.73 ▲3.76
Media Library /wp-admin/upload.php4.55 ▲1.3245.15 ▲8.39
ShortCode /wp-admin/edit.php?post_type=tss-sc4.6348.47
All Testimonials /wp-admin/edit.php?post_type=testimonial4.6051.01
Add Testimonial /wp-admin/post-new.php?post_type=testimonial4.7056.06
Settings /wp-admin/edit.php?post_type=testimonial&page=tss_settings4.5341.68
Get Help /wp-admin/edit.php?post_type=testimonial&page=tss_get_help4.5540.78

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 136 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
tss_settings
widget_recent-comments
can_compress_scripts
widget_widget_tlp_port_owl_carousel
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Testimonial Slider
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,875 ▲10314.13 ▲0.221.56 ▼0.3937.33 ▼3.35
Dashboard /wp-admin2,260 ▲805.59 ▼0.0695.64 ▼1.8684.51 ▲41.81
Posts /wp-admin/edit.php2,181 ▲812.14 ▲0.2042.75 ▲2.4036.25 ▼3.49
Add New Post /wp-admin/post-new.php6,347 ▲4,82121.47 ▼1.82871.77 ▲226.17206.13 ▲156.89
Media Library /wp-admin/upload.php1,480 ▲864.24 ▲0.0397.49 ▼2.7973.49 ▲26.27
ShortCode /wp-admin/edit.php?post_type=tss-sc1,3823.7765.8578.40
All Testimonials /wp-admin/edit.php?post_type=testimonial1,2222.3436.3735.87
Add Testimonial /wp-admin/post-new.php?post_type=testimonial2,5808.08187.97157.17
Settings /wp-admin/edit.php?post_type=testimonial&page=tss_settings1,0632.2534.2142.51
Get Help /wp-admin/edit.php?post_type=testimonial&page=tss_get_help1,75611.37276.9684.88

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
  • This plugin does not fully uninstall, leaving 8 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_widget_tlp_port_owl_carousel
    • tss_settings

Smoke tests 75% 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 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 items
  • 49× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/testimonial-slider-and-showcase/lib/elementor/elements/sections/TSSElementorContentSections.php
    • > /wp-content/plugins/testimonial-slider-and-showcase/lib/classes/TSSShortCodeGenerator.php
    • > /wp-content/plugins/testimonial-slider-and-showcase/lib/widgets/TSScWidget.php
    • > /wp-content/plugins/testimonial-slider-and-showcase/lib/classes/TSSNotice.php
    • > /wp-content/plugins/testimonial-slider-and-showcase/lib/elementor/TSSElementorControls.php
    • > /wp-content/plugins/testimonial-slider-and-showcase/lib/templates/layouts/layout1.php
    • > /wp-content/plugins/testimonial-slider-and-showcase/lib/classes/TSSProInit.php
    • > /wp-content/plugins/testimonial-slider-and-showcase/lib/classes/TSSGutenBurg.php
    • > /wp-content/plugins/testimonial-slider-and-showcase/lib/elementor/elements/tabs/TSSElementorGridStyle.php
    • > /wp-content/plugins/testimonial-slider-and-showcase/lib/classes/TSSAjaxResponse.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Invalid url: ""
You can take inspiration from this readme.txt

testimonial-slider-and-showcase/testimonial-slider-and-showcase.php 85% from 13 tests

The main PHP file in "Testimonial Slider" ver. 2.3.5 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: Please don't use more than 140 characters for the plugin description (currently 194 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected19,794 lines of code in 81 files:
LanguageFilesBlank linesComment linesLines of code
PHP491,6371,8598,952
JavaScript201,7862,5027,523
CSS65701243,175
SVG622144

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 108)
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity35.48
▷ Minimum class complexity1.00
▷ Maximum class complexity288.00
Average method complexity5.64
▷ Minimum method complexity1.00
▷ Maximum method complexity108.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes40
▷ Abstract classes00.00%
▷ Concrete classes40100.00%
▷ Final classes00.00%
Methods300
▷ Static methods268.67%
▷ Public methods24782.33%
▷ Protected methods93.00%
▷ Private methods4414.67%
Functions12
▷ Named functions18.33%
▷ Anonymous functions1191.67%
Constants9
▷ Global constants9100.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
42 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/layouts/carousel11.png2.61KB1.76KB▼ 32.77%
assets/images/placeholder.png3.27KB1.02KB▼ 68.68%
assets/images/layouts/isotope_video.png2.05KB1.17KB▼ 42.89%
assets/images/icon-32x32.png1.68KB0.81KB▼ 51.86%
assets/images/icon-20x20.png1.43KB0.51KB▼ 64.60%