79% post-slider-and-carousel

Code Review | Post Slider and Post Carousel with Post Vertical Scrolling Widget - A Responsive Post Slider

WordPress plugin Post Slider and Post Carousel with Post Vertical Scrolling Widget - A Responsive Post Slider scored79%from 54 tests.

About plugin

  • Plugin page: post-slider-and-c...
  • Plugin version: 3.2.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Aug 22, 2019
  • Latest release: Nov 15, 2023
  • Number of updates: 27
  • Update frequency: every 57.3 days
  • Top authors: pluginandplay (100%)

Code review

54 tests

User reviews

27 reviews

Install metrics

10,000+ active /153,518 total downloads

Benchmarks

Plugin footprint 65% 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 gracefully, with no errors

Server metrics [RAM: ▲5.48MB] [CPU: ▲22.92ms] 75% from 4 tests

This is a short check of server-side resources used by Post Slider and Post Carousel with Post Vertical Scrolling Widget - A Responsive Post Slider
Please have a look at the following items
  • Extra RAM: Try to keep extra memory usage under 5MB (currently 5.48MB on /wp-admin/admin.php?page=psac-shortcode-preview)
PageMemory (MB)CPU Time (ms)
Home /9.26 ▲5.7965.69 ▲25.30
Dashboard /wp-admin9.28 ▲5.9777.81 ▲26.53
Posts /wp-admin/edit.php9.28 ▲5.9279.86 ▲35.31
Add New Post /wp-admin/post-new.php10.14 ▲4.25107.22 ▲4.55
Media Library /wp-admin/upload.php9.28 ▲6.0567.61 ▲35.57
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius9.2859.01
Shortcode Preview /wp-admin/admin.php?page=psac-shortcode-preview9.2855.47

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 224 new files
Database: no new tables, 10 new options
New WordPress options
theysaidso_admin_options
db_upgraded
fs_accounts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_psac-post-scrolling-widget
fs_active_plugins
fs_debug_mode
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Post Slider and Post Carousel with Post Vertical Scrolling Widget - A Responsive Post Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲9014.66 ▲0.381.90 ▲0.2029.71 ▼14.25
Dashboard /wp-admin2,231 ▲545.63 ▼0.0190.82 ▼9.3043.75 ▼0.92
Posts /wp-admin/edit.php2,134 ▲341.97 ▼0.0640.69 ▲2.9840.70 ▲5.94
Add New Post /wp-admin/post-new.php1,547 ▲2123.08 ▼0.28615.31 ▼20.3154.79 ▲2.59
Media Library /wp-admin/upload.php1,436 ▲364.17 ▼0.04101.45 ▼2.4648.66 ▲3.05
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius1,0881.6527.4030.05
Shortcode Preview /wp-admin/admin.php?page=psac-shortcode-preview1271.4311.900.13

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/post-slider-and-carousel/freemius/includes/class-freemius.php+8546
    Undefined property: stdClass::$plugins
  • Zombie WordPress options detected upon uninstall: 10 options
    • can_compress_scripts
    • widget_psac-post-scrolling-widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • fs_accounts
    • widget_theysaidso_widget
    • fs_active_plugins
    • fs_debug_mode

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can look at the official readme.txt

post-slider-and-carousel/post-slider-and-carousel.php 92% from 13 tests

The main file in "Post Slider and Post Carousel with Post Vertical Scrolling Widget - A Responsive Post Slider" v. 3.2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 162 characters long)

Code Analysis 97% from 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
No dangerous file extensions were detected40,322 lines of code in 169 files:
LanguageFilesBlank linesComment linesLines of code
PHP1358,42017,73435,762
PO File81,5603,3523,649
JavaScript9135114516
Markdown1680214
CSS161735181

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
Please tend to the following items
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity82.75
▷ Minimum class complexity1.00
▷ Maximum class complexity3,096.00
Average method complexity4.59
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes55
▷ Abstract classes23.64%
▷ Concrete classes5396.36%
▷ Final classes00.00%
Methods1,302
▷ Static methods19915.28%
▷ Public methods90269.28%
▷ Protected methods171.31%
▷ Private methods38329.42%
Functions119
▷ Named functions119100.00%
▷ Anonymous functions00.00%
Constants152
▷ Global constants10569.08%
▷ Class constants4730.92%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/bg.png0.08KB0.10KB0.00%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
freemius/assets/img/post-slider-and-carousel.png6.69KB2.18KB▼ 67.48%