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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.22MB] [CPU: ▼4.31ms] Passed 4 tests
This is a short check of server-side resources used by Contact Form 7 Views
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 37.26 ▼0.26 |
Dashboard /wp-admin | 3.52 ▲0.22 | 46.21 ▲0.15 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 46.49 ▼0.93 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 81.81 ▼15.42 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 34.91 ▼0.61 |
Add View /wp-admin/post-new.php?post_type=cf7-views | 3.49 | 39.98 |
All CF7 Views /wp-admin/edit.php?post_type=cf7-views | 3.49 | 36.07 |
Get Pro /wp-admin/edit.php?post_type=cf7-views&page=cf7-views-get-pro | 3.42 | 30.93 |
Help /wp-admin/edit.php?post_type=cf7-views&page=cf7-views-help | 3.42 | 31.97 |
Server storage [IO: ▲5.00MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 46 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
cf7_views_reviews_installed_on |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Contact Form 7 Views: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲48 | 14.35 ▼0.29 | 1.73 ▼0.14 | 42.19 ▲3.59 |
Dashboard /wp-admin | 2,231 ▲51 | 5.66 ▼0.00 | 85.85 ▼1.06 | 38.62 ▼6.75 |
Posts /wp-admin/edit.php | 2,133 ▲36 | 1.98 ▼0.05 | 34.40 ▼3.52 | 33.78 ▼0.94 |
Add New Post /wp-admin/post-new.php | 1,556 ▲29 | 22.88 ▼0.28 | 660.75 ▼6.24 | 55.09 ▼6.62 |
Media Library /wp-admin/upload.php | 1,433 ▲39 | 4.15 ▼0.04 | 97.27 ▼9.17 | 41.68 ▼6.84 |
Add View /wp-admin/post-new.php?post_type=cf7-views | 1,528 | 4.27 | 66.65 | 59.36 |
All CF7 Views /wp-admin/edit.php?post_type=cf7-views | 1,124 | 1.97 | 29.27 | 29.71 |
Get Pro /wp-admin/edit.php?post_type=cf7-views&page=cf7-views-get-pro | 890 | 2.02 | 23.56 | 44.17 |
Help /wp-admin/edit.php?post_type=cf7-views&page=cf7-views-help | 819 | 2.03 | 22.56 | 24.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- cf7_views_reviews_installed_on
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-views/inc/admin/class-cf7-views-ajax.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-views/inc/admin/class-cf7-views-posttype.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-views/inc/admin/class-cf7-views-upgrade-to-pro-page.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/cf7-views/inc/class-cf7-views-shortcode.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-views/inc/admin/class-cf7-views-metabox.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-views/inc/admin/class-cf7-views-support.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/post-new.php?post_type=cf7-views
- > Javascript (severe) in unknown
/wp-content/plugins/cf7-views/build/static/js/1.e3367321.chunk.js?ver=6.3.1 0:307749 Uncaught Error: Minified React error #200; visit https://reactjs.o… for full errors and additional helpful warnings.
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: cf7, contact form 7, display submissions
cf7-views/cf7-views.php Passed 13 tests
The primary PHP file in "Contact Form 7 Views" version 2.3.1 is used by WordPress to initiate all plugin functionality
47 characters long description:
Display Contact Form 7 Submissions in frontend.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin5,734 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 12 | 4,479 |
PHP | 12 | 260 | 327 | 1,178 |
CSS | 7 | 4 | 37 | 74 |
JavaScript | 3 | 0 | 3 | 3 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 3.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 63 | |
▷ Static methods | 15 | 23.81% |
▷ Public methods | 59 | 93.65% |
▷ Protected methods | 3 | 4.76% |
▷ Private methods | 1 | 1.59% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 2 | 33.33% |
▷ Class constants | 4 | 66.67% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected