Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5453
Function get_settings is deprecated since version 2.1.0! Use get_option() instead.
Server metrics [RAM: ▲0.10MB] [CPU: ▼6.06ms] Passed 4 tests
A check of server-side resources used by General Contact Form
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 48.12 ▲3.19 |
Dashboard /wp-admin | 3.42 ▲0.12 | 45.73 ▼8.09 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 49.65 ▼0.73 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 84.70 ▼10.93 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 35.46 ▼4.50 |
Contact Form /wp-admin/admin.php?page=my-top-level-handle | 3.32 | 36.79 |
Records /wp-admin/admin.php?page=my-submenu-handle | 3.25 | 33.33 |
/wp-admin/options-general.php?page=general-contact-form/search_records.php | 3.28 | 31.81 |
/wp-admin/options-general.php?page=general-contact-form/update_fields.php | 3.32 | 33.82 |
/wp-admin/options-general.php?page=general-contact-form/delete_fields.php | 3.27 | 30.68 |
/wp-admin/options-general.php?page=general-contact-form/add_fields.php | 3.29 | 28.06 |
/wp-admin/options-general.php?page=general-contact-form/more_records.php | 3.28 | 31.52 |
/wp-admin/options-general.php?page=general-contact-form/delete_records.php | 3.27 | 28.83 |
Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Please fix the following
- There were 1 file (4.00KB) illegally modified outside of "wp-content/plugins/general-contact-form/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 21 new files
Database: 2 new tables, 13 new options
New tables |
---|
wp_CF_fields |
wp_CF_records |
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
CF_title |
db_upgraded |
CF_fields |
can_compress_scripts |
CF_records |
CF_On_MyEmail |
widget_theysaidso_widget |
CF_On_SendEmail |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for General Contact Form
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,864 ▲103 | 13.68 ▼0.69 | 1.75 ▼0.28 | 42.61 ▼2.20 |
Dashboard /wp-admin | 2,266 ▲66 | 4.85 ▼1.03 | 108.43 ▼8.59 | 39.73 ▼3.92 |
Posts /wp-admin/edit.php | 2,149 ▲52 | 2.05 ▲0.05 | 41.83 ▲6.81 | 34.26 ▼1.69 |
Add New Post /wp-admin/post-new.php | 1,559 ▲14 | 22.69 ▼0.84 | 672.08 ▲19.79 | 50.60 ▼8.68 |
Media Library /wp-admin/upload.php | 1,445 ▲45 | 4.23 ▼0.00 | 107.74 ▼11.17 | 47.41 ▼0.85 |
Contact Form /wp-admin/admin.php?page=my-top-level-handle | 1,077 | 2.07 | 29.52 | 32.61 |
Records /wp-admin/admin.php?page=my-submenu-handle | 836 | 2.06 | 24.93 | 26.33 |
/wp-admin/options-general.php?page=general-contact-form/search_records.php | 827 | 2.02 | 24.92 | 30.98 |
/wp-admin/options-general.php?page=general-contact-form/update_fields.php | 1,029 | 2.03 | 24.95 | 28.35 |
/wp-admin/options-general.php?page=general-contact-form/delete_fields.php | 1,098 | 2.04 | 23.69 | 32.44 |
/wp-admin/options-general.php?page=general-contact-form/add_fields.php | 1,039 | 2.03 | 29.11 | 28.24 |
/wp-admin/options-general.php?page=general-contact-form/more_records.php | 852 | 2.06 | 23.61 | 27.94 |
/wp-admin/options-general.php?page=general-contact-form/delete_records.php | 838 | 2.02 | 23.50 | 28.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie tables detected upon uninstall: 2 tables
- wp_CF_fields
- wp_CF_records
- This plugin does not fully uninstall, leaving 13 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- CF_On_MySubject
- CF_On_SendEmail
- CF_fields
- CF_records
- db_upgraded
- CF_On_MyEmail
- can_compress_scripts
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=general-contact-form/delete_records.php
- > Notice in wp-content/plugins/general-contact-form/delete_records.php+4
Undefined index: val
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=general-contact-form/delete_fields.php
- > Warning in wp-content/plugins/general-contact-form/contact_admin.php+24
Use of undefined constant add - assumed 'add' (this will throw an Error in a future version of PHP)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=general-contact-form/delete_records.php
- > Warning in wp-content/plugins/general-contact-form/index.php+205
Use of undefined constant del - assumed 'del' (this will throw an Error in a future version of PHP)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=general-contact-form/delete_fields.php
- > Warning in wp-content/plugins/general-contact-form/contact_admin.php+32
Use of undefined constant updt - assumed 'updt' (this will throw an Error in a future version of PHP)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=general-contact-form/delete_fields.php
- > Notice in wp-content/plugins/general-contact-form/contact_admin.php+38
Undefined index: CF_submit
- > GET request to /wp-admin/admin.php?page=my-submenu-handle
- > Notice in wp-content/plugins/general-contact-form/index.php+204
Undefined index: check
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=general-contact-form/delete_records.php
- > Notice in wp-content/plugins/general-contact-form/index.php+209
Undefined index: start
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=general-contact-form/delete_records.php
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=general-contact-form/delete_records.php
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query does not contain the correct number of placeholders (0) for the number of arguments passed (1). Please see Debugging in WordPress for more information. (This message was added in version 4.8.3.)
- > GET request to /wp-admin/options-general.php?page=general-contact-form/search_records.php
- > Notice in wp-content/plugins/general-contact-form/search_records.php+3
Undefined index: search
- > GET request to /wp-admin/options-general.php?page=general-contact-form/update_fields.php
- > Notice in wp-content/plugins/general-contact-form/update_fields.php+14
Undefined index: CF_update_submit
- 9 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=general-contact-form/update_fields.php
- > Notice in wp-content/plugins/general-contact-form/update_fields.php+163
Undefined variable: result
- > GET request to /wp-admin/options-general.php?page=general-contact-form/update_fields.php
- > Notice in wp-content/plugins/general-contact-form/update_fields.php+82
Trying to get property 'id' of non-object
- > GET request to /wp-admin/options-general.php?page=general-contact-form/update_fields.php
- > Notice in wp-content/plugins/general-contact-form/update_fields.php+90
Trying to get property 'fieldid' of non-object
- > GET request to /wp-admin/options-general.php?page=general-contact-form/update_fields.php
- > Notice in wp-content/plugins/general-contact-form/update_fields.php+98
Trying to get property 'fieldname' of non-object
- > GET request to /wp-admin/options-general.php?page=general-contact-form/update_fields.php
- > Notice in wp-content/plugins/general-contact-form/update_fields.php+106
Trying to get property 'display' of non-object
- > GET request to /wp-admin/options-general.php?page=general-contact-form/update_fields.php
- > Notice in wp-content/plugins/general-contact-form/update_fields.php+115
Trying to get property 'required' of non-object
- > GET request to /wp-admin/options-general.php?page=general-contact-form/update_fields.php
- > Notice in wp-content/plugins/general-contact-form/update_fields.php+125
Trying to get property 'type' of non-object
- > GET request to /wp-admin/options-general.php?page=general-contact-form/update_fields.php
- > Notice in wp-content/plugins/general-contact-form/update_fields.php+139
Trying to get property 'values' of non-object
- > GET request to /wp-admin/options-general.php?page=general-contact-form/update_fields.php
- > Notice in wp-content/plugins/general-contact-form/update_fields.php+149
Trying to get property 'validation' of non-object
- > GET request to /wp-admin/options-general.php?page=general-contact-form/update_fields.php
- > Notice in wp-content/plugins/general-contact-form/update_fields.php+163
Trying to get property 'size' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=general-contact-form/delete_fields.php
- > Notice in wp-content/plugins/general-contact-form/delete_fields.php+16
Undefined variable: col_name
- > GET request to /wp-admin/options-general.php?page=general-contact-form/add_fields.php
- > Notice in wp-content/plugins/general-contact-form/add_fields.php+17
Undefined index: CF_new_submit
- > GET request to /wp-admin/options-general.php?page=general-contact-form/add_fields.php
- > Notice in wp-content/plugins/general-contact-form/add_fields.php+90
Undefined variable: key_id
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/general-contact-form/captcha.php
- 15× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/general-contact-form/index.php:120
- > PHP Notice
Undefined index: search in wp-content/plugins/general-contact-form/search_records.php on line 3
- > PHP Notice
Undefined index: val in wp-content/plugins/general-contact-form/delete_fields.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/general-contact-form/update_fields.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/general-contact-form/more_records.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/general-contact-form/contact_admin.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/general-contact-form/update_records.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/general-contact-form/add_fields.php:15
- > PHP Notice
Undefined index: val in wp-content/plugins/general-contact-form/delete_records.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/general-contact-form/delete_fields.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (Contact Form Admin Panel screenshot1.png), #2 (Contact Form display features screenshot2.png), #3 (Adding new fields screenshot3.png), #4 (Contact Form front end display screenshot4.png)
general-contact-form/index.php 85% from 13 tests
Analyzing the main PHP file in "General Contact Form" version 1.7
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 400 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("general-contact-form.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,107 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 129 | 68 | 1,107 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
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 | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.33MB with 0.20MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot2.png | 22.81KB | 8.31KB | ▼ 63.56% |
screenshot3.png | 91.13KB | 44.29KB | ▼ 51.40% |
screenshot4.png | 6.30KB | 1.79KB | ▼ 71.65% |
screenshot1.png | 221.10KB | 109.58KB | ▼ 50.44% |