Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.27MB] [CPU: ▼1.12ms] 75% from 4 tests
A check of server-side resources used by EZ Form Calculator
The following require your attention
- CPU: The total CPU usage must kept under 500.00ms (currently 583.15ms on /wp-admin/admin.php?page=ezfc-help)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 39.03 ▲0.11 |
Dashboard /wp-admin | 3.57 ▲0.27 | 46.39 ▼1.09 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 49.82 ▲1.02 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 90.18 ▼4.53 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 37.40 ▲4.22 |
Form settings /wp-admin/admin.php?page=ezfc-settings-form | 4.13 | 53.62 |
Global settings /wp-admin/admin.php?page=ezfc-options | 4.33 | 73.05 |
ez Form Calculator /wp-admin/admin.php?page=ezfc | 4.12 | 56.52 |
Preview /wp-admin/admin.php?page=ezfc-preview | 3.50 | 36.02 |
Form submissions /wp-admin/admin.php?page=ezfc-submissions | 3.62 | 44.99 |
Help / debug /wp-admin/admin.php?page=ezfc-help | 3.78 | 583.15 |
Import / Export /wp-admin/admin.php?page=ezfc-importexport | 3.64 | 41.47 |
Stats /wp-admin/admin.php?page=ezfc-stats | 3.62 | 44.71 |
Premium version /wp-admin/admin.php?page=ezfc-premium | 3.60 | 42.75 |
Server storage [IO: ▲7.13MB] [DB: ▲0.03MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 217 new files
Database: 10 new tables, 14 new options
New tables |
---|
wp_ezfc_submissions |
wp_ezfc_preview |
wp_ezfc_files |
wp_ezfc_forms_options |
wp_ezfc_forms_views |
wp_ezfc_debug |
wp_ezfc_forms |
wp_ezfc_templates |
wp_ezfc_forms_elements |
wp_ezfc_options |
New WordPress options |
---|
db_upgraded |
ezfc_update_2_13_0_0 |
ezfc_page_views |
widget_ezfc_widget |
ezfc_version |
widget_recent-comments |
ezfc_form_additional_data |
ezfc_ext_pdf_seed |
widget_theysaidso_widget |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for EZ Form Calculator
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,854 ▲97 | 13.32 ▼1.26 | 1.58 ▼0.48 | 39.46 ▼4.15 |
Dashboard /wp-admin | 2,260 ▲72 | 5.86 ▲0.96 | 105.78 ▼5.58 | 78.65 ▲35.29 |
Posts /wp-admin/edit.php | 2,148 ▲77 | 1.97 ▼0.09 | 40.19 ▲1.36 | 38.39 ▲4.34 |
Add New Post /wp-admin/post-new.php | 1,560 ▲41 | 17.91 ▼5.32 | 737.40 ▲63.82 | 54.52 ▼10.22 |
Media Library /wp-admin/upload.php | 1,442 ▲51 | 4.25 ▲0.04 | 96.04 ▼2.96 | 77.79 ▲31.91 |
Form settings /wp-admin/admin.php?page=ezfc-settings-form | 9,262 | 8.74 | 372.68 | 205.83 |
Global settings /wp-admin/admin.php?page=ezfc-options | 8,360 | 10.00 | 272.69 | 124.45 |
ez Form Calculator /wp-admin/admin.php?page=ezfc | 14,526 | 10.41 | 396.64 | 88.15 |
Preview /wp-admin/admin.php?page=ezfc-preview | 708 | 1.14 | 8.32 | 18.22 |
Form submissions /wp-admin/admin.php?page=ezfc-submissions | 1,524 | 5.60 | 62.70 | 88.96 |
Help / debug /wp-admin/admin.php?page=ezfc-help | 1,950 | 12.23 | 125.72 | 129.29 |
Import / Export /wp-admin/admin.php?page=ezfc-importexport | 1,612 | 5.82 | 71.68 | 101.21 |
Stats /wp-admin/admin.php?page=ezfc-stats | 1,608 | 7.19 | 102.21 | 31.21 |
Premium version /wp-admin/admin.php?page=ezfc-premium | 2,008 | 14.34 | 316.44 | 139.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie tables were found after uninstall: 1 table
- wp_ezfc_forms_views
- This plugin does not fully uninstall, leaving 12 options in the database
- ezfc_ext_pdf_dirname
- ezfc_page_views
- widget_recent-posts
- can_compress_scripts
- ezfc_update_2_13_0_0
- widget_recent-comments
- theysaidso_admin_options
- widget_ezfc_widget
- db_upgraded
- widget_theysaidso_widget
- ...
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/ez-form-calculator/ajax.php
- 18× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Ezfc_Element' not found in wp-content/plugins/ez-form-calculator/inc/php/elements/element_options.php:3
- > PHP Fatal error
Uncaught Error: Class 'Ezfc_Settings_Element_Option' not found in wp-content/plugins/ez-form-calculator/inc/php/settings/element-options/price_format.php:6
- > PHP Fatal error
Uncaught Error: Class 'Ezfc_Element' not found in wp-content/plugins/ez-form-calculator/inc/php/elements/textfield.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ez-form-calculator/shortcode.php:10
- > PHP Fatal error
Uncaught Error: Class 'Ezfc_Settings_Element_Option_minDate' not found in wp-content/plugins/ez-form-calculator/inc/php/settings/element-options/maxDate.php:6
- > PHP Fatal error
Uncaught Error: Class 'Ezfc_Element' not found in wp-content/plugins/ez-form-calculator/inc/php/elements/element_decor.php:6
- > PHP Fatal error
Uncaught Error: Class 'Ezfc_Element_Options' not found in wp-content/plugins/ez-form-calculator/inc/php/elements/checkbox.php:3
- > PHP Warning
require_once(EZFC_PATHclass.ezfc_settings.php): failed to open stream: No such file or directory in wp-content/plugins/ez-form-calculator/class.ezfc_functions.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Ezfc_Element_Options' not found in wp-content/plugins/ez-form-calculator/inc/php/elements/radio.php:3
- > PHP Fatal error
Uncaught Error: Class 'Ezfc_Element' not found in wp-content/plugins/ez-form-calculator/inc/php/elements/input.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=ezfc-stats
- > Javascript (severe) in unknown
/wp-content/plugins/ez-form-calculator/inc/js/stats.js?ver=2.14.0.3 76:38 Uncaught TypeError: Cannot read properties of undefined (reading 'DataTable')
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: No descriptions were found for these screenshots #13, #14 in ez-form-calculator/assets to your readme.txt
ez-form-calculator/ezfc.php 77% from 13 tests
Analyzing the main PHP file in "EZ Form Calculator" version 2.14.0.3
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("ez-form-calculator.php" instead of "ezfc.php")
- Description: Keep the plugin description shorter than 140 characters (currently 291 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin45,029 lines of code in 137 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 4 | 6,321 | 7,211 | 18,996 |
PHP | 87 | 3,741 | 2,366 | 17,364 |
JavaScript | 22 | 1,230 | 971 | 4,581 |
SVG | 1 | 0 | 0 | 2,671 |
LESS | 1 | 63 | 0 | 777 |
CSS | 19 | 29 | 18 | 467 |
Markdown | 1 | 31 | 0 | 86 |
SQL | 1 | 11 | 0 | 86 |
JSON | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 147)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 61.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 769.00 |
Average method complexity | 6.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 147.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 38 | |
▷ Abstract classes | 6 | 15.79% |
▷ Concrete classes | 32 | 84.21% |
▷ Final classes | 0 | 0.00% |
Methods | 455 | |
▷ Static methods | 131 | 28.79% |
▷ Public methods | 453 | 99.56% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 0.44% |
Functions | 16 | |
▷ Named functions | 13 | 81.25% |
▷ Anonymous functions | 3 | 18.75% |
Constants | 13 | |
▷ Global constants | 11 | 84.62% |
▷ Class constants | 2 | 15.38% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
23 PNG files occupy 0.22MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/vis-js/img/network/connectIcon.png | 20.28KB | 1.37KB | ▼ 93.27% |
assets/css/images/ui-icons_444444_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
lib/vis-js/img/network/cross.png | 17.87KB | 0.31KB | ▼ 98.26% |
assets/img/ez-icon.png | 3.21KB | 0.57KB | ▼ 82.18% |
assets/img/icon-description.png | 0.37KB | 0.39KB | 0.00% |