79% slidr

Code Review | Slidr

WordPress plugin Slidr scored79%from 54 tests.

About plugin

  • Plugin page: slidr
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: Apr 10, 2015
  • Latest release: Dec 29, 2022
  • Number of updates: 34
  • Update frequency: every 82.9 days
  • Top authors: gsarig (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /5,836 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.26MB] [CPU: ▼7.46ms] Passed 4 tests

Analyzing server-side resources used by Slidr
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0940.25 ▲3.37
Dashboard /wp-admin3.64 ▲0.2946.59 ▼12.03
Posts /wp-admin/edit.php3.76 ▲0.4047.58 ▲0.37
Add New Post /wp-admin/post-new.php6.22 ▲0.3380.00 ▼21.53
Media Library /wp-admin/upload.php3.57 ▲0.3336.94 ▲3.61
Slidr /wp-admin/tools.php?page=slidr-options3.5336.36

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
slidr_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Slidr
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,880 ▲11913.52 ▼0.898.02 ▲6.3744.97 ▲6.75
Dashboard /wp-admin2,199 ▲225.58 ▼0.0491.62 ▲5.0136.90 ▼5.79
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0740.01 ▲2.0734.62 ▼6.30
Add New Post /wp-admin/post-new.php1,529 ▲123.61 ▲0.55677.05 ▲35.9260.67 ▲1.62
Media Library /wp-admin/upload.php1,407 ▲74.17 ▼0.03103.96 ▲5.6243.62 ▼0.21
Slidr /wp-admin/tools.php?page=slidr-options2,2272.2248.0958.20

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% 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 items
  • 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function has_action() in wp-content/plugins/slidr/inc/gallery-shortcode.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function slidr() in wp-content/plugins/slidr/inc/attributes.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function slidr() in wp-content/plugins/slidr/inc/gallery-defaults.php:48
    • > PHP Fatal error
      Uncaught Error: Call to undefined function slidr() in wp-content/plugins/slidr/inc/gallery-defaults.php:48
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slidr/css/slidr-styles.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/slidr/inc/shortcode.php:113
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/slidr/slidr.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function slidr() in wp-content/plugins/slidr/inc/markup.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_theme_supports() in wp-content/plugins/slidr/inc/infobox-content.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slidr/inc/conditional.php:59

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/tools.php?page=slidr-options
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'mozilla')" "TypeError: Cannot read properties of undefined (reading 'mozilla')\n at HTMLDocument.\u003Canonymous> (/wp-admin/tools.php?page=slidr-options:285:18)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/tools.php?page=slidr-options
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of undefined (reading 'mozilla')

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: carousel, thumbnail slider, image carousel, slideshow, image gallery...

slidr/slidr.php Passed 13 tests

This is the main PHP file of "Slidr" version 1.4.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
109 characters long description:
A clean, simple, responsive and touch-friendly Carousel with no bells and whistles but plenty of flexibility.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,943 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP142271951,350
CSS372442
JavaScript12018151

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity38.00
▷ Minimum class complexity38.00
▷ Maximum class complexity38.00
Average method complexity3.85
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin