Benchmarks
Plugin footprint 65% 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.00ms] Passed 4 tests
Analyzing server-side resources used by Contact Form 7 Save to Database (Add-on for CF7)
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 43.63 ▲4.22 |
Dashboard /wp-admin | 3.31 ▲0.01 | 51.14 ▲1.18 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.88 ▼3.96 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.82 ▼18.24 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.50 ▲1.01 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 19 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_cf7_bhdb |
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Contact Form 7 Save to Database (Add-on for CF7)
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲63 | 14.80 ▲0.15 | 1.79 ▲0.10 | 43.44 ▲4.05 |
Dashboard /wp-admin | 2,230 ▲30 | 5.01 ▼0.83 | 111.48 ▲6.27 | 43.52 ▲0.24 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.01 ▲0.00 | 35.37 ▼4.87 | 38.60 ▲4.96 |
Add New Post /wp-admin/post-new.php | 1,554 ▼0 | 23.15 ▲4.80 | 659.40 ▲6.01 | 52.08 ▲0.62 |
Media Library /wp-admin/upload.php | 1,406 ▲9 | 4.31 ▲0.09 | 95.72 ▼7.51 | 44.36 ▼2.45 |
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
- The uninstall procedure failed, leaving 1 table in the database
- wp_cf7_bhdb
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
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
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined variable: fid in wp-content/plugins/cf7-save-to-database/tpl/ad-table.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cf7-save-to-database/cf7-save-to-database.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/cf7-save-to-database/tpl/ad-table.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-save-to-database/inc/frontend.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-save-to-database/inc/admin.php:6
- > PHP Notice
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 errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: cf 7 dataabse, contact form 7, database, cf7, contact form 7 database...
cf7-save-to-database/cf7-save-to-database.php 92% from 13 tests
"Contact Form 7 Save to Database (Add-on for CF7)" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 190 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,760 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 182 | 115 | 812 |
JavaScript | 4 | 158 | 169 | 555 |
CSS | 3 | 51 | 19 | 386 |
SVG | 1 | 0 | 1 | 7 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 12.80 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 3.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 9 | 39.13% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin