84% post-slider-lite

Code Review | Post Slider - Sangar Slider Addon

WordPress plugin Post Slider - Sangar Slider Addon scored84%from 54 tests.

About plugin

  • Plugin page: post-slider-lite
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.8
  • WordPress version: 6.3.1
  • First release: Mar 16, 2016
  • Latest release: Oct 20, 2017
  • Number of updates: 9
  • Update frequency: every 65.7 days
  • Top authors: Todi.Adiatmo (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

70+ active /9,590 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
Install script ran successfully

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

An overview of server-side resources used by Post Slider - Sangar Slider Addon
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.19 ▼2.68
Dashboard /wp-admin3.31 ▲0.0046.76 ▲1.35
Posts /wp-admin/edit.php3.36 ▲0.0044.48 ▼3.15
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.45 ▼1.66
Media Library /wp-admin/upload.php3.23 ▲0.0033.85 ▼0.15

Server storage [IO: ▲1.38MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Post Slider - Sangar Slider Addon: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.35 ▼0.041.95 ▼0.1243.64 ▼0.60
Dashboard /wp-admin2,195 ▲155.59 ▼0.0994.01 ▲8.0140.89 ▼4.06
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0434.65 ▼3.6035.13 ▲0.25
Add New Post /wp-admin/post-new.php1,535 ▲718.38 ▼4.58636.34 ▼23.5774.57 ▲25.64
Media Library /wp-admin/upload.php1,403 ▼04.22 ▲0.0196.49 ▼1.0642.28 ▲1.00

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

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

Smoke tests 75% 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Undefined variable: form_lib in wp-content/plugins/post-slider-lite/modal-content-animation.php on line 41
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/post-slider-lite/default.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/post-slider-lite/presets.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_object_taxonomies() in wp-content/plugins/post-slider-lite/modal-query.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-slider-lite/functions.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_PageDropdown' not found in wp-content/plugins/post-slider-lite/walker_dropdown_multiple.php:14
    • > PHP Notice
      Undefined variable: form_lib in wp-content/plugins/post-slider-lite/modal-background.php on line 21
    • > PHP Fatal error
      Uncaught Error: Class 'ssliderGenerate' not found in wp-content/plugins/post-slider-lite/ssliderGenerate.php:7
    • > PHP Fatal error
      Uncaught Error: Call to a member function print_select() on null in wp-content/plugins/post-slider-lite/modal-background.php:21
    • > PHP Fatal error
      Uncaught Error: Call to a member function print_select() on null in wp-content/plugins/post-slider-lite/modal-content-animation.php:41

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
The official readme.txt is a good inspiration

post-slider-lite/sangar-slider-lite-addon-post-slider.php 92% from 13 tests

The main file in "Post Slider - Sangar Slider Addon" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("post-slider-lite.php" instead of "sangar-slider-lite-addon-post-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 plugin3,708 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript95973302,021
PHP143581571,646
CSS16041

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity33.67
▷ Minimum class complexity3.00
▷ Maximum class complexity95.00
Average method complexity5.22
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods729.17%
▷ Protected methods00.00%
▷ Private methods1770.83%
Functions14
▷ Named functions1071.43%
▷ Anonymous functions428.57%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
presets/no-preset.png3.44KB1.75KB▼ 48.99%