Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼10.25ms] Passed 4 tests
This is a short check of server-side resources used by Contact Form 7 - Post Fields
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 35.60 ▼3.64 |
Dashboard /wp-admin | 3.31 ▼0.04 | 46.43 ▼18.92 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.38 ▲3.76 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.88 ▼22.19 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.06 ▲4.32 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 75 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Contact Form 7 - Post Fields: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.47 ▼0.92 | 4.60 ▲2.84 | 38.20 ▼3.09 |
Dashboard /wp-admin | 2,209 ▲21 | 4.90 ▲0.02 | 98.80 ▼3.89 | 41.41 ▲1.21 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 1.99 ▼0.04 | 39.86 ▲0.64 | 36.34 ▲1.97 |
Add New Post /wp-admin/post-new.php | 1,538 ▲19 | 23.04 ▼0.38 | 641.67 ▼34.13 | 56.58 ▼2.61 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.19 ▼0.02 | 105.86 ▲5.19 | 48.39 ▲1.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Please fix the following items
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/cf7-post-fields/modules/generators/checkbox.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/cf7-post-fields/modules/generators/image-checkbox.php:8
- > PHP Notice
Undefined variable: description in wp-content/plugins/cf7-post-fields/modules/generators/checkbox.php on line 3
- > PHP Notice
Undefined variable: description in wp-content/plugins/cf7-post-fields/modules/generators/select.php on line 3
- > PHP Notice
Undefined variable: description in wp-content/plugins/cf7-post-fields/modules/generators/image-checkbox.php on line 3
- > PHP Notice
Undefined variable: description in wp-content/plugins/cf7-post-fields/modules/generators/image-select.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/cf7-post-fields/modules/generators/select.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/cf7-post-fields/modules/generators/image-select.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== cf7-post-fields ===
)
cf7-post-fields/cf7-post-fields.php Passed 13 tests
The primary PHP file in "Contact Form 7 - Post Fields" version 2.5.7 is used by WordPress to initiate all plugin functionality
75 characters long description:
Provides a dynamic post select, radio and checkbox field to your CF7 forms.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin7,125 lines of code in 73 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 57 | 1,204 | 351 | 4,475 |
PHP | 12 | 555 | 321 | 2,067 |
CSS | 4 | 82 | 0 | 583 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 45.29 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 5.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 63 | |
▷ Static methods | 1 | 1.59% |
▷ Public methods | 44 | 69.84% |
▷ Protected methods | 11 | 17.46% |
▷ Private methods | 8 | 12.70% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
There were not PNG files found in your plugin