Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲1.55MB] [CPU: ▼149.45ms] Passed 4 tests
Analyzing server-side resources used by WCP Contact Form
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.33 ▲1.61 | 62.54 ▲29.42 |
Dashboard /wp-admin | 4.58 ▲1.53 | 66.44 ▲24.04 |
Posts /wp-admin/edit.php | 4.61 ▲1.51 | 70.30 ▲28.88 |
Add New Post /wp-admin/post-new.php | 7.17 ▲1.74 | 100.98 ▼670.41 |
Media Library /wp-admin/upload.php | 4.56 ▲1.55 | 54.90 ▲19.70 |
Server storage [IO: ▲5.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 238 new files
Database: no new tables, 4 new options
New WordPress options |
---|
scfp_form_settings |
widget_scfp_form_widget |
scfp_style_settings |
wcp-contact-form-version |
Browser metrics Passed 4 tests
A check of browser resources used by WCP Contact Form
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,926 ▲330 | 16.58 ▲1.09 | 12.00 ▲2.45 | 46.10 ▲0.10 |
Dashboard /wp-admin | 3,060 ▲126 | 6.56 ▲0.63 | 139.77 ▼10.20 | 111.24 ▼1.41 |
Posts /wp-admin/edit.php | 2,832 ▲93 | 2.45 ▼0.24 | 70.73 ▲7.08 | 102.78 ▲10.89 |
Add New Post /wp-admin/post-new.php | 1,695 ▼2,017 | 21.88 ▲1.30 | 266.10 ▼163.83 | 131.46 ▲15.52 |
Media Library /wp-admin/upload.php | 1,898 ▲91 | 5.31 ▲0.29 | 125.86 ▼27.42 | 116.41 ▼5.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options detected upon uninstall: 4 options
- scfp_style_settings
- wcp-contact-form-version
- scfp_form_settings
- widget_scfp_form_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
- 9× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wcp-contact-form/templates/admin/form/header.php
- > /wp-content/plugins/wcp-contact-form/agp-core/templates/admin/options/render-tabs.php
- > /wp-content/plugins/wcp-contact-form/inc/cool-php-captcha/resources/tools/dictionary-import/importwords.php
- > /wp-content/plugins/wcp-contact-form/templates/email/mail-template.php
- > /wp-content/plugins/wcp-contact-form/templates/admin/form/extended-settings/common/blank.php
- > /wp-content/plugins/wcp-contact-form/agp-core/templates/admin/options/fields/select.php
- > /wp-content/plugins/wcp-contact-form/agp-core/templates/admin/fields/repeater/header.php
- > /wp-content/plugins/wcp-contact-form/templates/admin/options/fields/checkboxes.php
- > /wp-content/plugins/wcp-contact-form/templates/admin/options/fields/select.php
- 297× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Trying to get property 'field' of non-object in wp-content/plugins/wcp-contact-form/templates/admin/options/fields/text.php on line 4
- > PHP Notice
Trying to get property 'key' of non-object in wp-content/plugins/wcp-contact-form/templates/admin/options/fields/select.php on line 21
- > PHP Notice
Trying to get property 'field' of non-object in wp-content/plugins/wcp-contact-form/agp-core/templates/admin/options/fields/text.php on line 3
- > PHP Notice
Undefined variable: params in wp-content/plugins/wcp-contact-form/templates/variables/data.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wcp-contact-form/templates/scfp.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Less_Tree' not found in wp-content/plugins/wcp-contact-form/vendor/oyejorge/less.php/lib/Less/Tree/Paren.php:9
- > PHP Notice
Trying to get property 'field' of non-object in wp-content/plugins/wcp-contact-form/agp-core/templates/admin/options/fields/text.php on line 4
- > PHP Notice
Trying to get property 'field' of non-object in wp-content/plugins/wcp-contact-form/templates/admin/options/fields/select.php on line 3
- > PHP Notice
Trying to get property 'field' of non-object in wp-content/plugins/wcp-contact-form/agp-core/templates/admin/options/fields/hidden.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'Less_Tree' not found in wp-content/plugins/wcp-contact-form/vendor/oyejorge/less.php/lib/Less/Tree/Extend.php:9
- > PHP Notice
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 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Tags: There are too many tags (31 tag instead of maximum 10)
wcp-contact-form/wcp-contact-form.php 92% from 13 tests
The principal PHP file in "WCP Contact Form" v. 3.1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 146 characters long)
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
Success! There were no dangerous files found in this plugin15,693 lines of code in 205 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 182 | 3,539 | 96,595 | 14,175 |
CSS | 6 | 26 | 330 | 672 |
JavaScript | 7 | 86 | 5 | 372 |
Markdown | 4 | 100 | 0 | 254 |
JSON | 4 | 0 | 0 | 109 |
LESS | 1 | 20 | 0 | 96 |
SVG | 1 | 0 | 0 | 15 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 25.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 391.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 92 | |
▷ Abstract classes | 10 | 10.87% |
▷ Concrete classes | 82 | 89.13% |
▷ Final classes | 0 | 0.00% |
Methods | 1,009 | |
▷ Static methods | 64 | 6.34% |
▷ Public methods | 872 | 86.42% |
▷ Protected methods | 30 | 2.97% |
▷ Private methods | 107 | 10.60% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 4 | 50.00% |
▷ Class constants | 4 | 50.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icons/icon-128x128.png | 17.79KB | 6.30KB | ▼ 64.58% |
assets/images/icons/refresh-icon.png | 3.28KB | 0.77KB | ▼ 76.47% |
assets/js/ico.png | 3.13KB | 0.24KB | ▼ 92.27% |