Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲2.86MB] [CPU: ▲8.32ms] Passed 4 tests
An overview of server-side resources used by Cost Calculator Builder
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.19 ▲2.73 | 54.50 ▲13.77 |
Dashboard /wp-admin | 6.26 ▲2.92 | 58.36 ▼3.98 |
Posts /wp-admin/edit.php | 6.32 ▲2.96 | 63.21 ▲14.93 |
Add New Post /wp-admin/post-new.php | 8.80 ▲2.92 | 105.67 ▲8.55 |
Media Library /wp-admin/upload.php | 6.13 ▲2.89 | 54.69 ▲22.20 |
Orders /wp-admin/admin.php?page=cost_calculator_orders | 6.22 | 47.44 |
Upgrade /wp-admin/admin.php?page=cost_calculator_gopro | 6.22 | 220.07 |
Templates /wp-admin/admin.php?page=cost_calculator_templates | 6.15 | 58.36 |
Settings /wp-admin/admin.php?page=cost_calculator_builder&tab=settings | 6.29 | 48.87 |
Calculators /wp-admin/admin.php?page=cost_calculator_builder | 6.69 | 80.17 |
Server storage [IO: ▲17.34MB] [DB: ▲1.88MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 363 new files
Database: 2 new tables, 120 new options
New tables |
---|
wp_cc_orders |
wp_cc_payments |
New WordPress options |
---|
calc_render_templates |
stm_ccb_form_settings_18 |
stm_ccb_form_settings_88 |
stm_ccb_form_settings_136 |
stm_ccb_form_settings_92 |
stm_ccb_form_settings_64 |
stm_ccb_form_settings_184 |
stm_ccb_form_settings_170 |
stm_ccb_form_settings_206 |
calc_sample_calculator |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Cost Calculator Builder
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,039 ▲252 | 13.91 ▼0.30 | 4.79 ▲2.77 | 35.42 ▼9.39 |
Dashboard /wp-admin | 2,318 ▲141 | 6.10 ▲0.58 | 110.55 ▲10.23 | 85.75 ▲43.91 |
Posts /wp-admin/edit.php | 2,241 ▲141 | 2.56 ▲0.53 | 38.70 ▲1.92 | 35.16 ▲0.09 |
Add New Post /wp-admin/post-new.php | 1,642 ▲116 | 20.81 ▼2.41 | 737.74 ▲117.04 | 40.04 ▼11.73 |
Media Library /wp-admin/upload.php | 1,529 ▲129 | 4.75 ▲0.58 | 105.16 ▲8.54 | 81.51 ▲40.13 |
Orders /wp-admin/admin.php?page=cost_calculator_orders | 1,419 | 5.03 | 89.07 | 111.40 |
Upgrade /wp-admin/admin.php?page=cost_calculator_gopro | 1,708 | 9.27 | 282.27 | 89.83 |
Templates /wp-admin/admin.php?page=cost_calculator_templates | 7,101 | 5.39 | 63.21 | 113.18 |
Settings /wp-admin/admin.php?page=cost_calculator_builder&tab=settings | 1,558 | 8.57 | 224.23 | 52.09 |
Calculators /wp-admin/admin.php?page=cost_calculator_builder | 1,324 | 9.66 | 455.95 | 99.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲1.88MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_cc_payments
- wp_cc_orders
- Zombie WordPress options detected upon uninstall: 120 options
- stm_ccb_form_settings_12
- stm_ccb_form_settings_206
- stm_ccb_form_settings_50
- stm_ccb_form_settings_58
- widget_theysaidso_widget
- stm_ccb_form_settings_166
- stm_ccb_form_settings_46
- stm_ccb_form_settings_118
- stm_ccb_form_settings_22
- stm_ccb_form_settings_20
- ...
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 6× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/cost-calculator-builder/templates/frontend/fields/cost-html.php
- > /wp-content/plugins/cost-calculator-builder/templates/frontend/fields/cost-line.php
- > /wp-content/plugins/cost-calculator-builder/templates/frontend/fields/cost-radio.php
- > /wp-content/plugins/cost-calculator-builder/templates/frontend/fields/cost-toggle.php
- > /wp-content/plugins/cost-calculator-builder/templates/admin/single-calc/modals/calc-settings.php
- > /wp-content/plugins/cost-calculator-builder/templates/frontend/fields/cost-checkbox.php
- 122× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cost-calculator-builder/includes/mixpanel/mixpanel_init.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/cost-calculator-builder/templates/admin/components/preview/index.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/cost-calculator-builder/templates/admin/settings/webhooks.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/cost-calculator-builder/templates/admin/single-calc/fields/range-button-field.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/cost-calculator-builder/templates/admin/general-settings/email-template.php:10
- > PHP Fatal error
Uncaught Error: Class 'cBuilder\\Classes\\CCBSettingsData' not found in wp-content/plugins/cost-calculator-builder/templates/admin/pages/settings.php:2
- > PHP Warning
Use of undefined constant CALC_PATH - assumed 'CALC_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/cost-calculator-builder/templates/admin/single-calc/calculators.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/cost-calculator-builder/templates/admin/general-settings/captcha.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/cost-calculator-builder/templates/admin/single-calc/fields/quantity-field.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cost-calculator-builder/includes/functions.php:417
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=cost_calculator_gopro
- > Other (warning) in unknown
/wp-admin/admin.php?page=cost_calculator_gopro 386 Unrecognized feature: 'web-share'.
Optimizations
Plugin configuration 97% 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 lack descriptions #1, #2, #3, #4, #5, #6 in cost-calculator-builder/assets to your readme.txt
cost-calculator-builder/cost-calculator-builder.php Passed 13 tests
The main PHP file in "Cost Calculator Builder" ver. 3.1.65 adds more information about the plugin and also serves as the entry point for this plugin
134 characters long description:
WP Cost Calculator helps you to build any type of estimation forms on a few easy steps. The plugin offers its own calculation builder.
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
Everything looks great! No dangerous files found in this plugin25,171 lines of code in 242 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 151 | 1,948 | 830 | 16,428 |
JavaScript | 27 | 1,171 | 603 | 6,301 |
SVG | 47 | 0 | 1 | 1,285 |
CSS | 12 | 10 | 7 | 1,024 |
Markdown | 2 | 17 | 0 | 77 |
XML | 1 | 0 | 0 | 42 |
JSON | 2 | 0 | 0 | 14 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 17.02 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 176.00 |
Average method complexity | 3.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 56 | |
▷ Abstract classes | 1 | 1.79% |
▷ Concrete classes | 55 | 98.21% |
▷ Final classes | 0 | 0.00% |
Methods | 415 | |
▷ Static methods | 309 | 74.46% |
▷ Public methods | 376 | 90.60% |
▷ Protected methods | 9 | 2.17% |
▷ Private methods | 30 | 7.23% |
Functions | 77 | |
▷ Named functions | 49 | 63.64% |
▷ Anonymous functions | 28 | 36.36% |
Constants | 29 | |
▷ Global constants | 22 | 75.86% |
▷ Class constants | 7 | 24.14% |
▷ Public constants | 7 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
72 PNG files occupy 1.18MB with 0.53MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
frontend/dist/img/styles/toggle/horizontal_toggle.png | 3.22KB | 1.76KB | ▼ 45.43% |
images/pdf.png | 14.32KB | 5.14KB | ▼ 64.15% |
frontend/dist/img/styles/radio/style_3_horizontal.png | 7.13KB | 3.41KB | ▼ 52.11% |
frontend/dist/img/welcome/appearance_bg.png | 11.12KB | 4.05KB | ▼ 63.60% |
frontend/dist/img/welcome/appearanceee2.png | 43.58KB | 46.09KB | 0.00% |