79% customizer-block-cf7

Code Review | Customizer for Contact Form 7

WordPress plugin Customizer for Contact Form 7 scored79%from 54 tests.

About plugin

  • Plugin page: customizer-block-cf7
  • Plugin version: 1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Dec 1, 2023
  • Latest release: Dec 1, 2023
  • Number of updates: 4
  • Update frequency: every 1.3 days
  • Top authors: mofistudio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /12 total downloads


Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.12MB] [CPU: ▼42.34ms] Passed 4 tests

Server-side resources used by Customizer for Contact Form 7
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▼0.6115.66 ▼27.10
Dashboard /wp-admin2.89 ▼0.4117.62 ▼33.08
Posts /wp-admin/edit.php2.89 ▼0.4619.19 ▼31.46
Add New Post /wp-admin/post-new.php2.89 ▼2.9919.11 ▼77.72
Media Library /wp-admin/upload.php2.89 ▼0.3416.30 ▼17.44

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Customizer for Contact Form 7
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲5914.68 ▲0.331.66 ▼0.1841.31 ▼3.85
Dashboard /wp-admin2,226 ▲495.64 ▼0.0694.23 ▼8.9540.70 ▼4.29
Posts /wp-admin/edit.php2,129 ▲292.01 ▼0.0141.74 ▲0.4735.20 ▼0.35
Add New Post /wp-admin/post-new.php6,315 ▲4,78920.05 ▼3.41858.51 ▲193.0758.00 ▲5.15
Media Library /wp-admin/upload.php1,431 ▲284.26 ▲0.0997.34 ▲1.7541.56 ▼0.11

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/customizer-block-cf7/gutenberg-block/block-patterns.php+109
    Undefined variable: contact_post_id
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: form, gutenberg block, contact, contact form 7 style, style contact forms...

customizer-block-cf7/customizer-block-cf7.php 85% from 13 tests

The main file in "Customizer for Contact Form 7" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Description: Please don't use more than 140 characters for the plugin description (currently 150 characters long)

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
There were no executable files found in this plugin1,375 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions12100.00%
▷ Anonymous functions00.00%
▷ Global constants5100.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
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/images/clip-art-pattern-png.png25.27KB23.56KB▼ 6.76%
includes/images/mfst-menu-icon.png3.81KB1.16KB▼ 69.67%