100% candy-slider

Code Review | Gutenberg Slider Blocks - Candy Slider

WordPress plugin Gutenberg Slider Blocks - Candy Slider scored 100% from 54 tests.

About plugin

  • Plugin page: candy-slider
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.4
  • WordPress version: 5.8.1
  • First release: Apr 22, 2020
  • Latest release: Apr 23, 2020
  • Number of updates: 10
  • Update frequency: every 0.1 days
  • Top authors: themantiko (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 403 total downloads


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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼136.14ms] Passed 4 tests

This is a short check of server-side resources used by Gutenberg Slider Blocks - Candy Slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1332.94 ▲11.45
Dashboard /wp-admin3.07 ▲0.0141.39 ▼0.43
Posts /wp-admin/edit.php3.12 ▲0.0146.47 ▲12.14
Add New Post /wp-admin/post-new.php5.43 ▲0.0095.57 ▼550.16
Media Library /wp-admin/upload.php3.01 ▲0.0033.94 ▼5.43

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Gutenberg Slider Blocks - Candy Slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲20016.69 ▲1.1713.94 ▲4.8246.25 ▲0.84
Dashboard /wp-admin2,970 ▲366.09 ▼0.09148.09 ▲0.64101.34 ▼10.14
Posts /wp-admin/edit.php2,739 ▼02.68 ▼0.0166.15 ▼3.7689.88 ▲2.97
Add New Post /wp-admin/post-new.php1,518 ▲1018.69 ▼0.22372.19 ▲14.21129.24 ▲17.03
Media Library /wp-admin/upload.php1,810 ▲35.03 ▲0.01149.64 ▼0.00121.23 ▲1.23

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 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)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

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


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: carousel, block, slider, gutenberg blocks, gutenberg slider...

candy-slider/candy-slider.php Passed 13 tests

The main PHP script in "Gutenberg Slider Blocks - Candy Slider" version 1.0.2 is automatically included on every request by WordPress
82 characters long description:
Candy Slider allows you to add a Gutenberg slider block to your WordPress content.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin11,309 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.09
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.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
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
img/swiper-arrow.png1.01KB0.19KB▼ 81.57%