84% blocks-kit

Code Review | Blocks Kit - Gutenberg Blocks for Freelancers

WordPress plugin Blocks Kit - Gutenberg Blocks for Freelancers scored84%from 54 tests.

About plugin

  • Plugin page: blocks-kit
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.3.1
  • WordPress version: 6.3.1
  • First release: Sep 8, 2018
  • Latest release: Oct 5, 2023
  • Number of updates: 19
  • Update frequency: every 97.6 days
  • Top authors: techeshta (68.42%)blockskit (36.84%)

Code review

54 tests

User reviews

14 reviews

Install metrics

1,000+ active /5,584 total downloads

Benchmarks

Plugin footprint 83% 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: ▲0.01MB] [CPU: ▼5.90ms] Passed 4 tests

An overview of server-side resources used by Blocks Kit - Gutenberg Blocks for Freelancers
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.42 ▲0.60
Dashboard /wp-admin3.31 ▲0.0145.12 ▼7.28
Posts /wp-admin/edit.php3.36 ▲0.0147.79 ▲0.13
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.91 ▼14.88
Media Library /wp-admin/upload.php3.24 ▲0.0134.40 ▼1.56

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 88 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Blocks Kit - Gutenberg Blocks for Freelancers
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8513.27 ▼1.031.91 ▼0.1141.88 ▼3.29
Dashboard /wp-admin2,203 ▲155.77 ▲0.89101.35 ▼18.7339.25 ▼2.54
Posts /wp-admin/edit.php2,086 ▼62.03 ▼0.0136.32 ▼1.6031.49 ▼4.25
Add New Post /wp-admin/post-new.php6,188 ▲4,64919.40 ▲1.29941.70 ▲267.4542.37 ▼15.48
Media Library /wp-admin/upload.php1,382 ▼94.23 ▼0.0599.57 ▲0.7639.38 ▼5.01

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blocks-kit/includes/feedback.php:45
    • > PHP Warning
      Use of undefined constant DAY_IN_SECONDS - assumed 'DAY_IN_SECONDS' (this will throw an Error in a future version of PHP) in wp-content/plugins/blocks-kit/includes/feedback.php on line 178

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)
There were no browser issues found

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: gutenberg, blocks, blocks kit, page builder, editor...

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

"Blocks Kit - Gutenberg Blocks for Freelancers" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
106 characters long description:
Additional Gutenberg Blocks for Editors, Content Writers and freelancers with advanced styles and options.

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
Everything looks great! No dangerous files found in this plugin13,668 lines of code in 57 files:
LanguageFilesBlank linesComment linesLines of code
CSS151,851574,383
JavaScript211411844,290
SVG3003,927
Sass152015881
PHP342113187

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity5.60
▷ Minimum method complexity2.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants3
▷ Global constants3100.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
There were not PNG files found in your plugin