Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼4.74ms] Passed 4 tests
A check of server-side resources used by Contact Form Block
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.17 | 38.47 ▼2.44 |
Dashboard /wp-admin | 3.57 ▲0.22 | 49.27 ▼12.61 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 50.11 ▲3.87 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 85.97 ▼7.76 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 37.11 ▲4.13 |
Dashboard /wp-admin/admin.php?page=meowapps-main-menu | 3.60 | 54.53 |
Contact Form /wp-admin/admin.php?page=mcfb_settings-menu | 3.40 | 35.49 |
Server storage [IO: ▲0.82MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Contact Form Block
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲96 | 13.21 ▼0.95 | 1.50 ▼0.18 | 38.77 ▼4.90 |
Dashboard /wp-admin | 2,248 ▲67 | 5.58 ▼0.09 | 90.16 ▼12.94 | 40.39 ▼0.92 |
Posts /wp-admin/edit.php | 2,153 ▲53 | 2.03 ▲0.08 | 40.79 ▲3.36 | 35.81 ▲3.33 |
Add New Post /wp-admin/post-new.php | 6,413 ▲4,887 | 27.66 ▲4.41 | 943.76 ▲284.59 | 71.13 ▲9.24 |
Media Library /wp-admin/upload.php | 1,453 ▲56 | 4.21 ▲0.01 | 98.94 ▲2.49 | 40.99 ▼2.48 |
Dashboard /wp-admin/admin.php?page=meowapps-main-menu | 5,211 | 2.49 | 57.16 | 61.91 |
Contact Form /wp-admin/admin.php?page=mcfb_settings-menu | 965 | 4.18 | 74.59 | 36.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/contact-form-block/classes/addons/human_check.php:3
- > PHP Fatal error
Uncaught Error: Class 'MeowCommon_Admin' not found in wp-content/plugins/contact-form-block/classes/admin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/contact-form-block/contact-form-block.php:26
- > PHP Warning
Use of undefined constant MCFB_PATH - assumed 'MCFB_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/contact-form-block/classes/init.php on line 28
- > PHP Fatal error
require_once(): Failed opening required 'MCFB_PATH/common/helpers.php' (include_path='.:/usr/share/php') in wp-content/plugins/contact-form-block/classes/init.php on line 28
- > PHP Warning
require_once(MCFB_PATH/common/helpers.php): failed to open stream: No such file or directory in wp-content/plugins/contact-form-block/classes/init.php on line 28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: These screenshots need descriptions #2, #3, #4 in contact-form-block/assets to your readme.txt
contact-form-block/contact-form-block.php Passed 13 tests
The entry point to "Contact Form Block" version 0.3.4 is a PHP file that has certain tags in its header comment area
35 characters long description:
An easy, ultra-simple contact form.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected7,405 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 4,738 |
PHP | 16 | 229 | 131 | 1,347 |
JavaScript | 15 | 182 | 49 | 1,048 |
LESS | 1 | 35 | 1 | 143 |
PO File | 1 | 27 | 27 | 128 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 12.46 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 85 | |
▷ Static methods | 16 | 18.82% |
▷ Public methods | 84 | 98.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.18% |
Functions | 11 | |
▷ Named functions | 2 | 18.18% |
▷ Anonymous functions | 9 | 81.82% |
Constants | 6 | |
▷ Global constants | 6 | 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
PNG images were not found in this plugin