Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲1.20MB] [CPU: ▲3.99ms] Passed 4 tests
A check of server-side resources used by Custom Contact Forms
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.68 ▲1.21 | 48.73 ▲8.16 |
Dashboard /wp-admin | 4.50 ▲1.19 | 52.72 ▲1.13 |
Posts /wp-admin/edit.php | 4.55 ▲1.19 | 54.10 ▲8.06 |
Add New Post /wp-admin/post-new.php | 7.26 ▲1.37 | 91.30 ▼1.38 |
Media Library /wp-admin/upload.php | 4.42 ▲1.19 | 48.63 ▲12.24 |
New Form /wp-admin/post-new.php?post_type=ccf_form | 4.47 | 50.98 |
Forms and Submissions /wp-admin/edit.php?post_type=ccf_form | 4.47 | 43.25 |
Settings /wp-admin/edit.php?post_type=ccf_form&page=custom-contact-forms | 4.30 | 35.34 |
Server storage [IO: ▲5.26MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 317 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_custom-contact-forms |
ccf_upgraded_forms |
ccf_db_version |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Custom Contact Forms
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,161 ▲426 | 14.87 ▲0.61 | 20.40 ▲18.78 | 41.68 ▼1.81 |
Dashboard /wp-admin | 2,422 ▲237 | 4.94 ▼0.88 | 105.45 ▼1.23 | 40.08 ▼3.77 |
Posts /wp-admin/edit.php | 2,307 ▲215 | 2.51 ▲0.45 | 36.11 ▼2.72 | 33.06 ▼3.78 |
Add New Post /wp-admin/post-new.php | 1,741 ▲222 | 23.96 ▲0.81 | 705.30 ▼40.06 | 38.45 ▼24.40 |
Media Library /wp-admin/upload.php | 1,599 ▲211 | 4.30 ▼0.08 | 96.09 ▼2.61 | 43.58 ▲2.94 |
New Form /wp-admin/post-new.php?post_type=ccf_form | 2,751 | 4.35 | 74.51 | 30.11 |
Forms and Submissions /wp-admin/edit.php?post_type=ccf_form | 1,323 | 2.32 | 35.00 | 31.63 |
Settings /wp-admin/edit.php?post_type=ccf_form&page=custom-contact-forms | 1,115 | 1.88 | 25.09 | 30.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_theysaidso_widget
- widget_custom-contact-forms
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- ccf_upgraded_forms
- theysaidso_admin_options
- ccf_db_version
Smoke tests 25% 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
- > GET request to /wp-admin/edit.php?post_type=ccf_form&page=custom-contact-forms
- > Notice in wp-content/plugins/custom-contact-forms/classes/class-ccf-settings.php+104
Trying to access array offset on value of type bool
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
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/custom-contact-forms/vendor/abeautifulsite/simple-php-captcha/index.php
- 66× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHWPINC/class-wp-http-response.php' (include_path='.:/usr/share/php') in wp-content/plugins/custom-contact-forms/wp-api/core/wp-includes/http.php on line 12
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-contact-forms/wp-api/core/rest-api.php on line 20
- > PHP Warning
require(/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/custom-contact-forms/wp-api/core/phpunit/bootstrap.php on line 32
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/custom-contact-forms/classes/class-ccf-widget.php:9
- > PHP Warning
require_once(ABSPATHwp-admin/includes/admin.php): failed to open stream: No such file or directory in wp-content/plugins/custom-contact-forms/wp-api/core/phpunit/tests/rest-api.php on line 9
- > PHP Notice
Undefined variable: test_root in wp-content/plugins/custom-contact-forms/wp-api/tests/bootstrap.php on line 32
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Posts_Controller' not found in wp-content/plugins/custom-contact-forms/wp-api/lib/endpoints/class-wp-rest-attachments-controller.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/custom-contact-forms/wp-api/lib/endpoints/class-wp-rest-meta-controller.php:5
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-contact-forms/wp-api/core/wp-includes/rest-api.php on line 17
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/custom-contact-forms/wp-api/core/phpunit/tests/rest-api/rest-request.php:12
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: custom forms, custom contact form, contact form, contact fields, web form...
custom-contact-forms/custom-contact-forms.php 92% from 13 tests
The entry point to "Custom Contact Forms" version 7.8.5 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 180 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected66,034 lines of code in 261 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 112 | 4,952 | 1,986 | 35,515 |
PHP | 79 | 4,600 | 5,393 | 19,743 |
PO File | 5 | 1,605 | 2,676 | 3,606 |
Markdown | 9 | 1,392 | 0 | 2,496 |
CSS | 26 | 56 | 13 | 2,278 |
Sass | 7 | 283 | 0 | 1,458 |
JSON | 11 | 0 | 0 | 582 |
Bourne Shell | 3 | 48 | 23 | 166 |
XML | 7 | 4 | 4 | 156 |
SVG | 2 | 0 | 0 | 34 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 135)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 31.03 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 272.00 |
Average method complexity | 2.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 135.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 62 | |
▷ Abstract classes | 6 | 9.68% |
▷ Concrete classes | 56 | 90.32% |
▷ Final classes | 0 | 0.00% |
Methods | 1,057 | |
▷ Static methods | 22 | 2.08% |
▷ Public methods | 969 | 91.67% |
▷ Protected methods | 84 | 7.95% |
▷ Private methods | 4 | 0.38% |
Functions | 49 | |
▷ Named functions | 49 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 7 | 58.33% |
▷ Class constants | 5 | 41.67% |
▷ Public constants | 5 | 100.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
10 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/abeautifulsite/simple-php-captcha/backgrounds/stitched-wool.png | 1.05KB | 0.21KB | ▼ 80.21% |
assets/img/recaptcha.png | 24.87KB | 3.68KB | ▼ 85.19% |
vendor/abeautifulsite/simple-php-captcha/backgrounds/45-degree-fabric.png | 10.91KB | 10.37KB | ▼ 4.92% |
vendor/abeautifulsite/simple-php-captcha/backgrounds/white-carbon.png | 1.04KB | 0.18KB | ▼ 83.18% |
vendor/abeautifulsite/simple-php-captcha/backgrounds/cloth-alike.png | 3.51KB | 2.67KB | ▼ 23.79% |