10% dessky-responsive-slider

Code Review | Dessky Responsive Slider

WordPress plugin Dessky Responsive Slider scored10%from 54 tests.

About plugin

  • Plugin page: dessky-responsive...
  • Plugin version: 1.7.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.3
  • WordPress version: 6.3.1
  • First release: Nov 5, 2014
  • Latest release: Oct 3, 2023
  • Number of updates: 10
  • Update frequency: every 325.5 days
  • Top authors: dessky (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /8,003 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/dessky-responsive-slider/dessky-responsive-slider.php+622
    Undefined variable: ex_options

Server metrics [RAM: ▲0.15MB] [CPU: ▼4.66ms] Passed 4 tests

This is a short check of server-side resources used by Dessky Responsive Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1748.32 ▲8.29
Dashboard /wp-admin3.49 ▲0.1152.46 ▼17.74
Posts /wp-admin/edit.php3.60 ▲0.2150.19 ▼0.86
Add New Post /wp-admin/post-new.php6.08 ▲0.16101.86 ▼6.53
Media Library /wp-admin/upload.php3.41 ▲0.1539.20 ▲6.51
All Slides /wp-admin/edit.php?post_type=slides3.4640.02
Add New Slide /wp-admin/post-new.php?post_type=slides3.5052.76
Settings /wp-admin/edit.php?post_type=slides&page=responsive-slider-settings3.3836.90

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
dessky_version
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
dessky_responsive_slider_options

Browser metrics Passed 4 tests

An overview of browser requirements for Dessky Responsive Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,921 ▲17513.70 ▼0.606.38 ▲4.7144.64 ▲3.43
Dashboard /wp-admin2,238 ▲505.86 ▼0.0497.69 ▼7.9239.67 ▼3.75
Posts /wp-admin/edit.php2,118 ▲292.00 ▲0.0234.33 ▼8.9533.72 ▼1.07
Add New Post /wp-admin/post-new.php1,559 ▲4523.43 ▲5.95599.15 ▼82.6547.71 ▼2.79
Media Library /wp-admin/upload.php1,420 ▲294.22 ▼0.0896.02 ▼5.4342.89 ▼1.48
All Slides /wp-admin/edit.php?post_type=slides1,1202.0134.0029.41
Add New Slide /wp-admin/post-new.php?post_type=slides1,7493.6462.2434.58
Settings /wp-admin/edit.php?post_type=slides&page=responsive-slider-settings9672.0323.2724.95

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 does not fully uninstall, leaving 7 options in the database
    • dessky_version
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dessky-responsive-slider/dessky-responsive-slider.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: Too many tags (28 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

dessky-responsive-slider/dessky-responsive-slider.php Passed 13 tests

"Dessky Responsive Slider" version 1.7.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
110 characters long description:
Dessky Responsive Slider is a simple and light-weight plugin for creating only one slideshow with a shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin687 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP1134234418
CSS31628181
JavaScript291869
SVG10019

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions45
▷ Named functions45100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/slides-icon.png1.23KB1.48KB0.00%
images/slider-nav.png1.29KB0.90KB▼ 30.36%