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

Benchmarks

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
Page Memory (MB) CPU Time (ms)
Home / 2.85 ▼0.61 15.66 ▼27.10
Dashboard /wp-admin 2.89 ▼0.41 17.62 ▼33.08
Posts /wp-admin/edit.php 2.89 ▼0.46 19.19 ▼31.46
Add New Post /wp-admin/post-new.php 2.89 ▼2.99 19.11 ▼77.72
Media Library /wp-admin/upload.php 2.89 ▼0.34 16.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
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments

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
Page Nodes Memory (MB) Script (ms) Layout (ms)
Home / 2,821 ▲59 14.68 ▲0.33 1.66 ▼0.18 41.31 ▼3.85
Dashboard /wp-admin 2,226 ▲49 5.64 ▼0.06 94.23 ▼8.95 40.70 ▼4.29
Posts /wp-admin/edit.php 2,129 ▲29 2.01 ▼0.01 41.74 ▲0.47 35.20 ▼0.35
Add New Post /wp-admin/post-new.php 6,315 ▲4,789 20.05 ▼3.41 858.51 ▲193.07 58.00 ▲5.15
Media Library /wp-admin/upload.php 1,431 ▲28 4.26 ▲0.09 97.34 ▲1.75 41.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

Optimizations

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:
Language Files Blank lines Comment lines Lines of code
PHP 9 348 306 846
JSON 1 0 0 350
CSS 3 21 0 126
SVG 1 0 0 52
JavaScript 1 0 0 1

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 code 0.47
Average class complexity 0.00
▷ Minimum class complexity 0.00
▷ Maximum class complexity 0.00
Average method complexity 0.00
▷ Minimum method complexity 0.00
▷ Maximum method complexity 0.00
Code structure
Namespaces 0
Interfaces 0
Traits 0
Classes 0
▷ Abstract classes 0 0.00%
▷ Concrete classes 0 0.00%
▷ Final classes 0 0.00%
Methods 0
▷ Static methods 0 0.00%
▷ Public methods 0 0.00%
▷ Protected methods 0 0.00%
▷ Private methods 0 0.00%
Functions 12
▷ Named functions 12 100.00%
▷ Anonymous functions 0 0.00%
Constants 5
▷ Global constants 5 100.00%
▷ Class constants 0 0.00%
▷ Public constants 0 0.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
File Size - original Size - compressed Savings
includes/images/clip-art-pattern-png.png 25.27KB 23.56KB ▼ 6.76%
includes/images/mfst-menu-icon.png 3.81KB 1.16KB ▼ 69.67%