84% skt-blocks

Code Review | SKT Blocks - Gutenberg based Page Builder

WordPress plugin SKT Blocks - Gutenberg based Page Builder scored84%from 54 tests.

About plugin

  • Plugin page: skt-blocks
  • Plugin version: 1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Apr 28, 2021
  • Latest release: Aug 5, 2022
  • Number of updates: 10
  • Update frequency: every 46.5 days
  • Top authors: sonalsinha21 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active /14,728 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
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼0.63ms] Passed 4 tests

Server-side resources used by SKT Blocks - Gutenberg based Page Builder
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0733.49 ▼4.91
Dashboard /wp-admin3.36 ▲0.0643.32 ▼3.19
Posts /wp-admin/edit.php3.41 ▲0.0550.27 ▲5.90
Add New Post /wp-admin/post-new.php6.08 ▲0.1984.68 ▼0.32
Media Library /wp-admin/upload.php3.28 ▲0.0536.31 ▲6.54
SKT Blocks /wp-admin/options-general.php?page=skt_blocks3.2430.91

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 383 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for SKT Blocks - Gutenberg based Page Builder
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲19714.04 ▼0.347.25 ▲5.5240.21 ▼6.20
Dashboard /wp-admin2,222 ▲335.85 ▲0.91107.21 ▼14.4054.02 ▲10.49
Posts /wp-admin/edit.php2,111 ▲222.04 ▲0.0336.42 ▲0.3945.56 ▲10.41
Add New Post /wp-admin/post-new.php6,194 ▲4,67523.12 ▼0.22953.16 ▲258.3652.56 ▼13.18
Media Library /wp-admin/upload.php1,405 ▲144.19 ▼0.0198.61 ▼7.9955.03 ▲10.37
SKT Blocks /wp-admin/options-general.php?page=skt_blocks1,3322.0223.48105.16

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 9× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/skt-blocks/skt-blocks.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/skt-blocks/src/blocks/accordion/index.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/skt-blocks/src/blocks/gallery-masonry/index.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/skt-blocks/src/blocks/testimonial-slider/index.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/skt-blocks/src/blocks/post-grid/index.php:956
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/skt-blocks/src/blocks/image-slider/index.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/skt-blocks/src/blocks/post-carousel/index.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/skt-blocks/src/utils/fonts.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/skt-blocks/src/blocks/post-timeline/index.php:1096

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 issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: wordpress blocks, editor, gutenberg, blocks, page builder...

skt-blocks/skt-blocks.php 92% from 13 tests

This is the main PHP file of "SKT Blocks - Gutenberg based Page Builder" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin118,606 lines of code in 357 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2242,6622,05460,453
JSON60037,119
Sass991,61210216,789
PHP185377253,576
CSS72212666
SVG3003

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity19.00
▷ Minimum class complexity1.00
▷ Maximum class complexity55.00
Average method complexity3.35
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods23
▷ Static methods834.78%
▷ Public methods2295.65%
▷ Protected methods00.00%
▷ Private methods14.35%
Functions50
▷ Named functions50100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
21 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/res-icon10.png1.32KB0.36KB▼ 72.65%
admin/images/res-icon20.png2.08KB1.19KB▼ 43.08%
admin/images/res-icon7.png1.55KB0.91KB▼ 41.19%
admin/images/res-icon18.png1.33KB0.52KB▼ 60.49%
admin/images/res-icon13.png1.83KB1.21KB▼ 33.60%