62% addi-simple-slider

Code Review | Simple Responsive Slider

WordPress plugin Simple Responsive Slider scored 62% from 54 tests.

About plugin

  • Plugin page: addi-simple-slider
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.9.1
  • WordPress version: 6.3.1
  • First release: Apr 18, 2014
  • Latest release: Jun 2, 2014
  • Number of updates: 29
  • Update frequency: every 1.6 days
  • Top authors: addix (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active / 5,119 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.22MB] [CPU: ▼41.68ms] Passed 4 tests

Analyzing server-side resources used by Simple Responsive Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.75 ▼0.7114.21 ▼24.87
Dashboard /wp-admin2.79 ▼0.5116.68 ▼31.87
Posts /wp-admin/edit.php2.79 ▼0.5716.19 ▼29.66
Add New Post /wp-admin/post-new.php2.79 ▼3.1015.24 ▼80.31
Media Library /wp-admin/upload.php2.79 ▼0.4417.93 ▼17.87
Add New /wp-admin/post-new.php?post_type=resp_slider2.7915.54
Responsive Sliders /wp-admin/edit.php?post_type=resp_slider2.7916.17

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 127 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Simple Responsive Slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,122 ▲38715.90 ▲1.605.18 ▲3.5843.54 ▲5.39
Dashboard /wp-admin2,440 ▲2556.90 ▲2.04141.66 ▲37.5342.94 ▲1.98
Posts /wp-admin/edit.php2,343 ▲2513.67 ▲1.6751.17 ▲13.5230.15 ▼3.41
Add New Post /wp-admin/post-new.php1,605 ▲8123.56 ▲0.42658.32 ▲15.6237.01 ▼23.31
Media Library /wp-admin/upload.php1,485 ▲974.50 ▲0.3283.74 ▼34.0142.95 ▼6.22
Add New /wp-admin/post-new.php?post_type=resp_slider2,8864.5591.2742.30
Responsive Sliders /wp-admin/edit.php?post_type=resp_slider1,3273.6747.6126.67

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • The plugin did not uninstall gracefully
    • > Warning in wp-includes/class-wp-post-type.php+613
    Invalid argument supplied for foreach()
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=resp_slider
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-includes/class-wp-post-type.php+613
    Invalid argument supplied for foreach()
    • > GET request to /wp-admin/post-new.php?post_type=resp_slider
    • > Notice in wp-content/plugins/addi-simple-slider/slider.php+359
    Undefined index: ssd_slider_box_nonce
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=resp_slider
    • > Notice in wp-content/plugins/addi-simple-slider/methods.php+194
    Undefined offset: 0
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=resp_slider
    • > Notice in wp-content/plugins/addi-simple-slider/methods.php+194
    Undefined offset: 1
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=resp_slider
    • > Notice in wp-content/plugins/addi-simple-slider/methods.php+194
    Undefined offset: 2
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=resp_slider
    • > Notice in wp-content/plugins/addi-simple-slider/methods.php+194
    Undefined offset: 3
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=resp_slider
    • > Notice in wp-content/plugins/addi-simple-slider/methods.php+194
    Undefined offset: 4
    • > GET request to /wp-admin/post-new.php?post_type=resp_slider
    • > Notice in wp-content/plugins/addi-simple-slider/methods.php+262
    Undefined variable: html

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 items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/addi-simple-slider/slider.php:30

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=resp_slider
    • > Network (severe)
    wp-content/plugins/addi-simple-slider/codemirror-3.22/theme/xg-dark.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=resp_slider
    • > Network (severe)
    wp-content/plugins/addi-simple-slider/codemirror-3.22/theme/xg-light.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 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
4 plugin tags: responsiveslides, slider, jquery, simple slider

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

The entry point to "Simple Responsive Slider" version 2.0 is a PHP file that has certain tags in its header comment area
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 ("addi-simple-slider.php" instead of "slider.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin14,120 lines of code in 117 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript631,33974611,313
CSS403521591,595
HTML5881600
PHP314270504
Markdown218065
JSON20035
Bourne Shell1015
YAML1003

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin