Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- The plugin cannot be installed
- > Notice in wp-content/plugins/professional-contact-form/includes/recaptcha.php+11
Undefined index: pcf_reCaptcha_secret_key
Server metrics [RAM: ▼1.78MB] [CPU: ▼52.03ms] Passed 4 tests
Analyzing server-side resources used by Professional Contact Form
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.20 ▼1.26 | 6.32 ▼34.17 |
Dashboard /wp-admin | 2.22 ▼1.08 | 7.03 ▼43.39 |
Posts /wp-admin/edit.php | 2.22 ▼1.13 | 6.24 ▼41.09 |
Add New Post /wp-admin/post-new.php | 2.22 ▼3.66 | 6.93 ▼89.48 |
Media Library /wp-admin/upload.php | 2.22 ▼1.01 | 7.28 ▼30.35 |
Contact Form /wp-admin/options-general.php?page=pcf_options_page | 2.22 | 7.60 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Professional Contact Form
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲46 | 13.81 ▼0.54 | 15.37 ▲13.19 | 42.89 ▼2.04 |
Dashboard /wp-admin | 2,202 ▲25 | 5.56 ▲0.03 | 82.33 ▼13.96 | 40.93 ▼1.16 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.01 ▼0.03 | 35.79 ▼1.05 | 35.07 ▼2.95 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.65 ▲0.45 | 605.69 ▼11.49 | 64.42 ▲5.64 |
Media Library /wp-admin/upload.php | 1,398 ▼5 | 4.18 ▼0.03 | 100.19 ▲1.06 | 42.93 ▼0.83 |
Contact Form /wp-admin/options-general.php?page=pcf_options_page | 841 | 2.15 | 23.25 | 46.05 |
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
Please fix the following items
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/professional-contact-form/includes/recaptcha.php+11
Undefined index: pcf_reCaptcha_secret_key
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=pcf_options_page
- > Notice in wp-content/plugins/professional-contact-form/includes/recaptcha.php+11
Undefined index: pcf_reCaptcha_secret_key
- > GET request to /wp-admin/options-general.php?page=pcf_options_page
- > Notice in wp-content/plugins/professional-contact-form/includes/form.php+63
Undefined index: pcf_field_name_status
- > GET request to /wp-admin/options-general.php?page=pcf_options_page
- > Notice in wp-content/plugins/professional-contact-form/includes/form.php+64
Undefined index: pcf_field_name_required
- > GET request to /wp-admin/options-general.php?page=pcf_options_page
- > Notice in wp-content/plugins/professional-contact-form/includes/form.php+65
Undefined index: pcf_field_name_placeholder
- > GET request to /wp-admin/options-general.php?page=pcf_options_page
- > Notice in wp-content/plugins/professional-contact-form/includes/form.php+71
Undefined index: pcf_field_email_status
- > GET request to /wp-admin/options-general.php?page=pcf_options_page
- > Notice in wp-content/plugins/professional-contact-form/includes/form.php+72
Undefined index: pcf_field_email_required
- > GET request to /wp-admin/options-general.php?page=pcf_options_page
- > Notice in wp-content/plugins/professional-contact-form/includes/form.php+73
Undefined index: pcf_field_email_placeholder
- > GET request to /wp-admin/options-general.php?page=pcf_options_page
- > Notice in wp-content/plugins/professional-contact-form/includes/form.php+79
Undefined index: pcf_field_phone_status
- > GET request to /wp-admin/options-general.php?page=pcf_options_page
- > Notice in wp-content/plugins/professional-contact-form/includes/form.php+80
Undefined index: pcf_field_phone_required
- > GET request to /wp-admin/options-general.php?page=pcf_options_page
- > Notice in wp-content/plugins/professional-contact-form/includes/form.php+81
Undefined index: pcf_field_phone_placeholder
- > GET request to /wp-admin/options-general.php?page=pcf_options_page
- > Notice in wp-content/plugins/professional-contact-form/includes/form.php+97
Undefined index: pcf_reCaptcha_status
- > GET request to /wp-admin/options-general.php?page=pcf_options_page
- > Notice in wp-content/plugins/professional-contact-form/includes/form.php+98
Undefined index: pcf_reCaptcha_site_key
- > GET request to /wp-admin/options-general.php?page=pcf_options_page
- > Notice in wp-content/plugins/professional-contact-form/includes/libs/azm_settings_page.php+229
Undefined index: pcf_mail_to
SRP 50% from 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
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/professional-contact-form/professional-contact-form.php:43
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: invisible recapcha, contact, ajax, contact form, email
professional-contact-form/professional-contact-form.php Passed 13 tests
The principal PHP file in "Professional Contact Form" v. 1.0.0 is loaded by WordPress automatically on each request
89 characters long description:
This plugin creates a professional looking contact form, that requires very little setup.
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
There were no executable files found in this plugin887 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 324 | 88 | 857 |
SVG | 4 | 0 | 0 | 24 |
CSS | 4 | 0 | 0 | 4 |
JavaScript | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 15.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 4.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 76.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 24.00% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin