79% kitblocks

Code Review | kitblocks - Gutenberg Blocks and Website Builder .

WordPress plugin kitblocks - Gutenberg Blocks and Website Builder . scored79%from 54 tests.

About plugin

  • Plugin page: kitblocks
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: Mar 8, 2021
  • Latest release: Mar 8, 2021
  • Number of updates: 7
  • Update frequency: every 0.6 days
  • Top authors: kitbug (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /513 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
Install script ran successfully

Server metrics [RAM: ▲1.27MB] [CPU: ▼1.71ms] Passed 4 tests

This is a short check of server-side resources used by kitblocks - Gutenberg Blocks and Website Builder .
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.99 ▲1.5346.65 ▲5.07
Dashboard /wp-admin4.87 ▲1.5758.44 ▲8.43
Posts /wp-admin/edit.php4.96 ▲1.6061.28 ▲15.50
Add New Post /wp-admin/post-new.php6.34 ▲0.4561.25 ▼34.58
Media Library /wp-admin/upload.php4.76 ▲1.5350.90 ▲14.24

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

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

Browser metrics Passed 4 tests

Checking browser requirements for kitblocks - Gutenberg Blocks and Website Builder .
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,188 ▲41718.97 ▲4.596.80 ▲4.7836.21 ▼7.76
Dashboard /wp-admin2,488 ▲3009.26 ▲4.39186.79 ▲67.2642.73 ▼2.92
Posts /wp-admin/edit.php2,404 ▲3156.13 ▲4.1484.66 ▲47.1534.42 ▼1.32
Add New Post /wp-admin/post-new.php1,575 ▲4218.67 ▼4.45775.29 ▲102.3550.70 ▼1.52
Media Library /wp-admin/upload.php1,543 ▲1586.73 ▲2.53108.00 ▲2.2945.16 ▼1.74

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/kitblocks/lib/carbon-fields/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
  • 222× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/kitblocks/lib/carbon-fields/vendor/htmlburger/carbon-fields/core/Field/Text_Field.php:10
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/kitblocks/lib/carbon-fields/vendor/htmlburger/carbon-fields/templates/Container/user_meta.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kitblocks/includes/banner-two-block-simple/banner-two-block-simple.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kitblocks/includes/simple-counter-area/simple-counter-area.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/kitblocks/lib/carbon-fields/vendor/composer/installers/src/Composer/Installers/RadPHPInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/kitblocks/lib/carbon-fields/vendor/htmlburger/carbon-fields/core/Field/Predefined_Options_Field.php:12
    • > PHP Notice
      Undefined variable: plural in wp-content/plugins/kitblocks/lib/carbon-fields/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php on line 32
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/kitblocks/lib/carbon-fields/vendor/htmlburger/carbon-fields/core/Field/Checkbox_Field.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/kitblocks/lib/carbon-fields/vendor/composer/installers/src/Composer/Installers/TaoInstaller.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/kitblocks/lib/carbon-fields/vendor/composer/installers/src/Composer/Installers/VgmcpInstaller.php:4

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)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: editor, gutenberg blocks, website block, website builder, page builder...

kitblocks/kitblocks.php Passed 13 tests

The principal PHP file in "kitblocks - Gutenberg Blocks and Website Builder ." v. 1.0.1 is loaded by WordPress automatically on each request
57 characters long description:
KitBlocks is design block for WordPress Gutenberg Block.

Code Analysis Passed 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 detected36,148 lines of code in 561 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1795,2048,45812,961
PHP2562,8916,94511,259
CSS311,5421,2066,873
Sass5937522,590
PO File206107791,652
JSON500625
HTML460114
Markdown426071
SVG3003

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity5.43
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces24
Interfaces5
Traits0
Classes231
▷ Abstract classes125.19%
▷ Concrete classes21994.81%
▷ Final classes10.46%
Methods1,012
▷ Static methods918.99%
▷ Public methods80479.45%
▷ Protected methods19919.66%
▷ Private methods90.89%
Functions121
▷ Named functions2520.66%
▷ Anonymous functions9679.34%
Constants36
▷ Global constants1027.78%
▷ Class constants2672.22%
▷ Public constants26100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.39MB with 0.19MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/banner-1544x500.png399.74KB200.45KB▼ 49.86%