84% slideshow-se

Code Review | Slideshow SE

WordPress plugin Slideshow SE scored84%from 54 tests.

About plugin

  • Plugin page: slideshow-se
  • Plugin version: 2.5.12
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Aug 21, 2020
  • Latest release: Aug 23, 2023
  • Number of updates: 54
  • Update frequency: every 20.3 days
  • Top authors: f1rehead (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /11,735 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼2.22ms] Passed 4 tests

Analyzing server-side resources used by Slideshow SE
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0838.21 ▲0.61
Dashboard /wp-admin3.37 ▲0.0748.35 ▼3.72
Posts /wp-admin/edit.php3.42 ▲0.0754.99 ▲4.49
Add New Post /wp-admin/post-new.php6.03 ▲0.1496.34 ▼4.25
Media Library /wp-admin/upload.php3.29 ▲0.0637.00 ▼1.52
Slideshows /wp-admin/edit.php?post_type=slideshow3.3640.76
General Settings /wp-admin/edit.php?post_type=slideshow&page=general_settings3.3539.49
Add New /wp-admin/post-new.php?post_type=slideshow3.4951.37

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 128 new files
Database: no new tables, 8 new options
New WordPress options
widget_slideshowsewidget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
slideshow-jquery-image-gallery-plugin-version
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Slideshow SE
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,857 ▲11113.43 ▼1.131.76 ▲0.1538.65 ▲1.08
Dashboard /wp-admin2,252 ▲605.21 ▲0.23112.48 ▼0.6941.53 ▼0.69
Posts /wp-admin/edit.php2,127 ▲352.41 ▲0.3642.93 ▲1.4836.14 ▼0.74
Add New Post /wp-admin/post-new.php6,231 ▲4,69619.56 ▼3.48823.58 ▲117.6435.03 ▼33.42
Media Library /wp-admin/upload.php1,444 ▲564.42 ▲0.2090.26 ▼20.6942.49 ▼7.88
Slideshows /wp-admin/edit.php?post_type=slideshow1,2733.5645.7926.13
General Settings /wp-admin/edit.php?post_type=slideshow&page=general_settings1,9263.5741.5525.15
Add New /wp-admin/post-new.php?post_type=slideshow2,8934.1371.2536.98

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_slideshowsewidget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • slideshow-jquery-image-gallery-plugin-version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
  • 19× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/slideshow-se/views/SlideshowSEPluginSlideshowSlide/frontend_attachment.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/slideshow-se/classes/SlideshowSEPluginWidget.php:8
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/slideshow-se/views/SlideshowSEPluginSlideshowSlide/frontend_video.php on line 3
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/slideshow-se/views/SlideshowSEPluginSlideshowSlide/backend_templates.php on line 1
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/slideshow-se/views/SlideshowSEPluginPostType/settings.php on line 1
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/slideshow-se/views/SlideshowSEPluginGeneralSettings/general-settings.php on line 2
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/slideshow-se/views/SlideshowSEPluginSlideshowSlide/frontend_text.php on line 3
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/slideshow-se/views/SlideshowSEPluginPostType/style-settings.php on line 1
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/slideshow-se/views/SlideshowSEPluginSlideshowSlide/backend_attachment.php on line 3
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/slideshow-se/views/SlideshowSEPluginSlideshowSlide/backend_text.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

slideshow-se/slideshow-se.php 92% from 13 tests

The main file in "Slideshow SE" v. 2.5.12 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 247 characters long)

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
No dangerous file extensions were detected15,180 lines of code in 90 files:
LanguageFilesBlank linesComment linesLines of code
PO File223,5567,6438,016
PHP329001,0153,549
JavaScript205928532,658
CSS814113691
SVG400236
JSON10014
Sass21014
Markdown1302

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity28.83
▷ Minimum class complexity1.00
▷ Maximum class complexity113.00
Average method complexity5.44
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods76
▷ Static methods7092.11%
▷ Public methods6484.21%
▷ Protected methods00.00%
▷ Private methods1215.79%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
10 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/SlideshowSEPluginPostType/adminIcon32.png0.41KB0.19KB▼ 53.85%
images/SlideshowSEPlugin/dark-bullet.png2.91KB0.22KB▼ 92.59%
images/SlideshowSEPlugin/light-controlpanel.png2.90KB0.23KB▼ 92.08%
images/SlideshowSEPlugin/light-arrows.png3.65KB0.87KB▼ 76.16%
images/SlideshowSEPlugin/dark-arrows.png3.67KB0.42KB▼ 88.63%