78% post-slider-free

Code Review | Post Slider - WordPress Responsive Post Slider & Post Carousel

WordPress plugin Post Slider - WordPress Responsive Post Slider & Post Carousel scored78%from 54 tests.

About plugin

  • Plugin page: post-slider-free
  • Plugin version: 1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Jul 5, 2018
  • Latest release: Nov 11, 2023
  • Number of updates: 22
  • Update frequency: every 88.9 days
  • Top authors: pickelements (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,664 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.27MB] [CPU: ▼1.14ms] Passed 4 tests

Analyzing server-side resources used by Post Slider - WordPress Responsive Post Slider & Post Carousel
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2739.61 ▼2.97
Dashboard /wp-admin3.57 ▲0.2746.67 ▼3.70
Posts /wp-admin/edit.php3.62 ▲0.2647.10 ▼0.67
Add New Post /wp-admin/post-new.php6.18 ▲0.29100.93 ▲7.39
Media Library /wp-admin/upload.php3.49 ▲0.2634.31 ▲2.77
All Slider /wp-admin/edit.php?post_type=picsliderfree3.5033.46
Add New Slider /wp-admin/post-new.php?post_type=picsliderfree3.5356.59

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

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

Browser metrics Passed 4 tests

Post Slider - WordPress Responsive Post Slider & Post Carousel: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,927 ▲16513.54 ▼0.808.60 ▲6.8942.00 ▼11.69
Dashboard /wp-admin2,245 ▲655.76 ▲0.1288.39 ▼1.6240.28 ▼4.98
Posts /wp-admin/edit.php2,152 ▲552.26 ▲0.2441.58 ▲3.7035.99 ▼0.26
Add New Post /wp-admin/post-new.php1,569 ▲4323.38 ▲0.16591.53 ▼78.6133.68 ▼20.49
Media Library /wp-admin/upload.php1,450 ▲504.45 ▲0.2298.62 ▼10.7042.46 ▼1.69
All Slider /wp-admin/edit.php?post_type=picsliderfree1,1212.2136.7931.06
Add New Slider /wp-admin/post-new.php?post_type=picsliderfree4,7493.82138.6643.57

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • category_children
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/edit.php?post_type=picsliderfree
    • > Notice in wp-content/plugins/post-slider-free/includes/post-types/post-slider-free-post-type.php+58
    Undefined index: order

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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/post-slider-free/post-slider-free.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #4 (screenshot-4) image missing
You can look at the official readme.txt

post-slider-free/post-slider-free.php 92% from 13 tests

"Post Slider - WordPress Responsive Post Slider & Post Carousel" version 1.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 212 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin4,677 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript34971,0102,023
PHP81561881,827
SVG210578
CSS5421249

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There were not PNG files found in your plugin