Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method ContactPress::db_install() should not be called statically
Server metrics [RAM: ▼0.94MB] [CPU: ▼39.23ms] Passed 4 tests
Analyzing server-side resources used by ContactPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.03 ▲0.01 |
Dashboard /wp-admin | 3.01 ▼0.33 | 25.74 ▼37.86 |
Posts /wp-admin/edit.php | 3.02 ▼0.34 | 23.53 ▼28.86 |
Add New Post /wp-admin/post-new.php | 3.01 ▼2.87 | 23.42 ▼77.77 |
Media Library /wp-admin/upload.php | 3.01 ▼0.21 | 22.55 ▼12.43 |
Fantastic Contact Form /wp-admin/admin.php?page=view_contact_form | 3.02 | 26.35 |
Fantastic Contact Form /wp-admin/admin.php?page=reply_mail | 3.02 | 24.64 |
User Management /wp-admin/admin.php?page=contact_form_a_plus | 3.02 | 23.63 |
Add New Contact /wp-admin/admin.php?page=contact_forms-1 | 3.02 | 26.89 |
ContactPress /wp-admin/admin.php?page=contacts | 3.02 | 22.33 |
Fantastic Contact Form /wp-admin/admin.php?page=compose_mail | 3.02 | 28.01 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: 1 new table, 28 new options
New tables |
---|
wp_contactpress |
New WordPress options |
---|
db_upgraded |
enable_responsiveness |
error_empty_captcha |
theysaidso_admin_options |
can_compress_scripts |
label_name |
contact_form_db_version |
bulk_subject |
credits_defaults |
credits_name |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for ContactPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲68 | 14.35 ▲0.33 | 1.74 ▼0.33 | 49.80 ▲8.69 |
Dashboard /wp-admin | 2,226 ▲48 | 5.64 ▲0.01 | 87.12 ▼18.58 | 39.67 ▼4.37 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 2.07 ▲0.07 | 37.84 ▼3.90 | 33.78 ▼2.61 |
Add New Post /wp-admin/post-new.php | 1,575 ▲49 | 23.47 ▲5.95 | 706.14 ▲8.10 | 52.47 ▼4.51 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.23 ▼0.02 | 114.53 ▲11.16 | 46.04 ▼1.06 |
Fantastic Contact Form /wp-admin/admin.php?page=view_contact_form | 930 | 2.03 | 23.62 | 24.88 |
Fantastic Contact Form /wp-admin/admin.php?page=reply_mail | 1,644 | 6.78 | 146.44 | 53.99 |
User Management /wp-admin/admin.php?page=contact_form_a_plus | 1,084 | 2.06 | 22.92 | 30.27 |
Add New Contact /wp-admin/admin.php?page=contact_forms-1 | 962 | 2.17 | 27.18 | 30.72 |
ContactPress /wp-admin/admin.php?page=contacts | 1,299 | 1.76 | 25.15 | 46.10 |
Fantastic Contact Form /wp-admin/admin.php?page=compose_mail | 1,624 | 6.57 | 125.93 | 40.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method ContactPress::contact_form_admin_menu() should not be called statically
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_contactpress
- This plugin did not uninstall successfully, leaving 28 options in the database
- credits_nofollow
- label_comment
- error_empty_captcha
- enable_responsiveness
- label_subject
- contact_form_db_version
- credits_name
- thanks_contact
- theysaidso_admin_options
- label_url
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=compose_mail
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method ContactPress::contact_form_admin_menu() should not be called statically
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=compose_mail
- > Warning in wp-content/plugins/contactpress/contactpress.php+163
Use of undefined constant IC_MYPLUGIN_PERMISSIONS - assumed 'IC_MYPLUGIN_PERMISSIONS' (this will throw an Error in a future version of PHP)
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=compose_mail
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method ContactPress::update_contact_admin() should not be called statically
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=compose_mail
- > Notice in wp-content/plugins/contactpress/contactpress.php+951
Undefined index: nonce
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=compose_mail
- > Notice in wp-content/plugins/contactpress/contactpress.php+1000
Undefined index: id
- > GET request to /wp-admin/admin.php?page=reply_mail
- > Notice in wp-content/plugins/contactpress/contactpress.php+1195
Undefined index: name
- > GET request to /wp-admin/admin.php?page=reply_mail
- > Notice in wp-content/plugins/contactpress/contactpress.php+1197
Undefined index: time
- > GET request to /wp-admin/admin.php?page=reply_mail
- > Warning in wp-content/plugins/contactpress/contactpress.php+1209
Use of undefined constant message - assumed 'message' (this will throw an Error in a future version of PHP)
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
Almost there! Just fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/contactpress/contactpress.php on line 14
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/contactpress/contactpress.php on line 14
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/contactpress/contactpress.php on line 14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== contactpress ===
)
contactpress/contactpress.php Passed 13 tests
The main PHP file in "ContactPress" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
67 characters long description:
ContactPress is the Ajax Based Responsive Form With User Management
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,588 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 159 | 40 | 1,384 |
CSS | 1 | 32 | 0 | 204 |
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.18 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 1.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/favicon.png | 19.01KB | 6.16KB | ▼ 67.58% |