Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/cp-easy-form-builder/cp_easy_form_builder.php+18
Undefined variable: wpdb
Server metrics [RAM: ▲0.22MB] [CPU: ▼3.03ms] Passed 4 tests
A check of server-side resources used by Form Builder CP
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 39.90 ▼2.03 |
Dashboard /wp-admin | 3.52 ▲0.21 | 46.04 ▼5.98 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 49.38 ▼0.33 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.24 | 98.45 ▲4.03 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 34.67 ▼3.76 |
CP Easy Form Builder /wp-admin/options-general.php?page=cp_easy_form_builder | 3.48 | 33.14 |
Upgrade /wp-admin/admin.php?page=cp_easy_form_builder_upgrade | 3.38 | 29.53 |
CP Easy Form Builder /wp-admin/admin.php?page=cp_easy_form_builder | 3.43 | 32.20 |
Server storage [IO: ▲0.63MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 72 new files
Database: 1 new table, 10 new options
New tables |
---|
wp_cp_easy_form_settings |
New WordPress options |
---|
can_compress_scripts |
widget_cp_easyform_widget |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
installed_form-builder-cp |
autoptimize_js_exclude |
cp_easyform_data |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Form Builder CP
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲59 | 14.32 ▲0.09 | 1.77 ▲0.18 | 39.20 ▼6.54 |
Dashboard /wp-admin | 2,223 ▲46 | 5.57 ▼0.02 | 82.30 ▼19.03 | 40.10 ▼4.22 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 1.96 ▼0.07 | 46.27 ▲9.16 | 40.05 ▲4.64 |
Add New Post /wp-admin/post-new.php | 6,239 ▲4,713 | 19.37 ▼3.80 | 923.75 ▲226.46 | 38.42 ▼39.66 |
Media Library /wp-admin/upload.php | 1,434 ▲40 | 4.25 ▲0.10 | 97.10 ▼4.45 | 43.04 ▲0.13 |
CP Easy Form Builder /wp-admin/options-general.php?page=cp_easy_form_builder | 991 | 2.03 | 39.89 | 30.42 |
Upgrade /wp-admin/admin.php?page=cp_easy_form_builder_upgrade | 1,750 | 2.55 | 47.15 | 70.34 |
CP Easy Form Builder /wp-admin/admin.php?page=cp_easy_form_builder | 988 | 2.05 | 39.12 | 29.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure failed, leaving 1 table in the database
- wp_cp_easy_form_settings
- This plugin did not uninstall successfully, leaving 9 options in the database
- installed_form-builder-cp
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_cp_easyform_widget
- autoptimize_js_exclude
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 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
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/cp-easy-form-builder/cp_easyform_public_int.inc.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cp-easy-form-builder/cp_easy_form_builder.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cp-easy-form-builder/cp_easyform_admin_int.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cp-easy-form-builder/cp_admin_int_edition.inc.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cp-easy-form-builder/cp_easyform_admin_int_list.inc.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=cp_easy_form_builder_upgrade
- > Javascript (severe) in unknown
https://wordpress.dwbooster.com/TSScript/tab.js 37:11 Uncaught TypeError: Cannot read properties of undefined (reading 'replace')
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
- Screenshots: These screenshots require images: #1 (Adding fields to the contact form using the form creator), #2 (Editing fields using the form builder), #3 (Contact form processing settings), #4 (Contact form validation settings), #5 (Inserting a contact form into a page), #6 (Built-in captcha image anti-spam protection)
cp-easy-form-builder/cp_easy_form_builder.php 92% from 13 tests
This is the main PHP file of "Form Builder CP" version 1.2.37, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cp-easy-form-builder.php" instead of "cp_easy_form_builder.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected4,626 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 157 | 123 | 2,466 |
PHP | 8 | 371 | 60 | 1,478 |
CSS | 4 | 45 | 150 | 682 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 33 | |
▷ Named functions | 32 | 96.97% |
▷ Anonymous functions | 1 | 3.03% |
Constants | 47 | |
▷ Global constants | 47 | 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
43 PNG files occupy 0.19MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/custom_hsb_b.png | 1.07KB | 0.82KB | ▼ 23.61% |
images/colorpicker_rgb_g.png | 1.04KB | 0.83KB | ▼ 20.21% |
images/select.png | 0.49KB | 0.33KB | ▼ 33.40% |
images/custom_rgb_g.png | 1.04KB | 0.80KB | ▼ 23.67% |
images/select2.png | 0.51KB | 0.33KB | ▼ 34.94% |