78% cf7-blocks

Code Review | Block Editor Kit for Contact Form 7 - CF7 Blocks

WordPress plugin Block Editor Kit for Contact Form 7 - CF7 Blocks scored78%from 54 tests.

About plugin

  • Plugin page: cf7-blocks
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.1
  • WordPress version: 6.3.1
  • First release: Dec 29, 2022
  • Latest release: Jan 9, 2023
  • Number of updates: 5
  • Update frequency: every 2.6 days
  • Top authors: munirkamal (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /1,520 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼0.98ms] Passed 4 tests

An overview of server-side resources used by Block Editor Kit for Contact Form 7 - CF7 Blocks
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1341.46 ▼2.05
Dashboard /wp-admin3.42 ▲0.1249.89 ▲2.86
Posts /wp-admin/edit.php3.54 ▲0.1849.76 ▲2.95
Add New Post /wp-admin/post-new.php6.00 ▲0.1287.15 ▼7.67
Media Library /wp-admin/upload.php3.35 ▲0.1235.97 ▲3.66

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 139 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Block Editor Kit for Contact Form 7 - CF7 Blocks: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲8613.65 ▼0.732.09 ▼0.0744.99 ▼4.94
Dashboard /wp-admin2,216 ▲315.79 ▼0.0996.47 ▼22.2741.59 ▼0.98
Posts /wp-admin/edit.php2,105 ▲162.04 ▲0.0240.08 ▲3.0536.54 ▲3.71
Add New Post /wp-admin/post-new.php1,435 ▼8717.11 ▼6.18493.94 ▼185.7737.86 ▼25.46
Media Library /wp-admin/upload.php1,401 ▲104.27 ▲0.0699.58 ▲0.0740.93 ▼2.95

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

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

SRP 0% 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
Please fix the following items
  • 4× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/cf7-blocks/app/core/Editor.php
    • > /wp-content/plugins/cf7-blocks/app/core/Handler.php
    • > /wp-content/plugins/cf7-blocks/app/Assets.php
    • > /wp-content/plugins/cf7-blocks/cf7-blocks.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'CakeWP\\CF7Blocks\\Core\\Handler' not found in wp-content/plugins/cf7-blocks/app/handlers/ContactForm7.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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
6 plugin tags: forms, cf7, contact form, contact form 7, block editor...

cf7-blocks/cf7-blocks.php 85% from 13 tests

Analyzing the main PHP file in "Block Editor Kit for Contact Form 7 - CF7 Blocks" version 1.0.1
Please make the necessary changes and fix the following:
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin66,126 lines of code in 132 files:
LanguageFilesBlank linesComment linesLines of code
JSON140061,742
JavaScript762822882,949
PHP223015761,114
Sass13672261
Markdown130042
CSS50010
XML1008

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity10.46
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.73
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes13
▷ Abstract classes17.69%
▷ Concrete classes1292.31%
▷ Final classes18.33%
Methods68
▷ Static methods2029.41%
▷ Public methods6595.59%
▷ Protected methods00.00%
▷ Private methods34.41%
Functions7
▷ Named functions114.29%
▷ Anonymous functions685.71%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected