62% slidedeck3

Code Review | Content Slider, Image Gallery & Slideshow Plugin | SlideDeck 3

WordPress plugin Content Slider, Image Gallery & Slideshow Plugin | SlideDeck 3 scored 62% from 54 tests.

About plugin

  • Plugin page: slidedeck3
  • Plugin version: 4.5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.7
  • WordPress version: 5.9.2
  • First release: Sep 2, 2015
  • Latest release: Sep 12, 2017
  • Number of updates: 77
  • Update frequency: every 9.6 days
  • Top authors: SlideDeck (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

500+ active / 35,393 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲2.64MB] [CPU: ▼291.52ms] Passed 4 tests

A check of server-side resources used by Content Slider, Image Gallery & Slideshow Plugin | SlideDeck 3
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /6.15 ▲2.6374.14 ▼14.50
Dashboard /wp-admin6.09 ▲2.6847.62 ▲11.60
Posts /wp-admin/edit.php6.32 ▲2.67106.30 ▲68.63
Add New Post /wp-admin/post-new.php9.56 ▲2.58109.30 ▼1,176.76
Media Library /wp-admin/upload.php5.98 ▲2.6837.63 ▲13.60

Server storage [IO: ▲5.77MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
Please fix the following
  • You have illegally modified 1 file (0.00KB) outside of "wp-content/plugins/slidedeck3/" and "wp-content/uploads/"
    • (new file) wp-content/plugins/slidedeck-lenses/.empty
Filesystem: 555 new files
Database: no new tables, 7 new options
New WordPress options
slidedeck2_lite_installed
slidedeck_partner
slidedeck2_installed
slidedeck_cohort
widget_slidedeck2_widget
slidedeck_version
slidedeck_license

Browser metrics Passed 4 tests

A check of browser resources used by Content Slider, Image Gallery & Slideshow Plugin | SlideDeck 3
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,109 ▲36717.91 ▲2.6421.77 ▲15.672.74 ▲0.56
Dashboard /wp-admin2,952 ▲956.21 ▲0.09117.60 ▼21.51193.02 ▲12.80
Posts /wp-admin/edit.php2,753 ▲603.25 ▼0.1268.40 ▲3.85147.22 ▼0.33
Add New Post /wp-admin/post-new.php1,698 ▲3821.94 ▲5.83473.12 ▲21.86162.18 ▼6.07
Media Library /wp-admin/upload.php1,735 ▲465.84 ▲0.39132.43 ▼14.27262.73 ▲10.93
Advanced Options /wp-admin/slidedeck2-lite.php/options260.940.0320.03
Lenses /wp-admin/slidedeck2-lite.php/lenses260.940.0418.56
Get More Features /wp-admin/slidedeck2-lite.php/upgrades260.940.0315.63
Addons /wp-admin/slidedeck2-lite.php/addons260.940.0314.67
Manage /wp-admin/slidedeck2-lite.php260.940.0722.58

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • slidedeck_version
    • slidedeck_cohort
    • slidedeck_partner
    • slidedeck_license
    • slidedeck2_installed
    • slidedeck2_lite_installed
    • widget_slidedeck2_widget

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 8× PHP files output text when accessed directly:
    • > /wp-content/plugins/slidedeck3/views/elements/_ress-js-footer-part.php
    • > /wp-content/plugins/slidedeck3/views/elements/_editor-styles.php
    • > /wp-content/plugins/slidedeck3/views/elements/_insert-iframe-table.php
    • > /wp-content/plugins/slidedeck3/views/help/whats-new.php
    • > /wp-content/plugins/slidedeck3/views/elements/_blog-feed.php
    • > /wp-content/plugins/slidedeck3/views/elements/_pointers.php
    • > /wp-content/plugins/slidedeck3/views/elements/_upgrade_button.php
    • > /wp-content/plugins/slidedeck3/slidedeck2-lite.php
  • 165× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/slidedeck3/views/elements/_no-content-found.php:37
    • > PHP Notice
      Undefined variable: addon in wp-content/plugins/slidedeck3/views/elements/_addons.php on line 37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function slidedeck2_action() in wp-content/plugins/slidedeck3/views/elements/_create-custom-slidedeck-block.php:11
    • > PHP Notice
      Undefined variable: slide in wp-content/plugins/slidedeck3/sources/custom/slides/image/views/show.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/slidedeck3/views/getcode-dialog.php:35
    • > PHP Notice
      Undefined variable: slidedeck in wp-content/plugins/slidedeck3/sources/youtube/views/show.php on line 34
    • > PHP Fatal error
      Uncaught Error: Class 'SlideDeck' not found in wp-content/plugins/slidedeck3/sources/posts/source.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/slidedeck3/sources/custom/slides/image/views/_image-upload-html4-form.php:5
    • > PHP Notice
      Undefined variable: lens in wp-content/plugins/slidedeck3/views/preview-iframe.php on line 83
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Upgrader' not found in wp-content/plugins/slidedeck3/classes/slidedeck-lens-upload.php:26

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/slidedeck2-lite.php/options
    • > Network (severe)
    wp-admin/slidedeck2-lite.php/options - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/slidedeck2-lite.php/lenses
    • > Network (severe)
    wp-admin/slidedeck2-lite.php/lenses - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/slidedeck2-lite.php/upgrades
    • > Network (severe)
    wp-admin/slidedeck2-lite.php/upgrades - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/slidedeck2-lite.php/addons
    • > Network (severe)
    wp-admin/slidedeck2-lite.php/addons - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/slidedeck2-lite.php
    • > Network (severe)
    wp-admin/slidedeck2-lite.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: image slider, gallery, carousel, content slider, posts slider

slidedeck3/slidedeck2-lite.php 85% from 13 tests

The main PHP script in "Content Slider, Image Gallery & Slideshow Plugin | SlideDeck 3" version 4.5.2 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("slidedeck3.php" instead of "slidedeck2-lite.php")
  • Description: The description should be shorter than 140 characters (currently 184 characters long)

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Almost there! Just fix the following issues
  • Do not include executable or dangerous files in your plugin
    • .xap - Silverlight Application Package in Microsoft Silverlight
      • wp-content/plugins/slidedeck3/sources/custom/slides/image/js/Moxie.xap
      • wp-content/plugins/slidedeck3/sources/custom/slides/image/js/plupload.silverlight.xap
49,284 lines of code in 226 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1014,7696,02621,256
CSS2888122214,434
PHP903,2156,06513,041
HTML1537266
JSON400239
Markdown242048

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity71.62
▷ Minimum class complexity2.00
▷ Maximum class complexity535.00
Average method complexity5.38
▷ Minimum method complexity1.00
▷ Maximum method complexity99.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes26
▷ Abstract classes00.00%
▷ Concrete classes26100.00%
▷ Final classes00.00%
Methods419
▷ Static methods204.77%
▷ Public methods39995.23%
▷ Protected methods20.48%
▷ Private methods184.30%
Functions29
▷ Named functions2896.55%
▷ Anonymous functions13.45%
Constants28
▷ Global constants28100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
258 PNG files occupy 1.37MB with 1.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/glass-arrows.png6.99KB2.41KB▼ 65.50%
images/choose-dynamic-decks.png14.88KB6.01KB▼ 59.60%
lenses/prime/deck-nav-light-bg.png1.03KB0.14KB▼ 86.15%
lenses/o-town/hash-black-bg.png0.98KB0.12KB▼ 88.11%
images/flyout-tab.png1.30KB0.41KB▼ 68.05%