94% wpstudio-testimonial-slider

Code Review | Genesis Testimonial Slider

WordPress plugin Genesis Testimonial Slider scored 94% from 54 tests.

About plugin

  • Plugin page: wpstudio-testimon...
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.6.2
  • WordPress version: 5.9.2
  • First release: Mar 7, 2016
  • Latest release: Mar 9, 2021
  • Number of updates: 26
  • Update frequency: every 70.4 days
  • Top authors: frankschrijvers (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

10,000+ active / 115,939 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.00MB] [CPU: ▼298.10ms] Passed 4 tests

A check of server-side resources used by Genesis Testimonial Slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0354.99 ▲1.71
Dashboard /wp-admin3.43 ▲0.0232.83 ▼0.49
Posts /wp-admin/edit.php3.67 ▲0.0240.81 ▲2.28
Add New Post /wp-admin/post-new.php6.90 ▼0.0795.57 ▼1,193.41
Media Library /wp-admin/upload.php3.32 ▲0.0223.70 ▼0.19

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Genesis Testimonial Slider
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,906 ▲15216.12 ▲0.428.60 ▲2.722.49 ▼0.30
Dashboard /wp-admin2,892 ▲316.15 ▼0.02116.80 ▼20.67156.28 ▲1.64
Posts /wp-admin/edit.php2,691 ▼33.36 ▼0.0064.32 ▲1.24145.46 ▲8.86
Add New Post /wp-admin/post-new.php1,661 ▼016.57 ▲0.06427.30 ▼5.93169.19 ▲11.19
Media Library /wp-admin/upload.php1,698 ▼05.48 ▼0.03144.38 ▲4.96187.12 ▼3.87

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wpstudio-testimonial-slider/inc/gts-rating.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wpstudio-testimonial-slider/inc/gts-company.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (Testimonial slider default styling), #2 (Testimonial slider integrated in theme), #3 (Testimonial slider admin panel)
You can take inspiration from this readme.txt

wpstudio-testimonial-slider/genesis-testimonials.php 92% from 13 tests

Analyzing the main PHP file in "Genesis Testimonial Slider" version 1.6
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wpstudio-testimonial-slider.php" instead of "genesis-testimonials.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,794 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript227111,103
PHP9196249576
Markdown146086
CSS29529

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity8.00
▷ Minimum class complexity4.00
▷ Maximum class complexity10.00
Average method complexity2.65
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/star.png2.62KB2.67KB0.00%
assets/img/controls.png2.19KB0.95KB▼ 56.49%