Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼1.78ms] Passed 4 tests
Server-side resources used by Dev Con Form
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.61 ▲3.87 |
Dashboard /wp-admin | 3.36 ▲0.05 | 51.06 ▲2.68 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 45.41 ▼3.97 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 85.89 ▼5.98 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 38.22 ▲0.17 |
Add New /wp-admin/post-new.php?post_type=dev-con-form | 3.34 | 49.93 |
Contact Forms /wp-admin/edit.php?post_type=dev-con-form | 3.32 | 39.67 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Dev Con Form
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲153 | 14.31 ▼0.04 | 19.61 ▲17.86 | 45.24 ▲2.70 |
Dashboard /wp-admin | 2,225 ▲48 | 5.64 ▼0.02 | 92.08 ▲1.00 | 42.51 ▲1.17 |
Posts /wp-admin/edit.php | 2,130 ▲33 | 1.99 ▲0.05 | 36.89 ▼0.23 | 34.13 ▼3.16 |
Add New Post /wp-admin/post-new.php | 1,555 ▲29 | 20.94 ▼2.17 | 685.63 ▲28.51 | 55.36 ▼7.93 |
Media Library /wp-admin/upload.php | 1,436 ▲42 | 4.15 ▼0.04 | 97.49 ▼2.92 | 44.63 ▼2.95 |
Add New /wp-admin/post-new.php?post_type=dev-con-form | 1,704 | 2.60 | 50.29 | 61.30 |
Contact Forms /wp-admin/edit.php?post_type=dev-con-form | 1,077 | 2.08 | 31.56 | 30.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/dev-con-form/admin/views/form-recaptcha-template.php
- > /wp-content/plugins/dev-con-form/admin/views/form-settings-template.php
- > /wp-content/plugins/dev-con-form/admin/views/form-messages-template.php
- > /wp-content/plugins/dev-con-form/admin/views/form-layout-template.php
- 24× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'NDCF_Helper' not found in wp-content/plugins/dev-con-form/form-templates/default.php:17
- > PHP Notice
Undefined variable: recaptcha_secret_key in wp-content/plugins/dev-con-form/admin/views/form-recaptcha-template.php on line 19
- > PHP Warning
Use of undefined constant NDCF_CODEPEN_EXAMPLE_URL - assumed 'NDCF_CODEPEN_EXAMPLE_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/dev-con-form/admin/views/form-layout-template.php on line 1
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/dev-con-form/admin/views/form-layout-template.php on line 10
- > PHP Notice
Undefined variable: error_summary in wp-content/plugins/dev-con-form/admin/views/form-messages-template.php on line 10
- > PHP Notice
Undefined variable: success in wp-content/plugins/dev-con-form/admin/views/form-messages-template.php on line 13
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/dev-con-form/admin/views/form-layout-template.php on line 3
- > PHP Notice
Undefined variable: overwrite_from_name in wp-content/plugins/dev-con-form/admin/views/form-settings-template.php on line 19
- > PHP Notice
Undefined variable: subject in wp-content/plugins/dev-con-form/admin/views/form-settings-template.php on line 2
- > PHP Warning
Use of undefined constant NDCF_CODEPEN_EXAMPLE_URL - assumed 'NDCF_CODEPEN_EXAMPLE_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/dev-con-form/admin/views/form-layout-template.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
8 plugin tags: contact forms, form, mailer, recaptcha, contact...
dev-con-form/dev-con-form.php 92% from 13 tests
This is the main PHP file of "Dev Con Form" version 1.2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 269 characters long)
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
No dangerous file extensions were detected1,346 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 309 | 405 | 1,131 |
JavaScript | 2 | 78 | 0 | 170 |
CSS | 2 | 7 | 0 | 45 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 16.12 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 3.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 58 | |
▷ Static methods | 17 | 29.31% |
▷ Public methods | 47 | 81.03% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 18.97% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.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
There are no PNG files in this plugin