74% wp-responsive-slider-with-lightbox

Code Review | Thumbnail Slider With Lightbox

WordPress plugin Thumbnail Slider With Lightbox scored74%from 54 tests.

About plugin

  • Plugin page: wp-responsive-sli...
  • Plugin version: 1.0.20
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3
  • WordPress version: 6.3.1
  • First release: Apr 8, 2014
  • Latest release: Sep 1, 2023
  • Number of updates: 59
  • Update frequency: every 58.2 days
  • Top authors: nik00726 (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

1,000+ active /43,402 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.40MB] [CPU: ▼5.68ms] Passed 4 tests

This is a short check of server-side resources used by Thumbnail Slider With Lightbox
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.86 ▲0.4038.30 ▼6.35
Dashboard /wp-admin3.70 ▲0.4051.66 ▼3.37
Posts /wp-admin/edit.php3.82 ▲0.4647.92 ▼0.71
Add New Post /wp-admin/post-new.php6.28 ▲0.4086.45 ▼12.30
Media Library /wp-admin/upload.php3.62 ▲0.3937.93 ▲1.48
Manage Images /wp-admin/admin.php?page=responsive_thumbnail_slider_with_lightbox_image_management3.6242.91
Slider Settings /wp-admin/admin.php?page=responsive_thumbnail_slider_with_lightbox3.6238.64
Preview Slider /wp-admin/admin.php?page=responsive_thumbnail_slider_with_lightbox_preview3.6340.06

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 37 new files
Database: 1 new table, 8 new options
New tables
wp_responsive_slider_plus_responsive_lightbox
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
responsive_thumbnail_slider_plus_lightbox_messages
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
responsive_thumbnail_slider_plus_lightbox_settings

Browser metrics Passed 4 tests

This is an overview of browser requirements for Thumbnail Slider With Lightbox
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲8514.47 ▲0.092.01 ▼0.0542.42 ▼3.52
Dashboard /wp-admin2,237 ▲495.84 ▲0.90104.07 ▼11.3442.02 ▼0.97
Posts /wp-admin/edit.php2,120 ▲342.03 ▲0.0433.65 ▼2.1435.56 ▲2.55
Add New Post /wp-admin/post-new.php1,567 ▲4718.43 ▼4.59645.02 ▼22.1758.99 ▲1.30
Media Library /wp-admin/upload.php1,413 ▲254.21 ▲0.0495.37 ▼20.9341.84 ▼8.83
Manage Images /wp-admin/admin.php?page=responsive_thumbnail_slider_with_lightbox_image_management1,3424.3490.3584.18
Slider Settings /wp-admin/admin.php?page=responsive_thumbnail_slider_with_lightbox1,7395.02116.5072.30
Preview Slider /wp-admin/admin.php?page=responsive_thumbnail_slider_with_lightbox_preview1,1523.6949.1631.01

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
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_responsive_slider_plus_responsive_lightbox
  • The uninstall procedure has failed, leaving 8 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • responsive_thumbnail_slider_plus_lightbox_settings
    • responsive_thumbnail_slider_plus_lightbox_messages
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-responsive-slider-with-lightbox/wp-responsive-slider-with-lightbox.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: wordpress thumbnail slider lightbox, wordpress responsive lightbox gallery, wordpress image lightbox, wordpress responsive lightbox slideshow, wordpress responsive lightbox scroller...

wp-responsive-slider-with-lightbox/wp-responsive-slider-with-lightbox.php Passed 13 tests

"Thumbnail Slider With Lightbox" version 1.0.20's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
119 characters long description:
This is beautiful responsive thumbnail image slider with responsive lightbox.Add any number of images from admin panel.

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
There were no executable files found in this plugin6,074 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript36336853,102
PHP1808782,295
CSS59767677

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions23
▷ Named functions2295.65%
▷ Anonymous functions14.35%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
18 compressed PNG files occupy 0.14MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/next.png1.32KB1.58KB0.00%
images/controls_fnc.png1.33KB1.42KB0.00%
images/backgroud.png0.07KB0.08KB0.00%
images/close-w.png0.27KB0.29KB0.00%
images/controls.png2.74KB1.42KB▼ 48.29%