78% testimonials-carousel-elementor

Code Review | Testimonial Carousel For Elementor

WordPress plugin Testimonial Carousel For Elementor scored78%from 54 tests.

About plugin

  • Plugin page: testimonials-caro...
  • Plugin version: 7.1.0
  • PHP compatiblity: 7.4.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.3
  • WordPress version: 6.3.1
  • First release: Jun 16, 2022
  • Latest release: Oct 31, 2023
  • Number of updates: 60
  • Update frequency: every 8.4 days
  • Top authors: uapp (71.67%)julkotenko (30%)

Code review

54 tests

User reviews

1 review

Install metrics

3,000+ active /13,334 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
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼4.83ms] Passed 4 tests

Analyzing server-side resources used by Testimonial Carousel For Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.75 ▼1.99
Dashboard /wp-admin3.31 ▼0.0445.97 ▼12.76
Posts /wp-admin/edit.php3.36 ▲0.0048.40 ▼1.43
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.16 ▼3.14
Media Library /wp-admin/upload.php3.23 ▲0.0039.43 ▲5.15

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Testimonial Carousel For Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲8614.73 ▲0.472.04 ▲0.3438.41 ▼5.96
Dashboard /wp-admin2,198 ▲205.61 ▼0.0691.03 ▼19.4338.32 ▼0.95
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0139.20 ▼1.3436.65 ▼5.65
Add New Post /wp-admin/post-new.php1,526 ▼822.90 ▲4.80668.67 ▲14.1864.95 ▲2.07
Media Library /wp-admin/upload.php1,403 ▲64.14 ▼0.0498.35 ▼8.2944.71 ▲1.59

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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/testimonials-carousel-elementor/class-testimonials-openai-verification-handler.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/testimonials-carousel-elementor/class-testimonials-openai-handler.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/testimonials-carousel-elementor/testimonials-carousel-elementor.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 33 tag instead of maximum 10
You can look at the official readme.txt

testimonials-carousel-elementor/testimonials-carousel-elementor.php Passed 13 tests

The main file in "Testimonial Carousel For Elementor" v. 7.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
108 characters long description:
The compact Testimonial Carousel for Elementor lets you show long text reviews in Pop-Up of Carousel Slider.

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
Everything looks great! No dangerous files found in this plugin13,868 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP125619169,839
JavaScript3185123,471
CSS711522536
SVG10022

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity13.33
▷ Minimum class complexity2.00
▷ Maximum class complexity26.00
Average method complexity2.32
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes111.11%
Methods85
▷ Static methods22.35%
▷ Public methods6374.12%
▷ Protected methods2124.71%
▷ Private methods11.18%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/employees-placeholder-icon.png22.39KB11.42KB▼ 49.01%