78% testimonials-slider

Code Review | Testimonial Slider

WordPress plugin Testimonial Slider scored78%from 54 tests.

About plugin

  • Plugin page: testimonials-slider
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4
  • WordPress version: 6.3.1
  • First release: Mar 28, 2019
  • Latest release: Mar 7, 2020
  • Number of updates: 18
  • Update frequency: every 19.3 days
  • Top authors: kartikdholariya (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /714 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.07MB] [CPU: ▼3.13ms] Passed 4 tests

Server-side resources used by Testimonial Slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0740.05 ▲1.40
Dashboard /wp-admin3.37 ▲0.0752.35 ▼2.08
Posts /wp-admin/edit.php3.42 ▲0.0645.89 ▼5.60
Add New Post /wp-admin/post-new.php5.97 ▲0.0984.91 ▼6.23
Media Library /wp-admin/upload.php3.29 ▲0.0637.90 ▲4.43
New Testimonial /wp-admin/post-new.php?post_type=testimonial-post3.4149.70
All Testimonials /wp-admin/edit.php?post_type=testimonial-post3.3337.80
Settings /wp-admin/edit.php?post_type=testimonial-post&page=testimonial-settings3.2732.82

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Testimonial Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,961 ▲20013.64 ▼0.9811.05 ▲9.2651.18 ▲4.35
Dashboard /wp-admin2,248 ▲715.90 ▲0.2483.60 ▼18.3837.70 ▼7.05
Posts /wp-admin/edit.php2,158 ▲552.30 ▲0.3435.77 ▲0.2233.13 ▼5.75
Add New Post /wp-admin/post-new.php1,569 ▲4122.96 ▼0.04633.20 ▲32.1533.27 ▼16.72
Media Library /wp-admin/upload.php1,450 ▲504.38 ▲0.1899.11 ▼3.9449.94 ▲4.72
New Testimonial /wp-admin/post-new.php?post_type=testimonial-post2,2957.78173.3266.07
All Testimonials /wp-admin/edit.php?post_type=testimonial-post1,1312.2234.9227.33
Settings /wp-admin/edit.php?post_type=testimonial-post&page=testimonial-settings1,2462.3853.6925.92

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/edit.php?post_type=testimonial-post&page=testimonial-settings
    • > Notice in wp-content/plugins/testimonials-slider/include/testimonial-settings.php+4
    Undefined index: testmonial_setting_submit
    • > GET request to /wp-admin/edit.php?post_type=testimonial-post&page=testimonial-settings
    • > Notice in wp-content/plugins/testimonials-slider/include/testimonial-settings.php+5
    Undefined index: main_box_bg_color
    • > GET request to /wp-admin/edit.php?post_type=testimonial-post&page=testimonial-settings
    • > Notice in wp-content/plugins/testimonials-slider/include/testimonial-settings.php+6
    Undefined index: all_text_color
    • > GET request to /wp-admin/edit.php?post_type=testimonial-post&page=testimonial-settings
    • > Notice in wp-content/plugins/testimonials-slider/include/testimonial-settings.php+7
    Undefined index: client_content_box_color
    • > GET request to /wp-admin/edit.php?post_type=testimonial-post&page=testimonial-settings
    • > Notice in wp-content/plugins/testimonials-slider/include/testimonial-settings.php+8
    Undefined index: testimonial_heading_text
    • > GET request to /wp-admin/edit.php?post_type=testimonial-post&page=testimonial-settings
    • > Notice in wp-content/plugins/testimonials-slider/include/testimonial-settings.php+9
    Undefined index: saved
    • > GET request to /wp-admin/edit.php?post_type=testimonial-post&page=testimonial-settings
    • > Notice in wp-content/plugins/testimonials-slider/include/testimonial-settings.php+31
    Undefined variable: message

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 fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/testimonials-slider/include/testimonial-settings.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes: You can take inspiration from this readme.txt

testimonials-slider/testimonials-slider.php 92% from 13 tests

The primary PHP file in "Testimonial Slider" version 1.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected498 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP27029314
CSS31911155
JavaScript48829

PHP code Passed 2 tests

Analyzing 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.29
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png14.45KB5.56KB▼ 61.52%
assets/screenshot-1.PNG12.89KB7.06KB▼ 45.24%
assets/screenshot-2.png16.13KB9.16KB▼ 43.22%