84% mklasens-thumbnail-slider-for-woocommerce

Code Review | mklasen's Thumbnail Slider

WordPress plugin mklasen's Thumbnail Slider scored84%from 54 tests.

About plugin

  • Plugin page: mklasens-thumbnai...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9.6
  • WordPress version: 6.3.1
  • First release: Mar 6, 2017
  • Latest release: May 23, 2018
  • Number of updates: 3
  • Update frequency: every 147.3 days
  • Top authors: mklasen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /677 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.38ms] Passed 4 tests

Server-side resources used by mklasen's Thumbnail Slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.37 ▼1.36
Dashboard /wp-admin3.31 ▲0.0044.23 ▼5.46
Posts /wp-admin/edit.php3.36 ▲0.0044.98 ▼1.42
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.82 ▼13.27
Media Library /wp-admin/upload.php3.23 ▲0.0034.05 ▼1.01

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for mklasen's Thumbnail Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲14813.58 ▼0.825.88 ▲3.8842.20 ▼3.21
Dashboard /wp-admin2,209 ▲185.88 ▲0.97104.34 ▼9.6138.33 ▼8.03
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0434.92 ▼0.5332.84 ▼2.08
Add New Post /wp-admin/post-new.php1,535 ▲1623.20 ▲0.07602.85 ▼79.6947.88 ▼14.59
Media Library /wp-admin/upload.php1,385 ▼64.25 ▲0.0698.72 ▲4.8445.00 ▲0.62

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/mklasens-thumbnail-slider-for-woocommerce/mklasens-thumbnail-slider.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: overview, woocommerce, thumbnails, slider, arrows

mklasens-thumbnail-slider-for-woocommerce/mklasens-thumbnail-slider.php 92% from 13 tests

The main file in "mklasen's Thumbnail Slider" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mklasens-thumbnail-slider-for-woocommerce.php" instead of "mklasens-thumbnail-slider.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin127 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS10039
PHP1202435
Stylus11032
JavaScript18221

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin