10% slideshow-wp

Code Review | Slideshow Wp

WordPress plugin Slideshow Wp scored 10% from 54 tests.

About plugin

  • Plugin page: slideshow-wp
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 4, 2017
  • Latest release: Mar 21, 2017
  • Number of updates: 202
  • Update frequency: every 0.6 days
  • Top authors: aumsrini (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active / 3,083 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/slideshow-wp/includes/sswp-functions.php+447
    Function create_function() is deprecated

Server metrics [RAM: ▼1.83MB] [CPU: ▼53.04ms] Passed 4 tests

An overview of server-side resources used by Slideshow Wp
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.16 ▼1.304.73 ▼33.89
Dashboard /wp-admin2.18 ▼1.126.12 ▼40.13
Posts /wp-admin/edit.php2.18 ▼1.186.34 ▼42.97
Add New Post /wp-admin/post-new.php2.18 ▼3.717.20 ▼95.15
Media Library /wp-admin/upload.php2.18 ▼1.056.75 ▼27.31
All Sliders /wp-admin/edit.php?post_type=sswp_slider2.185.56
Add Slider /wp-admin/post-new.php?post_type=sswp_slider2.186.29

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 183 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_sswp_widget
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Slideshow Wp: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,964 ▲22914.03 ▼0.365.51 ▲3.5938.33 ▼6.40
Dashboard /wp-admin2,239 ▲485.86 ▲0.9699.22 ▼17.2374.76 ▲33.33
Posts /wp-admin/edit.php2,137 ▲482.02 ▼0.0335.55 ▼3.8332.74 ▼1.48
Add New Post /wp-admin/post-new.php1,567 ▲3423.44 ▲0.18744.02 ▲147.0248.89 ▼4.01
Media Library /wp-admin/upload.php1,445 ▲574.18 ▼0.00108.93 ▲13.8146.95 ▲5.39
All Sliders /wp-admin/edit.php?post_type=sswp_slider1,1121.9934.9328.48
Add Slider /wp-admin/post-new.php?post_type=sswp_slider1,8443.8573.3595.13

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/slideshow-wp/includes/sswp-functions.php+447
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_sswp_widget

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=sswp_slider
    • > Deprecated in wp-content/plugins/slideshow-wp/includes/sswp-functions.php+447
    Function create_function() is deprecated

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 fix the following
  • 5× PHP files output text when accessed directly:
    • > /wp-content/plugins/slideshow-wp/admin/partials/slideshow-wp-admin-display.php
    • > /wp-content/plugins/slideshow-wp/includes/framework/inc/templates/media.php
    • > /wp-content/plugins/slideshow-wp/public/partials/slideshow-wp-public-display.php
    • > /wp-content/plugins/slideshow-wp/includes/framework/inc/templates/upload.php
    • > /wp-content/plugins/slideshow-wp/includes/framework/inc/templates/image-advanced.php
  • 52× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/slideshow-wp/includes/framework/inc/fields/custom-html.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slideshow-wp/includes/sswp-functions.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Text_Field' not found in wp-content/plugins/slideshow-wp/includes/framework/inc/fields/oembed.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Image_Field' not found in wp-content/plugins/slideshow-wp/includes/framework/inc/fields/thickbox-image.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Input_List_Field' not found in wp-content/plugins/slideshow-wp/includes/framework/inc/fields/checkbox-list.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Object_Choice_Field' not found in wp-content/plugins/slideshow-wp/includes/framework/inc/fields/post.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/slideshow-wp/includes/framework/inc/fields/choice.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Multiple_Values_Field' not found in wp-content/plugins/slideshow-wp/includes/framework/inc/fields/autocomplete.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/slideshow-wp/includes/framework/inc/fields/divider.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Select_Field' not found in wp-content/plugins/slideshow-wp/includes/framework/inc/fields/select-advanced.php:5

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 user-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=sswp_slider
    • > Rendering (warning) in unknown
    /wp-admin/post-new.php?post_type=sswp_slider 375 The specified value "auto" cannot be parsed, or is out of range.
    • > GET request to /wp-admin/post-new.php?post_type=sswp_slider
    • > Network (severe)
    wp-content/plugins/slideshow-wp/includes/framework/js/select.js?ver=4.9.6 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/post-new.php?post_type=sswp_slider
    • > Network (severe)
    wp-content/plugins/slideshow-wp/includes/framework/js/input-list.js?ver=4.9.6 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/post-new.php?post_type=sswp_slider
    • > Javascript (severe) in unknown
    /wp-content/plugins/slideshow-wp/includes/framework/extn/meta-box-conditional-logic/assets/js/conditional-logic.js?ver=1.3.1 417:24 Uncaught TypeError: $(...).live is not a function

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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
These attributes need your attention:
  • Requires at least: Invalid plugin version format
The official readme.txt might help

slideshow-wp/slideshow-wp.php Passed 13 tests

The main PHP script in "Slideshow Wp" version 1.1 is automatically included on every request by WordPress
134 characters long description:
Slideshow WP Is a responsive slider with touch and swipe slider.Slideshow WP supports two types of slider like fullwidth and carousel.

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
Success! There were no dangerous files found in this plugin7,489 lines of code in 143 files:
LanguageFilesBlank linesComment linesLines of code
PHP889873,2434,582
CSS371211171,756
JavaScript152492631,114
PO File12427
JSON20010

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity7.05
▷ Minimum class complexity1.00
▷ Maximum class complexity49.00
Average method complexity2.32
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes75
▷ Abstract classes79.33%
▷ Concrete classes6890.67%
▷ Final classes00.00%
Methods344
▷ Static methods23869.19%
▷ Public methods32293.60%
▷ Protected methods154.36%
▷ Private methods72.03%
Functions16
▷ Named functions1487.50%
▷ Anonymous functions212.50%
Constants6
▷ Global constants6100.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
14 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/framework/img/jqueryui/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
includes/framework/img/jqueryui/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%
includes/framework/img/jqueryui/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%
includes/framework/img/jqueryui/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%
includes/framework/img/jqueryui/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%