Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼8.99ms] 75% from 4 tests
An overview of server-side resources used by Cost Calculator for WPForms
It is recommended to improve the following
- CPU: Total CPU usage must kept under 500.00ms (currently 841.25ms on /wp-admin/admin.php?page=fluent_forms-addons)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 38.05 ▼4.98 |
Dashboard /wp-admin | 3.40 ▲0.06 | 48.42 ▼14.18 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 45.86 ▼0.74 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 88.58 ▼15.02 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 33.89 ▼1.76 |
Add-ons 36 /wp-admin/admin.php?page=contact-form-7-addons | 3.32 | 942.86 |
Add-ons 36 /wp-admin/admin.php?page=quform.dashboard-addons | 3.40 | 905.71 |
Forms Add-ons 15 /wp-admin/admin.php?page=elementor-forms-addons | 3.31 | 852.85 |
Add-ons 36 /wp-admin/admin.php?page=formidable-addons | 3.40 | 877.25 |
Add-ons 9 /wp-admin/admin.php?page=wpforms.dashboard-addons | 3.31 | 825.32 |
Add-ons 36 /wp-admin/admin.php?page=fluent_forms-addons | 3.31 | 841.25 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Cost Calculator for WPForms: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲51 | 13.99 ▼0.15 | 1.96 ▼0.12 | 38.30 ▼5.32 |
Dashboard /wp-admin | 2,221 ▲47 | 5.63 ▲0.11 | 91.88 ▼8.66 | 41.22 ▼1.29 |
Posts /wp-admin/edit.php | 2,105 ▲5 | 2.00 ▼0.02 | 40.22 ▼0.13 | 34.64 ▼1.40 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.19 ▲0.07 | 626.53 ▲26.90 | 51.67 ▲9.48 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.19 ▲0.02 | 96.32 ▲1.20 | 41.84 ▲0.78 |
Add-ons 36 /wp-admin/admin.php?page=contact-form-7-addons | 1,452 | 2.07 | 25.42 | 47.85 |
Add-ons 36 /wp-admin/admin.php?page=quform.dashboard-addons | 2,379 | 2.00 | 25.29 | 67.24 |
Forms Add-ons 15 /wp-admin/admin.php?page=elementor-forms-addons | 1,087 | 2.01 | 24.14 | 35.24 |
Add-ons 36 /wp-admin/admin.php?page=formidable-addons | 2,376 | 2.01 | 25.00 | 63.37 |
Add-ons 9 /wp-admin/admin.php?page=wpforms.dashboard-addons | 992 | 2.01 | 23.18 | 34.73 |
Add-ons 36 /wp-admin/admin.php?page=fluent_forms-addons | 835 | 2.01 | 24.44 | 27.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/cost-calculator-for-wpforms/superaddons/check_purchase_code.php
- > /wp-content/plugins/cost-calculator-for-wpforms/cost-calculator-for-wpforms.php
- > /wp-content/plugins/cost-calculator-for-wpforms/add-ons.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Screenshot #4 (Addmin field) image missing
cost-calculator-for-wpforms/cost-calculator-for-wpforms.php Passed 13 tests
The main file in "Cost Calculator for WPForms" v. 1.3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
86 characters long description:
Create forms with field values calculated based in other form field values for WPForms
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
There were no executable files found in this plugin6,940 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 609 | 480 | 5,682 |
PHP | 5 | 7 | 138 | 1,222 |
CSS | 2 | 0 | 0 | 36 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 3.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 48 | 97.96% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.04% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin