83% kadence-blocks

Code Review | Gutenberg Blocks by Kadence Blocks – Page Builder Features

WordPress plugin Gutenberg Blocks by Kadence Blocks – Page Builder Features scored83%from 54 tests.

About plugin

  • Plugin page: kadence-blocks
  • Plugin version: 3.1.26
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.4
  • WordPress version: 6.3.1
  • First release: Aug 19, 2018
  • Latest release: Nov 15, 2023
  • Number of updates: 372
  • Update frequency: every 5.2 days
  • Top authors: britner (100%)

Code review

54 tests

User reviews

151 reviews

Install metrics

400,000+ active /14,399,941 total downloads

Benchmarks

Plugin footprint 82% 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: ▲7.97MB] [CPU: ▲44.14ms] 50% from 4 tests

Server-side resources used by Gutenberg Blocks by Kadence Blocks – Page Builder Features
It is recommended to improve the following
  • RAM: You should keep total memory usage under 10MB (currently 11.23MB on /wp-admin/edit.php?post_type=kadence_form)
  • Extra RAM: The extra memory usage must be under 5MB (currently 7.97MB on /wp-admin/edit.php?post_type=kadence_form)
PageMemory (MB)CPU Time (ms)
Home /11.41 ▲7.9478.90 ▲38.04
Dashboard /wp-admin11.26 ▲7.9589.13 ▲40.33
Posts /wp-admin/edit.php11.38 ▲8.0297.38 ▲52.89
Add New Post /wp-admin/post-new.php20.63 ▲14.74249.06 ▲146.37
Media Library /wp-admin/upload.php11.19 ▲7.9578.37 ▲45.29
Settings /wp-admin/admin.php?page=kadence-blocks11.1771.88
All Forms /wp-admin/edit.php?post_type=kadence_form11.2373.47

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 459 new files
Database: no new tables, 11 new options
New WordPress options
db_upgraded
widget_recent-comments
stellarwp_telemetry_kadence-blocks_show_optin
theysaidso_admin_options
stellarwp_telemetry
widget_theysaidso_widget
kadenceblocks_data_settings
kadence_blocks_schema_version
widget_recent-posts
can_compress_scripts
...

Browser metrics Passed 4 tests

Gutenberg Blocks by Kadence Blocks – Page Builder Features: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲7114.67 ▲0.471.59 ▼0.0735.59 ▼10.11
Dashboard /wp-admin2,238 ▲615.62 ▼0.0496.44 ▲4.7543.09 ▼1.59
Posts /wp-admin/edit.php2,144 ▲412.00 ▼0.0040.48 ▲1.1936.54 ▼1.23
Add New Post /wp-admin/post-new.php2,006 ▲48030.30 ▲6.961,035.43 ▲369.0139.03 ▼13.33
Media Library /wp-admin/upload.php1,440 ▲374.30 ▲0.03100.08 ▼4.9942.30 ▼5.35
Settings /wp-admin/admin.php?page=kadence-blocks1,1982.1736.9655.10
All Forms /wp-admin/edit.php?post_type=kadence_form1,1351.9636.9029.15

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 10 options
    • widget_recent-posts
    • db_upgraded
    • kadenceblocks_data_settings
    • widget_recent-comments
    • can_compress_scripts
    • stellarwp_telemetry
    • theysaidso_admin_options
    • stellarwp_telemetry_last_send
    • kadence_blocks_schema_version
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 39× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'tad_DI52_Container' not found in wp-content/plugins/kadence-blocks/vendor/lucatume/di52/.phpstorm.meta.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'KadenceWP\\KadenceBlocks\\StellarWP\\ContainerContract\\ContainerInterface' not found in wp-content/plugins/kadence-blocks/includes/vendor/Container.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'KadenceWP\\KadenceBlocks\\StellarWP\\Telemetry\\Contracts\\Abstract_Subscriber' not found in wp-content/plugins/kadence-blocks/vendor/vendor-prefixed/stellarwp/telemetry/src/Telemetry/Admin/Admin_Subscriber.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'Codeception\\Actor' not found in wp-content/plugins/kadence-blocks/vendor/stellarwp/telemetry/tests/_support/AcceptanceTester.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Posts_Controller' not found in wp-content/plugins/kadence-blocks/includes/advanced-form/advanced-form-rest-api.php:3
    • > PHP Fatal error
      Uncaught Error: Interface 'KadenceWP\\KadenceBlocks\\lucatume\\DI52\\Builders\\BuilderInterface' not found in wp-content/plugins/kadence-blocks/vendor/vendor-prefixed/lucatume/di52/src/Builders/CallableBuilder.php:21
    • > PHP Fatal error
      Uncaught Error: Interface 'KadenceWP\\KadenceBlocks\\lucatume\\DI52\\Builders\\BuilderInterface' not found in wp-content/plugins/kadence-blocks/vendor/vendor-prefixed/lucatume/di52/src/Builders/ValueBuilder.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Codeception\\TestCase\\WPTestCase' not found in wp-content/plugins/kadence-blocks/vendor/stellarwp/telemetry/tests/wpunit/Telemetry_Test.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kadence-blocks/includes/advanced-form/advanced-form-cpt.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'KadenceWP\\KadenceBlocks\\StellarWP\\Telemetry\\Contracts\\Abstract_Subscriber' not found in wp-content/plugins/kadence-blocks/vendor/vendor-prefixed/stellarwp/telemetry/src/Telemetry/Opt_In/Opt_In_Subscriber.php:27

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: gutenberg, page builder, dual buttons, editor width, google fonts...

kadence-blocks/kadence-blocks.php Passed 13 tests

The main PHP file in "Gutenberg Blocks by Kadence Blocks – Page Builder Features" ver. 3.1.26 adds more information about the plugin and also serves as the entry point for this plugin
112 characters long description:
Advanced Page Building Blocks for Gutenberg. Create custom column layouts, backgrounds, dual buttons, icons etc.

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
Everything looks great! No dangerous files found in this plugin48,101 lines of code in 417 files:
LanguageFilesBlank linesComment linesLines of code
PHP1942,8159,72328,568
JSON520014,281
JavaScript776222373,294
Markdown752601,248
CSS59320280
YAML101529239
XML210108
SVG160083

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 838)
Cyclomatic complexity
Average complexity per logical line of code0.78
Average class complexity70.09
▷ Minimum class complexity1.00
▷ Maximum class complexity847.00
Average method complexity11.27
▷ Minimum method complexity1.00
▷ Maximum method complexity838.00
Code structure
Namespaces18
Interfaces10
Traits0
Classes115
▷ Abstract classes21.74%
▷ Concrete classes11398.26%
▷ Final classes00.00%
Methods856
▷ Static methods12014.02%
▷ Public methods75488.08%
▷ Protected methods273.15%
▷ Private methods758.76%
Functions63
▷ Named functions4469.84%
▷ Anonymous functions1930.16%
Constants54
▷ Global constants35.56%
▷ Class constants5194.44%
▷ Public constants4894.12%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/settings/img/kadence-logo.png23.29KB11.74KB▼ 49.58%
includes/assets/images/graphy.png3.77KB0.20KB▼ 94.64%