Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.59MB] [CPU: ▲3.70ms] Passed 4 tests
This is a short check of server-side resources used by Contact Form DB Divi
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.06 ▲0.60 | 40.13 ▼3.73 |
Dashboard /wp-admin | 3.91 ▲0.61 | 52.73 ▲4.62 |
Posts /wp-admin/edit.php | 3.97 ▲0.62 | 53.77 ▲3.89 |
Add New Post /wp-admin/post-new.php | 6.44 ▲0.55 | 108.36 ▲10.02 |
Media Library /wp-admin/upload.php | 3.84 ▲0.62 | 46.82 ▲10.30 |
Contact Us /wp-admin/edit.php?post_type=lwp_form_submission&page=contact-form-db-divi-contact | 3.71 | 37.83 |
Support Forum /wp-admin/edit.php?post_type=lwp_form_submission&page=contact-form-db-divi-wp-support-forum | 3.56 | 33.62 |
Divi Form DB /wp-admin/edit.php?post_type=lwp_form_submission | 3.89 | 46.33 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 4.01 | 37.97 |
Upgrade ➤ /wp-admin/edit.php?post_type=lwp_form_submission&page=contact-form-db-divi-pricing | 3.72 | 38.25 |
Server storage [IO: ▲3.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 185 new files
Database: no new tables, 10 new options
New WordPress options |
---|
fs_debug_mode |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
fs_accounts |
fs_active_plugins |
can_compress_scripts |
widget_recent-posts |
lwp_cfdb_plugin_version |
Browser metrics Passed 4 tests
Contact Form DB Divi: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲94 | 13.15 ▼1.14 | 4.70 ▲3.01 | 43.30 ▲1.61 |
Dashboard /wp-admin | 2,261 ▲58 | 4.83 ▼0.99 | 109.57 ▲3.93 | 48.20 ▲6.18 |
Posts /wp-admin/edit.php | 2,143 ▲46 | 2.18 ▲0.16 | 42.31 ▲7.37 | 40.88 ▲4.48 |
Add New Post /wp-admin/post-new.php | 1,560 ▲29 | 17.66 ▼5.57 | 655.33 ▼39.10 | 56.44 ▼5.60 |
Media Library /wp-admin/upload.php | 1,440 ▲37 | 4.18 ▼0.06 | 108.69 ▲9.66 | 49.20 ▲3.62 |
Contact Us /wp-admin/edit.php?post_type=lwp_form_submission&page=contact-form-db-divi-contact | 1,570 | 3.13 | 49.52 | 54.30 |
Support Forum /wp-admin/edit.php?post_type=lwp_form_submission&page=contact-form-db-divi-wp-support-forum | 1,589 | 3.97 | 86.97 | 85.99 |
Divi Form DB /wp-admin/edit.php?post_type=lwp_form_submission | 1,098 | 1.99 | 34.67 | 32.37 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,120 | 1.71 | 24.48 | 29.38 |
Upgrade ➤ /wp-admin/edit.php?post_type=lwp_form_submission&page=contact-form-db-divi-pricing | 2,164 | 3.30 | 61.66 | 124.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/contact-form-db-divi/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 10 options
- fs_active_plugins
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- fs_debug_mode
- widget_recent-comments
- fs_accounts
- can_compress_scripts
- db_upgraded
- lwp_cfdb_plugin_version
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4 in contact-form-db-divi/assets to your readme.txt
contact-form-db-divi/index.php 92% from 13 tests
The primary PHP file in "Contact Form DB Divi" version 1.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("contact-form-db-divi.php" instead of "index.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected33,439 lines of code in 140 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 124 | 8,033 | 17,357 | 33,232 |
JavaScript | 3 | 34 | 59 | 194 |
CSS | 13 | 0 | 0 | 13 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 83.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 54 | |
▷ Abstract classes | 2 | 3.70% |
▷ Concrete classes | 52 | 96.30% |
▷ Final classes | 0 | 0.00% |
Methods | 1,272 | |
▷ Static methods | 199 | 15.64% |
▷ Public methods | 883 | 69.42% |
▷ Protected methods | 17 | 1.34% |
▷ Private methods | 372 | 29.25% |
Functions | 101 | |
▷ Named functions | 101 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 146 | |
▷ Global constants | 99 | 67.81% |
▷ Class constants | 47 | 32.19% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/contact-form-db-divi.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |