72% video-testimonial-slider

Code Review | Video Testimonial slider

WordPress plugin Video Testimonial slider scored72%from 54 tests.

About plugin

  • Plugin page: video-testimonial...
  • Plugin version: 1.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1
  • WordPress version: 6.3.1
  • First release: Feb 15, 2023
  • Latest release: Feb 16, 2023
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: kaka2 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /419 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.30ms] Passed 4 tests

Analyzing server-side resources used by Video Testimonial slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0435.38 ▼4.85
Dashboard /wp-admin3.33 ▲0.0345.28 ▼0.88
Posts /wp-admin/edit.php3.38 ▲0.0349.05 ▼1.91
Add New Post /wp-admin/post-new.php5.91 ▲0.0393.25 ▼5.55
Media Library /wp-admin/upload.php3.25 ▲0.0336.24 ▲5.50
All Items /wp-admin/edit.php?post_type=testimonial3.3044.72
Settings /wp-admin/edit.php?post_type=testimonial&page=vts-setings-page3.2233.47
Add New /wp-admin/post-new.php?post_type=testimonial3.3747.52

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Video Testimonial slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,847 ▲11213.48 ▼0.808.53 ▲6.6241.21 ▼5.39
Dashboard /wp-admin2,233 ▲455.83 ▲0.7497.68 ▲0.2143.31 ▲0.37
Posts /wp-admin/edit.php2,119 ▲302.06 ▲0.0538.21 ▲1.0137.43 ▲3.22
Add New Post /wp-admin/post-new.php1,539 ▲317.69 ▼5.82636.25 ▲3.9062.83 ▲3.71
Media Library /wp-admin/upload.php1,421 ▲334.26 ▲0.0494.34 ▼3.3842.73 ▼1.00
All Items /wp-admin/edit.php?post_type=testimonial1,0832.0032.1232.83
Settings /wp-admin/edit.php?post_type=testimonial&page=vts-setings-page8542.0626.4927.17
Add New /wp-admin/post-new.php?post_type=testimonial2,4977.88167.0276.59

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/video-testimonial-slider/video-testimonial-slider.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-testimonial-slider/inc/functions.php:17

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/edit.php?post_type=testimonial&page=vts-setings-page
    • > Rendering (warning) in unknown
    /wp-admin/edit.php?post_type=testimonial&page=vts-setings-page 155 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/edit.php?post_type=testimonial&page=vts-setings-page
    • > Rendering (warning) in unknown
    /wp-admin/edit.php?post_type=testimonial&page=vts-setings-page 160 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.

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
7 plugin tags: video testimonials slider, testimonials, testimonial showcase, testimonial slider plugin, video testimonial...

video-testimonial-slider/video-testimonial-slider.php 85% from 13 tests

Analyzing the main PHP file in "Video Testimonial slider" version 1.1
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 144 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
Success! There were no dangerous files found in this plugin716 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP35949368
CSS33225297
JavaScript3112351

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected