84% simple-slider-ssp

Code Review | WP Slider Plugin

WordPress plugin WP Slider Plugin scored 84% from 54 tests.

About plugin

  • Plugin page: simple-slider-ssp
  • Plugin version: 1.4.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4
  • WordPress version: 5.8.1
  • First release: Dec 2, 2012
  • Latest release: Jan 17, 2016
  • Number of updates: 60
  • Update frequency: every 19.0 days
  • Top authors: Muneeb (100%)

Code review

54 tests

User reviews

37 reviews

Install metrics

5,000+ active / 188,957 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.88MB] [CPU: ▼178.95ms] Passed 4 tests

Analyzing server-side resources used by WP Slider Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.1638.63 ▲15.04
Dashboard /wp-admin2.77 ▼0.2821.18 ▼28.11
Posts /wp-admin/edit.php2.77 ▼0.3422.18 ▼26.68
Add New Post /wp-admin/post-new.php2.77 ▼2.6622.43 ▼644.65
Media Library /wp-admin/upload.php2.77 ▼0.2421.46 ▼16.36

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 33 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for WP Slider Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,878 ▲28216.30 ▲0.7814.99 ▲6.1745.78 ▼11.41
Dashboard /wp-admin3,063 ▲1325.88 ▼0.08146.29 ▲0.30111.91 ▼9.97
Posts /wp-admin/edit.php2,831 ▲922.81 ▼0.0167.79 ▼0.9895.59 ▲3.83
Add New Post /wp-admin/post-new.php1,672 ▲17421.40 ▲2.52282.54 ▼92.09112.16 ▼14.02
Media Library /wp-admin/upload.php1,899 ▲925.02 ▲0.01162.72 ▲4.53117.96 ▼13.33

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
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5211
    add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead.

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)
The smoke test was a success, however most plugin functionality was not tested

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
Please take a closer look at the following
  • 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/simple-slider-ssp/views/ssp_skins/default/slider.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/simple-slider-ssp/views/new_slide_template.php:20
    • > PHP Notice
      Undefined variable: post_status in wp-content/plugins/simple-slider-ssp/views/custom_publish_meta_box.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/simple-slider-ssp/config.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/simple-slider-ssp/views/intro_box.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/simple-slider-ssp/wp-slider.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/simple-slider-ssp/views/shortcode_meta_box.php:5
    • > PHP Notice
      Undefined variable: shortcode in wp-content/plugins/simple-slider-ssp/views/shortcode_meta_box.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function submit_button() in wp-content/plugins/simple-slider-ssp/views/custom_publish_meta_box.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/simple-slider-ssp/views/options_meta_box.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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
Attributes that need to be fixed:
  • Tags: You are using too many tags: 74 tag instead of maximum 10
You can look at the official readme.txt

simple-slider-ssp/wp-slider.php 92% from 13 tests

The entry point to "WP Slider Plugin" version 1.4.5 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-slider-ssp.php" instead of "wp-slider.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin2,381 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP15541461,302
CSS316734769
JavaScript21448310

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity20.25
▷ Minimum class complexity2.00
▷ Maximum class complexity53.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods47
▷ Static methods36.38%
▷ Public methods47100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants15100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/html-feature.png10.60KB3.88KB▼ 63.39%
views/ssp_skins/default/lib/images/bg_direction_nav.png1.82KB0.79KB▼ 56.38%
images/sprite.png6.40KB3.00KB▼ 53.07%