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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.29MB] [CPU: ▼1.71ms] Passed 4 tests
Server-side resources used by Data Collection Form
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.31 | 47.53 ▲4.28 |
Dashboard /wp-admin | 3.61 ▲0.26 | 51.04 ▼11.66 |
Posts /wp-admin/edit.php | 3.72 ▲0.37 | 50.09 ▲1.76 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.30 | 100.89 ▲0.07 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 38.53 ▲2.99 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: 4 new tables, 7 new options
New tables |
---|
wp_ugf_fields_validations |
wp_ugf_fields |
wp_ugf_forms |
wp_ugf_fields_attributes |
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
ugf_db_version |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Data Collection Form: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,936 ▲186 | 13.59 ▼0.78 | 13.11 ▲11.40 | 38.05 ▼5.65 |
Dashboard /wp-admin | 2,220 ▲40 | 5.65 ▼0.02 | 83.30 ▼11.00 | 42.62 ▼2.99 |
Posts /wp-admin/edit.php | 2,132 ▲32 | 2.25 ▲0.28 | 34.53 ▼1.33 | 37.11 ▼1.14 |
Add New Post /wp-admin/post-new.php | 1,549 ▲21 | 23.28 ▲0.18 | 686.70 ▼15.26 | 56.72 ▲3.13 |
Media Library /wp-admin/upload.php | 1,428 ▲25 | 4.27 ▲0.16 | 101.85 ▼9.17 | 43.69 ▼4.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure failed, leaving 4 tables in the database
- wp_ugf_fields_validations
- wp_ugf_forms
- wp_ugf_fields_attributes
- wp_ugf_fields
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/data-collection-form/captcha.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/data-collection-form/data-collection-form.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: contact form, order form, newsletter form, date collection form, custom form
data-collection-form/data-collection-form.php Passed 13 tests
"Data Collection Form" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
58 characters long description:
Build all type of forms and save data in any type of post.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected2,145 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 570 | 29 | 1,738 |
JavaScript | 1 | 59 | 4 | 276 |
CSS | 2 | 30 | 5 | 131 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 46.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 3.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 42 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
css/images/ui-bg_diagonals-thick_26_2293f7_40x40.png | 0.40KB | 0.15KB | ▼ 61.33% |
css/images/ui-bg_highlight-soft_100_f9f9f9_1x100.png | 0.27KB | 0.10KB | ▼ 61.73% |
css/images/ui-bg_diagonals-thick_22_1484e6_40x40.png | 0.40KB | 0.15KB | ▼ 62.10% |
css/images/ui-icons_5fa5e3_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |