10% slidedeck-lite-for-wordpress

Code Review | SlideDeck 1 Lite Content Slider

WordPress plugin SlideDeck 1 Lite Content Slider scored10%from 54 tests.

About plugin

  • Plugin page: slidedeck-lite-fo...
  • Plugin version: 1.4.8
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.6-3.5
  • WordPress version: 6.3.1
  • First release: Apr 5, 2010
  • Latest release: Mar 20, 2013
  • Number of updates: 81
  • Update frequency: every 13.3 days
  • Top authors: dtelepathy (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

500+ active /251,225 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/slidedeck-lite-for-wordpress/slidedeck.php+2325
    Methods with the same name as their class will not be constructors in a future version of PHP; SlideDeckWidget has a deprecated constructor

Server metrics [RAM: ▼1.32MB] [CPU: ▼56.14ms] Passed 4 tests

Analyzing server-side resources used by SlideDeck 1 Lite Content Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.68 ▼0.785.53 ▼34.83
Dashboard /wp-admin2.70 ▼0.658.32 ▼55.43
Posts /wp-admin/edit.php2.70 ▼0.668.22 ▼40.95
Add New Post /wp-admin/post-new.php2.70 ▼3.199.12 ▼93.35
Media Library /wp-admin/upload.php2.70 ▼0.537.98 ▼23.14

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

How much does this plugin use your filesystem and database?
Please fix the following
  • Illegal file modification detected: 1 file (0.00KB) outside of "wp-content/plugins/slidedeck-lite-for-wordpress/" and "wp-content/uploads/"
    • (new file) wp-content/plugins/slidedeck-skins/.empty
Filesystem: 140 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
slidedeck_legacy_import_complete
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_slidedeck_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by SlideDeck 1 Lite Content Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,928 ▲18213.96 ▲0.694.68 ▲0.2639.34 ▼3.35
Dashboard /wp-admin2,234 ▲464.92 ▼0.93114.28 ▲12.4767.39 ▲20.23
Posts /wp-admin/edit.php2,132 ▲432.01 ▼0.0437.21 ▼3.1834.06 ▲0.75
Add New Post /wp-admin/post-new.php6,427 ▲4,89420.82 ▼2.58926.93 ▲261.4479.74 ▲23.52
Media Library /wp-admin/upload.php1,422 ▲344.17 ▼0.0792.91 ▼9.1569.06 ▲25.99
Learn About Pro /wp-admin/slidedeck.php/upgrade260.440.1216.88
Edit /wp-admin/slidedeck.php260.440.105.64
Add New /wp-admin/slidedeck.php/slidedeck_add_new260.440.086.81
Add Smart SlideDeck /wp-admin/slidedeck.php/slidedeck_dynamic260.440.066.83

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 validation failed for this plugin
    • > Deprecated in wp-content/plugins/slidedeck-lite-for-wordpress/slidedeck.php+2325
    Methods with the same name as their class will not be constructors in a future version of PHP; SlideDeckWidget has a deprecated constructor
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_slidedeck_widget
    • slidedeck_legacy_import_complete

Smoke tests 25% 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)
Good news, no errors were detected

SRP 0% 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
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/slidedeck-lite-for-wordpress/views/_notification_bar.php
  • 29× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/slidedeck-lite-for-wordpress/views/_edit-slide.php on line 37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function slidedeck_action() in wp-content/plugins/slidedeck-lite-for-wordpress/views/_tinymce-plugin-dialog.php:63
    • > PHP Notice
      Undefined variable: count in wp-content/plugins/slidedeck-lite-for-wordpress/views/_edit-slide.php on line 55
    • > PHP Notice
      Undefined variable: count in wp-content/plugins/slidedeck-lite-for-wordpress/views/_edit-slide.php on line 33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function slidedeck_show_message() in wp-content/plugins/slidedeck-lite-for-wordpress/views/edit-form.php:41
    • > PHP Notice
      Undefined variable: first_preview in wp-content/plugins/slidedeck-lite-for-wordpress/views/preview.php on line 33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function slidedeck() in wp-content/plugins/slidedeck-lite-for-wordpress/views/preview.php:35
    • > PHP Notice
      Undefined variable: count in wp-content/plugins/slidedeck-lite-for-wordpress/views/_edit-slide.php on line 55
    • > PHP Notice
      Undefined variable: slidedeck_post_meta in wp-content/plugins/slidedeck-lite-for-wordpress/views/sidebar.php on line 36
    • > PHP Notice
      Undefined variable: count in wp-content/plugins/slidedeck-lite-for-wordpress/views/_edit-slide.php on line 49

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/slidedeck.php/upgrade
    • > Network (severe)
    wp-admin/slidedeck.php/upgrade - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/slidedeck.php
    • > Network (severe)
    wp-admin/slidedeck.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/slidedeck.php/slidedeck_add_new
    • > Network (severe)
    wp-admin/slidedeck.php/slidedeck_add_new - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/slidedeck.php/slidedeck_dynamic
    • > Network (severe)
    wp-admin/slidedeck.php/slidedeck_dynamic - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (The SlideDeck editing view. Create a SlideDeck, add slides, re-order slides and change SlideDeck settings with the sidebar modules.), #2 (Preview your SlideDeck before you insert it into a post or into your theme.), #3 (SlideDeck integrates seamlessly in your post and page editing views. Just click on the `Embed a SlideDeck` button in the WYSIWYG editor and choose a SlideDeck you have created from the list in the dialog box. You can also specify dimensions for how the SlideDeck appears in your post.), #4 (Insert SlideDecks directly into your posts or pages.), #5 (Smart SlideDecks - create a SlideDeck out of your pre-existing posts! Choose the most recent posts on your blog, featured posts, or popular posts (requires at least WordPress 2.9+) and even filter by category.), #6 (Use `Gallery Style` Smart SlideDecks to create interactive elements in your theme or posts.), #7 (A preview of the Smart SlideDeck. Three different navigation layouts available - Post Titles, Post Dates, and Dots.)
  • Tags: Please delete some tags, you are using 23 tag instead of maximum 10
Please take inspiration from this readme.txt

slidedeck-lite-for-wordpress/slidedeck.php 85% from 13 tests

The entry point to "SlideDeck 1 Lite Content Slider" version 1.4.8 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: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("slidedeck-lite-for-wordpress.php" instead of "slidedeck.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 570 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected9,112 lines of code in 55 files:
LanguageFilesBlank linesComment linesLines of code
CSS251945383,857
JavaScript154473442,746
PHP124529752,195
HTML1537266
Markdown242048

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions58
▷ Named functions58100.00%
▷ Anonymous functions00.00%
Constants16
▷ Global constants16100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
64 PNG files occupy 0.27MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
skins/image_caption_top/70percent_transparent_black.png2.69KB0.17KB▼ 93.86%
lib/tinymce3/img/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%
images/order_desc.png0.19KB0.17KB▼ 9.33%
images/slidedeck_pro_logo_sidebar.png8.46KB7.43KB▼ 12.15%
skins/slidedeck-classic/indexes.png0.58KB0.54KB▼ 6.78%