Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- The plugin did not install without errors
- > Compile error in wp-content/plugins/contact-form-redux/includes/form-tag.php+391
Declaration of CFREDUX_FormTag::offsetExists(mixed $offset): bool must be compatible with ArrayAccess::offsetExists($offset)
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.45ms] Passed 4 tests
This is a short check of server-side resources used by Contact Form Redux
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.19 ▼5.32 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.19 ▼6.67 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.71 ▲1.82 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.24 ▼6.71 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.43 ▼3.08 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 64 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Contact Form Redux
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲28 | 14.67 ▲0.78 | 1.89 ▲0.16 | 40.43 ▼3.68 |
Dashboard /wp-admin | 2,192 ▲12 | 5.56 ▼0.08 | 86.98 ▼10.71 | 38.21 ▼7.66 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.96 ▼0.01 | 38.66 ▲1.94 | 34.72 ▲1.92 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 22.86 ▼0.43 | 624.06 ▼49.13 | 52.43 ▼5.92 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.24 ▲0.05 | 95.45 ▼2.73 | 41.80 ▲0.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/contact-form-redux/admin/edit-contact-form.php
- 34× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contact-form-redux/includes/rest-api.php:3
- > PHP Fatal error
Declaration of CFREDUX_FormTag::offsetExists(mixed $offset): bool must be compatible with ArrayAccess::offsetExists($offset) in wp-content/plugins/contact-form-redux/includes/form-tag.php on line 391
- > PHP Fatal error
Declaration of CFREDUX_Validation::offsetExists(mixed $offset): bool must be compatible with ArrayAccess::offsetExists($offset) in wp-content/plugins/contact-form-redux/includes/validation.php on line 82
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contact-form-redux/modules/acceptance.php:8
- > PHP Warning
include_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/contact-form-redux/admin/includes/class-contact-forms-list-table.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contact-form-redux/modules/count.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contact-form-redux/modules/textarea.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contact-form-redux/modules/select.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contact-form-redux/modules/number.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contact-form-redux/admin/includes/welcome-panel.php:101
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration Passed 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: ajax, contact form, contact, akismet, google recaptcha...
contact-form-redux/contact-form-redux.php Passed 13 tests
The primary PHP file in "Contact Form Redux" version 1.3.7 is used by WordPress to initiate all plugin functionality
35 characters long description:
A simple but flexible contact form.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin13,161 lines of code in 59 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 45 | 2,368 | 252 | 11,589 |
JavaScript | 6 | 212 | 87 | 1,052 |
CSS | 8 | 106 | 51 | 520 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 27.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 102.00 |
Average method complexity | 3.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 1 | 5.00% |
▷ Concrete classes | 19 | 95.00% |
▷ Final classes | 0 | 0.00% |
Methods | 240 | |
▷ Static methods | 27 | 11.25% |
▷ Public methods | 203 | 84.58% |
▷ Protected methods | 1 | 0.42% |
▷ Private methods | 36 | 15.00% |
Functions | 222 | |
▷ Named functions | 215 | 96.85% |
▷ Anonymous functions | 7 | 3.15% |
Constants | 30 | |
▷ Global constants | 17 | 56.67% |
▷ Class constants | 13 | 43.33% |
▷ Public constants | 13 | 100.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
There were not PNG files found in your plugin