77% slim-slider

Code Review | Slim Slider

WordPress plugin Slim Slider scored 77% from 54 tests.

About plugin

  • Plugin page: slim-slider
  • Plugin version: 0.20.01
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.0
  • WordPress version: 6.3.1
  • First release: Apr 23, 2021
  • Latest release: Jan 20, 2023
  • Number of updates: 12
  • Update frequency: every 53.1 days
  • Top authors: icelayer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,467 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.27MB] [CPU: ▲2.99ms] Passed 4 tests

This is a short check of server-side resources used by Slim Slider
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.3042.15 ▼0.88
Dashboard /wp-admin3.60 ▲0.3046.50 ▲2.50
Posts /wp-admin/edit.php3.65 ▲0.2946.52 ▲2.44
Add New Post /wp-admin/post-new.php6.12 ▲0.2493.28 ▲11.08
Media Library /wp-admin/upload.php3.46 ▲0.2340.39 ▲7.88
Get Started /wp-admin/edit.php?post_type=slimslide&page=slim-slider-getting-started3.4331.25
All Slides /wp-admin/edit.php?post_type=slimslide3.5638.62
All Sliders /wp-admin/edit.php?post_type=slslider3.5636.29
Add New /wp-admin/post-new.php?post_type=slslider3.5942.32
Add New /wp-admin/post-new.php?post_type=slimslide3.6746.82

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 67 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Slim Slider
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,864 ▲12914.45 ▼0.221.75 ▲0.1644.13 ▼3.63
Dashboard /wp-admin2,267 ▲765.89 ▲0.04107.43 ▼5.9842.55 ▼5.90
Posts /wp-admin/edit.php2,147 ▲582.01 ▲0.0140.17 ▼1.7135.84 ▼2.06
Add New Post /wp-admin/post-new.php1,563 ▲2117.57 ▼0.67650.51 ▲34.0755.92 ▼6.83
Media Library /wp-admin/upload.php1,449 ▲584.17 ▼0.0395.62 ▼7.8842.82 ▼3.73
Get Started /wp-admin/edit.php?post_type=slimslide&page=slim-slider-getting-started1,0682.0224.1250.38
All Slides /wp-admin/edit.php?post_type=slimslide1,1021.9436.1126.12
All Sliders /wp-admin/edit.php?post_type=slslider1,1112.0032.4828.82
Add New /wp-admin/post-new.php?post_type=slslider1,5042.5349.6058.79
Add New /wp-admin/post-new.php?post_type=slimslide1,7673.8360.8231.69

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 4× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/slim-slider/vendor/devuri/wp-admin-page/src/example/sample-plugin/src/Admin/pages/my-plugin/my-plugin-slug.admin.php
    • > /wp-content/plugins/slim-slider/vendor/devuri/wp-admin-page/src/example/sample-plugin/src/Admin/pages/my-plugin/menu-two.admin.php
    • > /wp-content/plugins/slim-slider/vendor/devuri/wp-admin-page/src/example/sample-plugin/src/Admin/pages/my-plugin/etc.admin.php
    • > /wp-content/plugins/slim-slider/vendor/devuri/wp-admin-page/src/example/sample-plugin/src/Admin/pages/my-plugin/my-plugin.admin.php
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'DevUri\\Meta\\Settings' not found in wp-content/plugins/slim-slider/src/MetaView/Slide.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'DevUri\\Meta\\Settings' not found in wp-content/plugins/slim-slider/src/MetaView/Sliders.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'SlimSlider\\EasyAdmin\\AdminPageInterface' not found in wp-content/plugins/slim-slider/src/EasyAdmin/AdminPage.php:5
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/slim-slider/vendor/devuri/wp-admin-page/src/pages/footer.admin.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'SlimSlider\\EasyAdmin\\AdminPage' not found in wp-content/plugins/slim-slider/src/Admin/GetStarted.php:7
    • > PHP Fatal error
      Trait 'DevUri\\Meta\\Traits\\Form' not found in wp-content/plugins/slim-slider/vendor/devuri/cpt-meta-box/src/MetaBox.php on line 10
    • > PHP Fatal error
      Trait 'SlimSlider\\Asset' not found in wp-content/plugins/slim-slider/src/Slides.php on line 7
    • > PHP Fatal error
      Uncaught Error: Interface 'DevUri\\Meta\\Contracts\\SettingsInterface' not found in wp-content/plugins/slim-slider/vendor/devuri/cpt-meta-box/src/Settings.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'WPAdminPage\\AdminPage' not found in wp-content/plugins/slim-slider/vendor/devuri/wp-admin-page/src/example/sample-plugin/src/Admin/MyPluginAdmin.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (...) image missing
Please take inspiration from this readme.txt

slim-slider/wp-slim-slider.php 77% from 13 tests

The entry point to "Slim Slider" version 0.20.01 is a PHP file that has certain tags in its header comment area
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 ("slim-slider.php" instead of "wp-slim-slider.php")
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Domain Path: Please prefix the domain path with a forward slash character ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin7,627 lines of code in 60 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript47264,671
PHP435101,5402,471
CSS2185150
SVG626118
JSON100117
Markdown135097
HTML3003

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity7.30
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces11
Interfaces2
Traits6
Classes22
▷ Abstract classes313.64%
▷ Concrete classes1986.36%
▷ Final classes631.58%
Methods178
▷ Static methods5128.65%
▷ Public methods15989.33%
▷ Protected methods126.74%
▷ Private methods73.93%
Functions7
▷ Named functions228.57%
▷ Anonymous functions571.43%
Constants8
▷ Global constants562.50%
▷ Class constants337.50%
▷ Public constants3100.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 were not PNG files found in your plugin