83% wp-responsive-testimonials-slider-and-widget

Code Review | WP Responsive Testimonials Slider And Widget

WordPress plugin WP Responsive Testimonials Slider And Widget scored 83% from 54 tests.

About plugin

  • Plugin page: wp-responsive-tes...
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5.1
  • WordPress version: 5.9.2
  • First release: Jul 31, 2018
  • Latest release: Oct 11, 2020
  • Number of updates: 58
  • Update frequency: every 13.8 days
  • Top authors: pareshpachani007 (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

1,000+ active / 4,834 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.35MB] [CPU: ▼294.04ms] Passed 4 tests

This is a short check of server-side resources used by WP Responsive Testimonials Slider And Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.86 ▲0.3456.88 ▲4.60
Dashboard /wp-admin3.80 ▲0.3935.88 ▼5.01
Posts /wp-admin/edit.php4.03 ▲0.3846.18 ▼9.39
Add New Post /wp-admin/post-new.php7.27 ▲0.2998.82 ▼1,166.37
Media Library /wp-admin/upload.php3.69 ▲0.3930.15 ▲4.82
Help and shortcode Generator /wp-admin/edit.php?post_type=easy-testimonial&page=rtsw-designs3.6625.27
Category /wp-admin/edit-tags.php?taxonomy=testimonial-category&post_type=easy-testimonial3.6927.17
All Testimonials /wp-admin/edit.php?post_type=easy-testimonial3.7933.63
Add New /wp-admin/post-new.php?post_type=easy-testimonial4.0651.93

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 37 new files
Database: no new tables, 1 new option
New WordPress options
widget_sp_testimonials

Browser metrics Passed 4 tests

Checking browser requirements for WP Responsive Testimonials Slider And Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,966 ▲24417.28 ▲1.7523.39 ▲17.723.00 ▲0.71
Dashboard /wp-admin2,942 ▲826.09 ▼0.03128.64 ▲5.10232.21 ▲73.90
Posts /wp-admin/edit.php2,740 ▲493.23 ▼0.0265.09 ▲1.16160.58 ▲8.56
Add New Post /wp-admin/post-new.php1,693 ▲2716.58 ▼3.97462.60 ▲30.17155.71 ▼13.67
Media Library /wp-admin/upload.php1,748 ▲535.57 ▲0.11142.45 ▼2.79239.43 ▲42.17
Help and shortcode Generator /wp-admin/edit.php?post_type=easy-testimonial&page=rtsw-designs1,3152.4156.03120.91
Category /wp-admin/edit-tags.php?taxonomy=testimonial-category&post_type=easy-testimonial1,6622.7956.98111.39
All Testimonials /wp-admin/edit.php?post_type=easy-testimonial1,4423.1560.20117.42
Add New /wp-admin/post-new.php?post_type=easy-testimonial3,35610.00196.94211.52

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 1 option in the database
    • widget_sp_testimonials

Smoke tests 75% 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 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-responsive-testimonials-slider-and-widget/wp-responsive-testimonials-slider-and-widget.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% 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 require attention:
  • Tags: Please reduce the number of tags, currently 31 tag instead of maximum 10
You can take inspiration from this readme.txt

wp-responsive-testimonials-slider-and-widget/wp-responsive-testimonials-slider-and-widget.php 85% from 13 tests

The primary PHP file in "WP Responsive Testimonials Slider And Widget" version 1.5 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: The description should be shorter than 140 characters (currently 148 characters long)

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
Everything looks great! No dangerous files found in this plugin4,860 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP16421992,437
CSS64271,628
SVG100685
JavaScript573110

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity46.00
▷ Minimum class complexity6.00
▷ Maximum class complexity86.00
Average method complexity7.92
▷ Minimum method complexity1.00
▷ Maximum method complexity76.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions32
▷ Named functions3196.88%
▷ Anonymous functions13.12%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/video-play-icon.png8.22KB3.64KB▼ 55.71%