93% slider-carousel-shortcodes-wc-product

Code Review | Slider-Carousel-Shortcodes-WC-Product

WordPress plugin Slider-Carousel-Shortcodes-WC-Product scored 93% from 54 tests.

About plugin

  • Plugin page: slider-carousel-s...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8.1
  • WordPress version: 5.8.1
  • First release: Mar 21, 2021
  • Latest release: Nov 10, 2021
  • Number of updates: 7
  • Update frequency: every 33.9 days
  • Top authors: marcobarbadoro81 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active / 345 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Slider-Carousel-Shortcodes-WC-Product
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1235.39 ▲11.78
Dashboard /wp-admin3.06 ▲0.0044.38 ▼4.36
Posts /wp-admin/edit.php3.12 ▲0.0042.50 ▼3.98
Add New Post /wp-admin/post-new.php5.42 ▼0.0293.25 ▼580.01
Media Library /wp-admin/upload.php3.01 ▲0.0035.06 ▼1.24

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Slider-Carousel-Shortcodes-WC-Product
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8316.23 ▲0.597.80 ▼1.8450.29 ▲3.65
Dashboard /wp-admin2,967 ▲335.88 ▼0.23141.15 ▼7.03109.09 ▼7.90
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0066.04 ▲1.9995.11 ▲0.71
Add New Post /wp-admin/post-new.php1,594 ▲9618.63 ▼0.18396.82 ▲12.56113.40 ▼0.93
Media Library /wp-admin/upload.php1,807 ▼35.02 ▼0.02160.62 ▲8.99122.82 ▼2.39

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/slider-carousel-shortcodes-wc-product/slider-carousel-shortcodes-wc-product.php:45

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)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: Screenshot #2 (Slider-Carousel-Shortcodes-WC-Product2) image required
You can look at the official readme.txt

slider-carousel-shortcodes-wc-product/admin-slider-carousel-shortcodes-wc-product.php 85% from 13 tests

The primary PHP file in "Slider-Carousel-Shortcodes-WC-Product" version 1.0.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("slider-carousel-shortcodes-wc-product.php" instead of "admin-slider-carousel-shortcodes-wc-product.php")
  • Requires at least: The required version number must match the one declared in readme.txt ("3.0.5" instead of "4.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin168 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP223515117
CSS138249
JavaScript1052

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.16
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected