74% wp-responsive-thumbnail-slider

Code Review | Thumbnail carousel slider

WordPress plugin Thumbnail carousel slider scored 74% from 54 tests.

About plugin

  • Plugin page: wp-responsive-thu...
  • Plugin version: 1.1.12
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3
  • WordPress version: 6.3.1
  • First release: Aug 24, 2013
  • Latest release: Aug 27, 2023
  • Number of updates: 73
  • Update frequency: every 50.1 days
  • Top authors: nik00726 (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

3,000+ active / 93,166 total downloads

Benchmarks

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

Server-side resources used by Thumbnail carousel slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.86 ▲0.4043.24 ▲2.81
Dashboard /wp-admin3.71 ▲0.4152.85 ▲1.93
Posts /wp-admin/edit.php3.82 ▲0.4747.91 ▲2.12
Add New Post /wp-admin/post-new.php6.29 ▲0.40101.49 ▲1.07
Media Library /wp-admin/upload.php3.63 ▲0.4038.20 ▲4.10
Preview Slider /wp-admin/admin.php?page=responsive_thumbnail_slider_preview3.6036.65
Slider Setting /wp-admin/admin.php?page=responsive_thumbnail_slider3.5840.52
Manage Images /wp-admin/admin.php?page=responsive_thumbnail_slider_image_management3.6439.69

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 24 new files
Database: 1 new table, 8 new options
New tables
wp_responsive_thumbnail_slider
New WordPress options
responsive_thumbnail_slider_messages
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
responsive_thumbnail_slider_settings
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Thumbnail carousel slider
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9614.81 ▲0.441.92 ▲0.0742.73 ▼1.30
Dashboard /wp-admin2,240 ▲525.86 ▲0.96101.44 ▼4.7842.98 ▼1.08
Posts /wp-admin/edit.php2,120 ▲312.02 ▼0.0237.72 ▼0.9737.86 ▲5.53
Add New Post /wp-admin/post-new.php1,562 ▲4823.37 ▲5.80599.77 ▼82.1564.41 ▲7.06
Media Library /wp-admin/upload.php1,419 ▲314.18 ▼0.0297.79 ▼6.1442.54 ▼7.30
Preview Slider /wp-admin/admin.php?page=responsive_thumbnail_slider_preview9272.3335.8527.80
Slider Setting /wp-admin/admin.php?page=responsive_thumbnail_slider1,5543.7582.6635.37
Manage Images /wp-admin/admin.php?page=responsive_thumbnail_slider_image_management1,2894.3790.8687.50

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • Zombie tables detected upon uninstall: 1 table
    • wp_responsive_thumbnail_slider
  • This plugin does not fully uninstall, leaving 8 options in the database
    • db_upgraded
    • responsive_thumbnail_slider_settings
    • widget_recent-comments
    • responsive_thumbnail_slider_messages
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means 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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-responsive-thumbnail-slider/wp-responsive-images-thumbnail-slider.php:13

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)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: responsive thumbnail gallery, wordpress responsive slideshow, wordpress responsive slider carousel, wordpress responsive image slider, wordpress gallery responsive...

wp-responsive-thumbnail-slider/wp-responsive-images-thumbnail-slider.php 92% from 13 tests

"Thumbnail carousel slider" version 1.1.12's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-responsive-thumbnail-slider.php" instead of "wp-responsive-images-thumbnail-slider.php")

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 detected4,721 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP1818772,341
JavaScript32886382,146
CSS24429234

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
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%
Functions22
▷ Named functions2195.45%
▷ Anonymous functions14.55%
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
7 PNG files occupy 0.16MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/asc.png0.14KB0.12KB▼ 13.79%
images/controls.png2.74KB1.42KB▼ 48.29%
images/300x250.png42.63KB15.16KB▼ 64.44%
images/300x250-wp-eng.png34.77KB13.75KB▼ 60.46%
images/SEO-247x180.png29.41KB14.71KB▼ 49.98%