Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.49MB] [CPU: ▲6.66ms] Passed 4 tests
This is a short check of server-side resources used by Data Source for Contact Form 7
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.95 ▲0.48 | 39.99 ▲2.97 |
Dashboard /wp-admin | 3.82 ▲0.51 | 51.48 ▲6.17 |
Posts /wp-admin/edit.php | 3.87 ▲0.51 | 55.25 ▲7.57 |
Add New Post /wp-admin/post-new.php | 6.34 ▲0.45 | 95.92 ▲15.95 |
Media Library /wp-admin/upload.php | 3.74 ▲0.51 | 47.27 ▲9.92 |
Extensions /wp-admin/admin.php?page=cf7-datasource-addons | 3.65 | 35.82 |
Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 84 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
installed_cf7-data-source |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Data Source for Contact Form 7
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.27 ▼0.12 | 1.73 ▲0.02 | 38.78 ▼7.42 |
Dashboard /wp-admin | 2,198 ▲18 | 5.68 ▲0.10 | 93.59 ▲1.48 | 39.59 ▼2.81 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.94 ▼0.01 | 40.55 ▼0.80 | 38.11 ▼2.61 |
Add New Post /wp-admin/post-new.php | 1,526 ▼3 | 23.28 ▲0.09 | 631.43 ▼46.71 | 51.51 ▼1.51 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.16 ▼0.09 | 97.08 ▼0.86 | 42.54 ▲0.52 |
Extensions /wp-admin/admin.php?page=cf7-datasource-addons | 1,028 | 2.16 | 23.67 | 33.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- installed_cf7-data-source
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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 take a closer look at the following
- 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'CF7_DATASOURCE_ADDONS' not found in wp-content/plugins/cf7-data-source/add-ons/server-side.addon.php:17
- > PHP Fatal error
Uncaught Error: Class 'CF7_DATASOURCE_ADDONS' not found in wp-content/plugins/cf7-data-source/add-ons/post-generator.addon.php:17
- > PHP Fatal error
Uncaught Error: Class 'CF7_DATASOURCE_ADDONS' not found in wp-content/plugins/cf7-data-source/add-ons/complementary-controls.addon.php:154
- > PHP Fatal error
Uncaught Error: Class 'CF7_DATASOURCE_ADDONS' not found in wp-content/plugins/cf7-data-source/add-ons/to-database.addon.php:17
- > PHP Fatal error
Uncaught Error: Class 'CF7_DATASOURCE_ADDONS' not found in wp-content/plugins/cf7-data-source/add-ons/json-generator.addon.php:17
- > PHP Fatal error
Uncaught Error: Class 'CF7_DATASOURCE_ADDONS' not found in wp-content/plugins/cf7-data-source/add-ons/pdf-generator.addon.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-data-source/banner.php:105
- > PHP Fatal error
Uncaught Error: Class 'CF7_DATASOURCE_ADDONS' not found in wp-content/plugins/cf7-data-source/add-ons/csv-generator.addon.php:17
- > PHP Fatal error
Uncaught Error: Class 'CF7_DATASOURCE_ADDONS' not found in wp-content/plugins/cf7-data-source/add-ons/user-registration.addon.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-data-source/banner.php:105
- > PHP Fatal error
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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: contact form, wpcf7, cf7, contact form db, database...
cf7-data-source/cf7-datasource.php 85% from 13 tests
"Data Source for Contact Form 7" version 1.1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("cf7-data-source.php" instead of "cf7-datasource.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 253 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected4,985 lines of code in 65 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 382 | 104 | 2,309 |
JavaScript | 19 | 180 | 96 | 1,842 |
PO File | 1 | 135 | 181 | 341 |
CSS | 20 | 42 | 17 | 311 |
HTML | 1 | 1 | 0 | 181 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 13.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 1 | 4.76% |
▷ Concrete classes | 20 | 95.24% |
▷ Final classes | 0 | 0.00% |
Methods | 117 | |
▷ Static methods | 10 | 8.55% |
▷ Public methods | 95 | 81.20% |
▷ Protected methods | 10 | 8.55% |
▷ Private methods | 12 | 10.26% |
Functions | 10 | |
▷ Named functions | 1 | 10.00% |
▷ Anonymous functions | 9 | 90.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
17 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
add-ons/complementary-controls.addon/controls/data-table/image.png | 0.51KB | 0.78KB | 0.00% |
add-ons/server-side.addon/image.png | 0.81KB | 0.81KB | 0.12% |
add-ons/to-database.addon/image.png | 2.43KB | 2.02KB | ▼ 17.01% |
add-ons/complementary-controls.addon/image.png | 2.12KB | 1.96KB | ▼ 7.47% |
add-ons/complementary-controls.addon/controls/data-table/vendor/DataTables-1.11.3/images/sort_desc_disabled.png | 0.14KB | 0.25KB | 0.00% |