78% super-simple-slider

Code Review | Super Simple Slider

WordPress plugin Super Simple Slider scored78%from 54 tests.

About plugin

  • Plugin page: super-simple-slider
  • Plugin version: 1.0.11
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Dec 5, 2019
  • Latest release: Apr 21, 2023
  • Number of updates: 13
  • Update frequency: every 95.3 days
  • Top authors: outtheboxthemes (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /18,102 total downloads

Benchmarks

Plugin footprint 83% 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.09MB] [CPU: ▼3.80ms] Passed 4 tests

This is a short check of server-side resources used by Super Simple Slider
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1043.08 ▼0.90
Dashboard /wp-admin3.38 ▲0.0751.50 ▼4.61
Posts /wp-admin/edit.php3.49 ▲0.1451.06 ▲4.10
Add New Post /wp-admin/post-new.php6.01 ▲0.1387.74 ▼12.40
Media Library /wp-admin/upload.php3.30 ▲0.0740.65 ▲2.72
Our Themes /wp-admin/edit.php?post_type=super-simple-slider&page=themes3.3042.12
Create New Slider /wp-admin/post-new.php?post_type=super-simple-slider3.3958.99
View Sliders /wp-admin/edit.php?post_type=super-simple-slider3.3436.01

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 42 new files
Database: no new tables, 10 new options
New WordPress options
theysaidso_admin_options
otb_new_theme
can_compress_scripts
widget_super-simple-slider-widget
widget_recent-posts
otb_new_theme_namaha_viewed
super_simple_slider_version
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Super Simple Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,961 ▲21513.73 ▼0.557.70 ▲5.8739.11 ▼6.25
Dashboard /wp-admin2,241 ▲535.81 ▼0.02101.32 ▼16.0542.32 ▲0.72
Posts /wp-admin/edit.php2,127 ▲381.99 ▲0.0039.31 ▲2.0033.04 ▼0.99
Add New Post /wp-admin/post-new.php1,567 ▲5323.19 ▲5.52658.59 ▼22.3348.26 ▼8.19
Media Library /wp-admin/upload.php1,429 ▲414.11 ▼0.1396.26 ▼17.8246.62 ▼0.85
Our Themes /wp-admin/edit.php?post_type=super-simple-slider&page=themes9042.0228.1853.44
Create New Slider /wp-admin/post-new.php?post_type=super-simple-slider2,2943.7678.4247.54
View Sliders /wp-admin/edit.php?post_type=super-simple-slider1,0851.9631.3529.41

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 10 options in the database
    • super_simple_slider_version
    • widget_theysaidso_widget
    • otb_new_theme_namaha_viewed
    • otb_new_theme
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_super-simple-slider-widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/super-simple-slider/library/includes/dynamic-css-slider.php
  • 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/super-simple-slider/library/template-parts/repeatable-panel-slide.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/super-simple-slider/library/templates/single-super-simple-slider.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function update_option() in wp-content/plugins/super-simple-slider/library/template-parts/content-themes.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/super-simple-slider/library/template-parts/repeatable-panel-button.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_status() in wp-content/plugins/super-simple-slider/library/template-parts/slider.php:2
    • > PHP Notice
      Undefined variable: has_min_width in wp-content/plugins/super-simple-slider/library/includes/dynamic-css-slider.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/super-simple-slider/library/classes/class-super-simple-slider-widget.php:2
    • > PHP Notice
      Undefined variable: hidden_panel in wp-content/plugins/super-simple-slider/library/template-parts/repeatable-panel-slide.php on line 1
    • > PHP Notice
      Undefined variable: button_count in wp-content/plugins/super-simple-slider/library/template-parts/repeatable-panel-button.php on line 4
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/super-simple-slider/library/template-parts/global-settings.php:4

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 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: wordpress slider, slider, image slider, responsive slider

super-simple-slider/super-simple-slider.php 92% from 13 tests

The entry point to "Super Simple Slider" version 1.0.11 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Requires at least: Required version does not match the one declared in readme.txt ("3.9" instead of "4.0")

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
No dangerous file extensions were detected12,271 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript148741,1984,894
CSS4168653,386
SVG1002,671
PHP143865891,320

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity33.75
▷ Minimum class complexity8.00
▷ Maximum class complexity49.00
Average method complexity3.73
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods48
▷ Static methods36.25%
▷ Public methods4593.75%
▷ Protected methods24.17%
▷ Private methods12.08%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG files were detected