Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.16MB] [CPU: ▼4.90ms] Passed 4 tests
Server-side resources used by Database for Contact Form 7
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 36.93 ▼2.47 |
Dashboard /wp-admin | 3.46 ▲0.16 | 47.58 ▼4.93 |
Posts /wp-admin/edit.php | 3.57 ▲0.22 | 47.56 ▼0.83 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.16 | 84.18 ▼10.28 |
Media Library /wp-admin/upload.php | 3.38 ▲0.16 | 34.98 ▼1.91 |
Database /wp-admin/admin.php?page=cf7-data | 3.28 | 28.80 |
Server storage [IO: ▲1.44MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 21 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_cf7_data_entry |
wp_cf7_data |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Database for Contact Form 7: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▼0.01 | 1.60 ▼0.07 | 36.54 ▼1.88 |
Dashboard /wp-admin | 2,198 ▲20 | 5.64 ▲0.00 | 81.42 ▼23.45 | 39.21 ▼4.57 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▼0.18 | 34.43 ▼2.08 | 31.25 ▼3.45 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.10 ▼0.09 | 677.24 ▼22.58 | 53.28 ▼28.80 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.17 ▼0.02 | 93.33 ▼5.16 | 41.07 ▼3.16 |
Database /wp-admin/admin.php?page=cf7-data | 1,134 | 8.58 | 190.57 | 45.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_cf7_data_entry
- wp_cf7_data
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=cf7-data
- > Notice in wp-content/plugins/cf7-database/admin/init.php+125
Undefined offset: 0
- > GET request to /wp-admin/admin.php?page=cf7-data
- > Notice in wp-content/plugins/cf7-database/admin/init.php+125
Trying to access array offset on value of type null
SRP 50% 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
The following issues need your attention
- 9× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/cf7-database/admin/unique-id.php
- > /wp-content/plugins/cf7-database/frontend/init.php
- > /wp-content/plugins/cf7-database/admin/Helper.php
- > /wp-content/plugins/cf7-database/cf7-database.php
- > /wp-content/plugins/cf7-database/functions.php
- > /wp-content/plugins/cf7-database/admin/I18n.php
- > /wp-content/plugins/cf7-database/frontend/save-files.php
- > /wp-content/plugins/cf7-database/admin/init.php
- > /wp-content/plugins/cf7-database/admin/Ajax.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: contact, contact form, save data, save form, form...
cf7-database/cf7-database.php 92% from 13 tests
The main PHP script in "Database for Contact Form 7" version 3.0.6 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 150 characters long)
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
Good job! No executable or dangerous file extensions detected1,482 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 84 | 60 | 984 |
PO File | 3 | 192 | 201 | 461 |
CSS | 2 | 4 | 0 | 27 |
JavaScript | 1 | 0 | 37 | 10 |
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.48 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 33 | |
▷ Named functions | 31 | 93.94% |
▷ Anonymous functions | 2 | 6.06% |
Constants | 6 | |
▷ Global constants | 6 | 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
No PNG images were found in this plugin