62% testimonial-slider

Code Review | Testimonial Slider

WordPress plugin Testimonial Slider scored62%from 54 tests.

About plugin

  • Plugin page: testimonial-slider
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.3
  • WordPress version: 6.3.1
  • First release: May 11, 2013
  • Latest release: Jul 19, 2023
  • Number of updates: 37
  • Update frequency: every 101.0 days
  • Top authors: DavidAnderson (62.16%)slidervilla (40.54%)

Code review

54 tests

User reviews

68 reviews

Install metrics

6,000+ active /172,108 total downloads

Benchmarks

Plugin footprint 65% 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.71MB] [CPU: ▲2.55ms] Passed 4 tests

A check of server-side resources used by Testimonial Slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.19 ▲0.7352.57 ▲7.39
Dashboard /wp-admin4.01 ▲0.7158.30 ▲1.67
Posts /wp-admin/edit.php4.13 ▲0.7758.53 ▲4.30
Add New Post /wp-admin/post-new.php6.60 ▲0.7192.56 ▲0.17
Media Library /wp-admin/upload.php3.94 ▲0.7145.13 ▲4.05
Sliders /wp-admin/admin.php?page=testimonial-slider-admin3.9142.96
Testimonial Categories /wp-admin/edit-tags.php?taxonomy=testimonial_category&post_type=testimonial3.9341.90
Settings /wp-admin/admin.php?page=testimonial-slider-settings4.0747.85
Add New /wp-admin/post-new.php?post_type=testimonial4.0760.79
All Testimonials /wp-admin/edit.php?post_type=testimonial3.9843.29

Server storage [IO: ▲0.75MB] [DB: ▲0.01MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 123 new files
Database: 3 new tables, 12 new options
New tables
wp_testimonial_slider_postmeta
wp_testimonial_slider
wp_testimonial_slider_meta
New WordPress options
widget_theysaidso_widget
testimonial_slider_scounter
widget_recent-comments
widget_recent-posts
testimonial_db_version
theysaidso_admin_options
can_compress_scripts
widget_testimonial_ssliderc_wid
testimonial_slider_options
widget_testimonial_sslider_wid
...

Browser metrics Passed 4 tests

An overview of browser requirements for Testimonial Slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,957 ▲17113.78 ▼0.638.56 ▲6.0341.12 ▼0.73
Dashboard /wp-admin2,253 ▲765.65 ▲0.1284.14 ▲0.3839.49 ▼5.43
Posts /wp-admin/edit.php2,161 ▲582.02 ▲0.0735.53 ▼6.5834.86 ▼3.79
Add New Post /wp-admin/post-new.php1,578 ▲5223.06 ▼0.19656.90 ▼2.0368.26 ▲14.44
Media Library /wp-admin/upload.php1,461 ▲644.20 ▲0.03105.36 ▲2.2547.04 ▲1.63
Sliders /wp-admin/admin.php?page=testimonial-slider-admin1,1132.3848.4961.40
Testimonial Categories /wp-admin/edit-tags.php?taxonomy=testimonial_category&post_type=testimonial1,3322.1227.4229.91
Settings /wp-admin/admin.php?page=testimonial-slider-settings4,1813.9395.4486.26
Add New /wp-admin/post-new.php?post_type=testimonial2,4987.69168.0465.39
All Testimonials /wp-admin/edit.php?post_type=testimonial1,1311.9628.9531.15

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/testimonial-slider/uninstall.php+2
    define() expects at least 2 parameters, 1 given
  • Zombie WordPress options detected upon uninstall: 10 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_testimonial_ssliderr_wid
    • widget_testimonial_sslider_wid
    • theysaidso_admin_options
    • widget_testimonial_ssliderc_wid
    • widget_theysaidso_widget
    • testimonial_slider_scounter

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Please fix the following items
  • 17× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/testimonial-slider/css/skins/textonly/functions.php
    • > /wp-content/plugins/testimonial-slider/css/skins/textonly/settings.php
    • > /wp-content/plugins/testimonial-slider/css/skins/oval/functions.php
    • > /wp-content/plugins/testimonial-slider/css/skins/oval/settings.php
    • > /wp-content/plugins/testimonial-slider/css/skins/minimal/functions.php
    • > /wp-content/plugins/testimonial-slider/testimonial-slider.php
    • > /wp-content/plugins/testimonial-slider/css/skins/minimal/settings.php
    • > /wp-content/plugins/testimonial-slider/slider_versions/widgets_1.php
    • > /wp-content/plugins/testimonial-slider/slider_versions/testimonial_1.php
    • > /wp-content/plugins/testimonial-slider/slider_versions/shortcodes_1.php
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/testimonial-slider/includes/testimonial-slider-functions.php:153
    • > PHP Fatal error
      Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/testimonial-slider/uninstall.php:4
    • > PHP Warning
      define() expects at least 2 parameters, 1 given in wp-content/plugins/testimonial-slider/uninstall.php on line 2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=testimonial-slider-settings
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=testimonial-slider-settings 1041:30 Uncaught SyntaxError: Unexpected token '&'

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Testimonial Slider Skins), #2 (Settings Panel Overview)
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
Please take inspiration from this readme.txt

testimonial-slider/testimonial-slider.php Passed 13 tests

The main PHP file in "Testimonial Slider" ver. 1.3.2 adds more information about the plugin and also serves as the entry point for this plugin
114 characters long description:
Use Testimonial Slider to show the awesome testimonials you have received in a beautiful horizontal slider format.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected8,874 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP195701984,393
JavaScript54402713,886
CSS69364595

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity9.00
▷ Minimum class complexity6.00
▷ Maximum class complexity12.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions82
▷ Named functions82100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
89 PNG files occupy 0.32MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/skins/textonly/buttons/orange/prev.png2.94KB0.32KB▼ 89.03%
css/skins/minimal/buttons/default/prev.png2.94KB0.30KB▼ 89.76%
css/skins/round/buttons/green/next.png2.94KB0.31KB▼ 89.29%
css/skins/round/buttons/orange/next.png2.93KB0.31KB▼ 89.27%
css/skins/minimal/buttons/black/quote.png0.65KB0.65KB▼ 0.60%