72% testimonial-add

Code Review | Testimonial Slider - Free Testimonials Slider Plugin

WordPress plugin Testimonial Slider - Free Testimonials Slider Plugin scored72%from 54 tests.

About plugin

  • Plugin page: testimonial-add
  • Plugin version: 3.5.8.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.2
  • WordPress version: 6.3.1
  • First release: Apr 14, 2015
  • Latest release: Apr 24, 2023
  • Number of updates: 189
  • Update frequency: every 15.6 days
  • Top authors: umarbajwa (93.65%)Web Dev (3.7%)Zia Imtiaz (3.7%)

Code review

54 tests

User reviews

27 reviews

Install metrics

1,000+ active /68,689 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.18MB] [CPU: ▼3.22ms] Passed 4 tests

A check of server-side resources used by Testimonial Slider - Free Testimonials Slider Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1842.86 ▼4.00
Dashboard /wp-admin3.48 ▲0.1848.88 ▼5.32
Posts /wp-admin/edit.php3.60 ▲0.2463.81 ▲12.55
Add New Post /wp-admin/post-new.php6.07 ▲0.1995.09 ▼3.35
Media Library /wp-admin/upload.php3.41 ▲0.1838.20 ▼0.20
Testimonial Sliders /wp-admin/edit.php?post_type=tss_slider3.4539.21
Add New Testimonial Slider /wp-admin/post-new.php?post_type=tss_slider3.4542.16
Add New Testimonial /wp-admin/post-new.php?post_type=tss_data3.5048.21
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=tss_data3.5341.90
Testimonials /wp-admin/edit.php?post_type=tss_data3.4639.96
Dashboard /wp-admin/edit.php?post_type=tss_slider&page=tss_slider3.3733.76

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Testimonial Slider - Free Testimonials Slider Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,022 ▲26113.47 ▼1.167.97 ▲5.8726.31 ▼15.97
Dashboard /wp-admin2,298 ▲1215.61 ▼0.0491.97 ▼1.4397.49 ▲55.89
Posts /wp-admin/edit.php2,209 ▲1092.16 ▲0.1237.48 ▼1.4046.93 ▲9.49
Add New Post /wp-admin/post-new.php1,616 ▲8822.99 ▲0.19663.00 ▲54.4961.53 ▲9.82
Media Library /wp-admin/upload.php1,506 ▲1064.25 ▲0.0696.20 ▼18.9387.29 ▲41.73
Testimonial Sliders /wp-admin/edit.php?post_type=tss_slider1,1592.0832.0141.59
Add New Testimonial Slider /wp-admin/post-new.php?post_type=tss_slider2,2042.9062.37113.52
Add New Testimonial /wp-admin/post-new.php?post_type=tss_data1,9603.8076.42108.90
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=tss_data1,5582.4228.5545.41
Testimonials /wp-admin/edit.php?post_type=tss_data1,2142.0532.9344.66
Dashboard /wp-admin/edit.php?post_type=tss_slider&page=tss_slider9852.1724.5758.70

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • category_children
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/testimonial-add/css/slider_settings.php
  • 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/testimonial-add/templates/mpsp_slider_generator_4_list.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/testimonial-add/templates/mpsp_slider_generator_1.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/testimonial-add/templates/mpsp_slider_generator_5_list.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/testimonial-add/templates/mpsp_slider_generator_4.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/testimonial-add/templates/mpsp_slider_generator_list.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/testimonial-add/templates/mpsp_slider_generator_3.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/testimonial-add/templates/mpsp_slider_generator_3_list.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/testimonial-add/templates/mpsp_slider_generator_1_list.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/testimonial-add/templates/mpsp_slider_generator_2_list.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/testimonial-add/tss_admin_pages.php:4

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/post-new.php?post_type=tss_slider
    • > Javascript (severe) in unknown
    /wp-admin/js/iris.min.js?ver=1.1.1 4:16748 Uncaught TypeError: a.widget is not a function
    • > GET request to /wp-admin/post-new.php?post_type=tss_slider
    • > Javascript (severe) in unknown
    /wp-admin/js/color-picker.min.js?ver=6.3.1 1:34 Uncaught TypeError: i.widget is not a function
    • > GET request to /wp-admin/post-new.php?post_type=tss_slider
    • > Javascript (severe) in unknown
    /wp-includes/js/admin-bar.min.js?ver=6.3.1 1:2978 Uncaught TypeError: u.hoverintent is not a function
    • > GET request to /wp-admin/post-new.php?post_type=tss_slider
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: f.find(...).hoverIntent is not a function" "TypeError: f.find(...).hoverIntent is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/js/common.min.js?ver=6.3.1:2:12296)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/post-new.php?post_type=tss_slider
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: ClipboardJS is not defined" "ReferenceError: ClipboardJS is not defined\n at HTMLDocument.\u003Canonymous> (/wp-admin/js/post.min.js?ver=6.3.1:2:3889)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/post-new.php?post_type=tss_slider
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: _ is not defined" "ReferenceError: _ is not defined\n at HTMLDocument.\u003Canonymous> (/wp-admin/js/post.min.js?ver=6.3.1:2:18965)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/post-new.php?post_type=tss_slider
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).wpColorPicker is not a function" "TypeError: jQuery(...).wpColorPicker is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/testimonial-add/lpp_color_picker.js?ver=6.3.1:2:36)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/post-new.php?post_type=tss_slider
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: f.find(...).hoverIntent is not a function
    • > GET request to /wp-admin/post-new.php?post_type=tss_slider
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught ReferenceError: ClipboardJS is not defined
    • > GET request to /wp-admin/post-new.php?post_type=tss_slider
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught ReferenceError: _ is not defined
    • > GET request to /wp-admin/post-new.php?post_type=tss_slider
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).wpColorPicker is not a function
    • > GET request to /wp-admin/post-new.php?post_type=tss_slider
    • > Network (severe)
    https://mc.us8.list-manage.com/subscribe/form-settings?u=46b196269ed011acb6bee800c&id=bdaca95686&f_id=undefined&u=46b196269ed011acb6bee800c&id=bdaca95686&c=dojo_request_script_callbacks.dojo_request_script0 - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/post-new.php?post_type=tss_data
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/testimonial-add/image-upload.js?ver=6.3.1:7:29)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/post-new.php?post_type=tss_data
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Please a description for screenshot #6 in testimonial-add/assets to your readme.txt
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

testimonial-add/Testimonials.php 92% from 13 tests

The main PHP script in "Testimonial Slider - Free Testimonials Slider Plugin" version 3.5.8.6 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("testimonial-add.php" instead of "Testimonials.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected3,836 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
PHP319291912,145
JavaScript3234271,327
CSS44737364

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions27
▷ Named functions27100.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

PNG files should be compressed to save space and minimize bandwidth usage
21 PNG files occupy 0.44MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) img/._layout-def.png11.82KB0.00KB▼ 100.00%
imgs/psp.png172.58KB51.67KB▼ 70.06%
(invalid) img/._layout-1.png14.67KB0.00KB▼ 100.00%
imgs/msf.png7.83KB7.83KB0.00%
(invalid) img/._layout-2.png14.29KB0.00KB▼ 100.00%