78% wps-testimonials

Code Review | Best Testimonials Slider

WordPress plugin Best Testimonials Slider scored78%from 54 tests.

About plugin

  • Plugin page: wps-testimonials
  • Plugin version: 5.9.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.9.2
  • WordPress version: 6.3.1
  • First release: Oct 9, 2018
  • Latest release: Mar 22, 2022
  • Number of updates: 8
  • Update frequency: every 159.0 days
  • Top authors: vinit sharma (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /1,844 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼7.73ms] Passed 4 tests

Analyzing server-side resources used by Best Testimonials Slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▼0.0128.40 ▼8.83
Dashboard /wp-admin3.39 ▲0.0445.82 ▼13.81
Posts /wp-admin/edit.php3.44 ▲0.0846.66 ▼0.16
Add New Post /wp-admin/post-new.php5.97 ▲0.0883.50 ▼8.10
Media Library /wp-admin/upload.php3.31 ▲0.0840.23 ▲7.72
Testimonials Category /wp-admin/edit-tags.php?taxonomy=testimonials_category&post_type=wps_tc_testimonials3.3135.94
Testimonials Shortcode /wp-admin/edit.php?post_type=wps_tc_testimonials&page=wps_tc_testimonial_shortcode3.2832.90
All Testimonials /wp-admin/edit.php?post_type=wps_tc_testimonials3.3535.99
Testimonials Options /wp-admin/edit.php?post_type=wps_tc_testimonials&page=wps_tc_testimonial_options3.2933.94
Add New /wp-admin/post-new.php?post_type=wps_tc_testimonials3.4349.19

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Best Testimonials Slider
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲7114.42 ▲0.063.01 ▲1.2038.62 ▼2.85
Dashboard /wp-admin2,234 ▲565.65 ▼0.0887.14 ▼12.0537.32 ▼4.18
Posts /wp-admin/edit.php2,136 ▲542.03 ▲0.0636.68 ▲0.6834.45 ▼3.35
Add New Post /wp-admin/post-new.php1,558 ▲3023.16 ▲0.21668.30 ▲44.7458.04 ▲5.59
Media Library /wp-admin/upload.php1,442 ▲394.19 ▲0.0194.06 ▼5.4340.57 ▼4.40
Testimonials Category /wp-admin/edit-tags.php?taxonomy=testimonials_category&post_type=wps_tc_testimonials1,3162.1226.1727.02
Testimonials Shortcode /wp-admin/edit.php?post_type=wps_tc_testimonials&page=wps_tc_testimonial_shortcode8232.0225.0232.62
All Testimonials /wp-admin/edit.php?post_type=wps_tc_testimonials1,1031.9729.6129.21
Testimonials Options /wp-admin/edit.php?post_type=wps_tc_testimonials&page=wps_tc_testimonial_options9712.0021.6324.58
Add New /wp-admin/post-new.php?post_type=wps_tc_testimonials2,3517.72168.1962.97

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/edit.php?post_type=wps_tc_testimonials&page=wps_tc_testimonial_options
    • > Notice in wp-content/plugins/wps-testimonials/templates/testimonial_options.php+80
    Undefined variable: id

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_meta_box() in wp-content/plugins/wps-testimonials/templates/create-custom-fields.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wps-testimonials/templates/show-custom-fields.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: testimonials carousel, responsive testimonials, best testimonials plugin, testimonials, testimonials slide

wps-testimonials/wps-testimonials-carousel.php 85% from 13 tests

"Best Testimonials Slider" version 5.9.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wps-testimonials.php" instead of "wps-testimonials-carousel.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin3,074 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1840552,113
PHP824138485
CSS3847476

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity13.00
▷ Minimum class complexity6.00
▷ Maximum class complexity20.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods28
▷ Static methods00.00%
▷ Public methods28100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There were not PNG files found in your plugin