Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.90MB] [CPU: ▼176.73ms] Passed 4 tests
An overview of server-side resources used by Go-Contact
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 33.32 ▲12.39 |
Dashboard /wp-admin | 2.75 ▼0.31 | 22.16 ▼23.65 |
Posts /wp-admin/edit.php | 2.75 ▼0.36 | 21.37 ▼24.12 |
Add New Post /wp-admin/post-new.php | 2.75 ▼2.69 | 21.69 ▼640.58 |
Media Library /wp-admin/upload.php | 2.75 ▼0.26 | 20.75 ▼18.58 |
Create Form /wp-admin/admin.php?page=Go-Contact | 2.75 | 21.80 |
Edit Form /wp-admin/admin.php?page=Go-Edit-Contact | 2.75 | 18.88 |
Go-Contact /wp-admin/admin.php?page=go-contact/start.php | 2.75 | 23.47 |
Edit Go-Contact Form /wp-admin/admin.php?page=GO-Edit-Single-Page | 2.75 | 20.96 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 40 new files
Database: 1 new table, no new options
New tables |
---|
wp_go_contact_details |
Browser metrics Passed 4 tests
Checking browser requirements for Go-Contact
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,825 ▲229 | 16.21 ▲0.18 | 16.73 ▲6.53 | 45.26 ▼1.51 |
Dashboard /wp-admin | 3,009 ▲78 | 5.93 ▼0.03 | 144.37 ▼5.29 | 105.04 ▼4.53 |
Posts /wp-admin/edit.php | 2,778 ▲39 | 2.72 ▲0.01 | 69.09 ▼1.91 | 83.48 ▼5.92 |
Add New Post /wp-admin/post-new.php | 1,525 ▼2,208 | 18.56 ▼0.00 | 390.46 ▼93.78 | 106.01 ▲0.99 |
Media Library /wp-admin/upload.php | 1,846 ▲24 | 5.12 ▲0.09 | 149.18 ▲8.85 | 113.66 ▼6.68 |
Create Form /wp-admin/admin.php?page=Go-Contact | 1,590 | 2.63 | 63.72 | 79.60 |
Edit Form /wp-admin/admin.php?page=Go-Edit-Contact | 1,107 | 2.09 | 52.33 | 63.40 |
Go-Contact /wp-admin/admin.php?page=go-contact/start.php | 1,031 | 2.08 | 52.99 | 65.02 |
Edit Go-Contact Form /wp-admin/admin.php?page=GO-Edit-Single-Page | 1,585 | 2.54 | 54.78 | 83.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5495
has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_go_contact_details
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 39 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=GO-Edit-Single-Page
- > User deprecated in wp-includes/functions.php+5495
has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/admin.php?page=GO-Edit-Single-Page
- > Notice in wp-content/plugins/go-contact/edit_single_form.php+127
Undefined variable: enable_captcha
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=GO-Edit-Single-Page
- > Notice in wp-content/plugins/go-contact/edit_single_form.php+214
Undefined variable: form_array
- > GET request to /wp-admin/admin.php?page=GO-Edit-Single-Page
- > Notice in wp-content/plugins/go-contact/edit_single_form.php+131
Trying to get property 'public_key' of non-object
- > GET request to /wp-admin/admin.php?page=GO-Edit-Single-Page
- > Notice in wp-content/plugins/go-contact/edit_single_form.php+135
Trying to get property 'private_key' of non-object
- > GET request to /wp-admin/admin.php?page=GO-Edit-Single-Page
- > Notice in wp-content/plugins/go-contact/edit_single_form.php+139
Undefined variable: div_class_name
- > GET request to /wp-admin/admin.php?page=GO-Edit-Single-Page
- > Notice in wp-content/plugins/go-contact/edit_single_form.php+162
Trying to get property 'contact_form_content' of non-object
- > GET request to /wp-admin/admin.php?page=GO-Edit-Single-Page
- > Notice in wp-content/plugins/go-contact/edit_single_form.php+174
Trying to get property 'mail_to' of non-object
- > GET request to /wp-admin/admin.php?page=GO-Edit-Single-Page
- > Notice in wp-content/plugins/go-contact/edit_single_form.php+178
Trying to get property 'id_list' of non-object
- > GET request to /wp-admin/admin.php?page=GO-Edit-Single-Page
- > Notice in wp-content/plugins/go-contact/edit_single_form.php+182
Trying to get property 'mail_body' of non-object
- > GET request to /wp-admin/admin.php?page=GO-Edit-Single-Page
- > Notice in wp-content/plugins/go-contact/edit_single_form.php+193
Trying to get property 'php_code' of non-object
- > GET request to /wp-admin/admin.php?page=GO-Edit-Single-Page
- > Notice in wp-content/plugins/go-contact/edit_single_form.php+203
Trying to get property 'javascript_code' of non-object
- > GET request to /wp-admin/admin.php?page=GO-Edit-Single-Page
- > Notice in wp-content/plugins/go-contact/edit_single_form.php+214
Trying to get property 'file_url' of non-object
- > GET request to /wp-admin/admin.php?page=GO-Edit-Single-Page
- > Notice in wp-content/plugins/go-contact/edit_single_form.php+223
Undefined variable: id
SRP 0% 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
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/go-contact/shortcode_show.php
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/go-contact/start.php:33
- > PHP Fatal error
require(): Failed opening required 'wp-content/wp-config.php' (include_path='.:/usr/share/php') in wp-content/plugins/go-contact/save_form.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/go-contact/create_form.php:4
- > PHP Warning
require(wp-content/wp-config.php): failed to open stream: No such file or directory in wp-content/plugins/go-contact/save_form.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/go-contact/edit_single_form.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/go-contact/edit_form.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Donate link: Invalid URI ("")
go-contact/start.php 92% from 13 tests
"Go-Contact" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("go-contact.php" instead of "start.php")
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,372 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 108 | 182 | 757 |
CSS | 1 | 33 | 150 | 380 |
JavaScript | 2 | 24 | 24 | 235 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.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 | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.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 | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
29 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/humanity/images/ui-bg_highlight-hard_100_f4f0ec_1x100.png | 0.13KB | 0.15KB | 0.00% |
css/humanity/images/ui-bg_flat_75_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
css/humanity/images/ui-icons_f08000_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/humanity/images/ui-icons_cb672b_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/humanity/images/ui-icons_ffffff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |