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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 41.46 ▼2.05 |
Dashboard /wp-admin | 3.42 ▲0.12 | 49.89 ▲2.86 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 49.76 ▲2.95 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 87.15 ▼7.67 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 35.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲86 | 13.65 ▼0.73 | 2.09 ▼0.07 | 44.99 ▼4.94 |
Dashboard /wp-admin | 2,216 ▲31 | 5.79 ▼0.09 | 96.47 ▼22.27 | 41.59 ▼0.98 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.04 ▲0.02 | 40.08 ▲3.05 | 36.54 ▲3.71 |
Add New Post /wp-admin/post-new.php | 1,435 ▼87 | 17.11 ▼6.18 | 493.94 ▼185.77 | 37.86 ▼25.46 |
Media Library /wp-admin/upload.php | 1,401 ▲10 | 4.27 ▲0.06 | 99.58 ▲0.07 | 40.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 14 | 0 | 0 | 61,742 |
JavaScript | 76 | 282 | 288 | 2,949 |
PHP | 22 | 301 | 576 | 1,114 |
Sass | 13 | 67 | 2 | 261 |
Markdown | 1 | 30 | 0 | 42 |
CSS | 5 | 0 | 0 | 10 |
XML | 1 | 0 | 0 | 8 |
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 code | 0.37 |
Average class complexity | 10.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 1 | 7.69% |
▷ Concrete classes | 12 | 92.31% |
▷ Final classes | 1 | 8.33% |
Methods | 68 | |
▷ Static methods | 20 | 29.41% |
▷ Public methods | 65 | 95.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 4.41% |
Functions | 7 | |
▷ Named functions | 1 | 14.29% |
▷ Anonymous functions | 6 | 85.71% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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