68% smooth-dynamic-slider

Code Review | Smooth Dynamic Slider

WordPress plugin Smooth Dynamic Slider scored68%from 54 tests.

About plugin

  • Plugin page: smooth-dynamic-sl...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.1
  • WordPress version: 6.3.1
  • First release: Mar 15, 2013
  • Latest release: Mar 29, 2013
  • Number of updates: 22
  • Update frequency: every 0.6 days
  • Top authors: kundanyevale (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /10,741 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.90ms] Passed 4 tests

An overview of server-side resources used by Smooth Dynamic Slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.14 ▼5.14
Dashboard /wp-admin3.33 ▲0.0343.85 ▼4.44
Posts /wp-admin/edit.php3.38 ▲0.0345.73 ▲1.89
Add New Post /wp-admin/post-new.php5.91 ▲0.0382.87 ▼19.87
Media Library /wp-admin/upload.php3.25 ▲0.0235.08 ▲1.86

Server storage [IO: ▲0.06MB] [DB: ▲0.08MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: 2 new tables, 7 new options
New tables
wp_sds_slider
wp_sds_slider_cat
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
sds_slider_whi
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Smooth Dynamic Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,947 ▲19013.55 ▼0.887.90 ▲5.6238.72 ▼15.05
Dashboard /wp-admin2,237 ▲555.87 ▲0.01116.80 ▲11.6638.94 ▼3.07
Posts /wp-admin/edit.php2,120 ▲311.99 ▼0.0235.53 ▲0.9131.83 ▼0.63
Add New Post /wp-admin/post-new.php1,562 ▲2023.21 ▲5.25662.95 ▲33.3957.97 ▲8.62
Media Library /wp-admin/upload.php1,413 ▲254.22 ▼0.0999.30 ▲5.7440.82 ▼0.41
Manage Slider /wp-admin/add-sds_slider.php260.440.0612.93
Manage Category /wp-admin/add-sds_slider.php?page=add-slidercategory260.440.067.46
Settings /wp-admin/add-sds_slider.php?page=slider-setting260.440.076.22

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie tables detected upon uninstall: 2 tables
    • wp_sds_slider_cat
    • wp_sds_slider
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • sds_slider_whi
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smooth-dynamic-slider/sdsslider.php:394
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/smooth-dynamic-slider/sds_slider_setting.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/smooth-dynamic-slider/add-sds_slider.php:139
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/smooth-dynamic-slider/add-sds_slider_cat.php:96

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/add-sds_slider.php
    • > Network (severe)
    wp-admin/add-sds_slider.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/add-sds_slider.php?page=add-slidercategory
    • > Network (severe)
    wp-admin/add-sds_slider.php?page=add-slidercategory - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/add-sds_slider.php?page=slider-setting
    • > Network (severe)
    wp-admin/add-sds_slider.php?page=slider-setting - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Donate link: Invalid URI found ("")
Please take inspiration from this readme.txt

smooth-dynamic-slider/sdsslider.php 92% from 13 tests

The primary PHP file in "Smooth Dynamic Slider" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("smooth-dynamic-slider.php" instead of "sdsslider.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
Good job! No executable or dangerous file extensions detected1,039 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP517331940
JavaScript115884
CSS10015

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity27.50
▷ Minimum class complexity21.00
▷ Maximum class complexity34.00
Average method complexity3.52
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin