Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼9.28ms] 75% from 4 tests
This is a short check of server-side resources used by Contact Form 7 Cost Calculator - Price Calculator Free
Please have a look at the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 851.87ms on /wp-admin/admin.php?page=fluent_forms-addons)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.36 ▼7.92 |
Dashboard /wp-admin | 3.33 ▼0.02 | 45.69 ▼15.90 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.41 ▲0.57 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 84.84 ▼13.88 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.19 ▲0.64 |
Add-ons 36 /wp-admin/admin.php?page=contact-form-7-addons | 3.25 | 924.48 |
Forms Add-ons 15 /wp-admin/admin.php?page=elementor-forms-addons | 3.23 | 833.23 |
Add-ons 36 /wp-admin/admin.php?page=quform.dashboard-addons | 3.33 | 928.23 |
Add-ons 9 /wp-admin/admin.php?page=wpforms.dashboard-addons | 3.23 | 815.60 |
Add-ons 36 /wp-admin/admin.php?page=formidable-addons | 3.33 | 909.44 |
Add-ons 36 /wp-admin/admin.php?page=fluent_forms-addons | 3.23 | 851.87 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Contact Form 7 Cost Calculator - Price Calculator Free
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲21 | 14.70 ▲0.46 | 1.68 ▼0.13 | 37.93 ▼4.16 |
Dashboard /wp-admin | 2,198 ▲20 | 5.63 ▼0.03 | 90.24 ▼20.80 | 43.28 ▼2.22 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.00 ▼0.01 | 40.71 ▲3.82 | 34.85 ▲2.94 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.14 ▼0.24 | 587.31 ▼71.08 | 66.34 ▲15.27 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.19 ▲0.03 | 94.98 ▼0.01 | 39.72 ▼4.02 |
Add-ons 36 /wp-admin/admin.php?page=contact-form-7-addons | 1,453 | 2.04 | 23.57 | 47.72 |
Forms Add-ons 15 /wp-admin/admin.php?page=elementor-forms-addons | 1,082 | 1.99 | 23.45 | 35.11 |
Add-ons 36 /wp-admin/admin.php?page=quform.dashboard-addons | 2,374 | 2.04 | 26.33 | 67.10 |
Add-ons 9 /wp-admin/admin.php?page=wpforms.dashboard-addons | 996 | 1.99 | 23.24 | 34.35 |
Add-ons 36 /wp-admin/admin.php?page=formidable-addons | 2,374 | 1.99 | 23.22 | 79.86 |
Add-ons 36 /wp-admin/admin.php?page=fluent_forms-addons | 830 | 1.99 | 22.61 | 28.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/cf7-cost-calculator-price-calculation/superaddons/check_purchase_code.php
- > /wp-content/plugins/cf7-cost-calculator-price-calculation/add-ons.php
- > /wp-content/plugins/cf7-cost-calculator-price-calculation/index.php
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-cost-calculator-price-calculation/backend/select.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-cost-calculator-price-calculation/backend/checkbox.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-cost-calculator-price-calculation/backend/index.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-cost-calculator-price-calculation/backend/number_format.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-cost-calculator-price-calculation/frontend/index.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: contact form 7, cf7, cost calculator, calculator form
cf7-cost-calculator-price-calculation/index.php 92% from 13 tests
The main PHP script in "Contact Form 7 Cost Calculator - Price Calculator Free" version 7.4.3 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cf7-cost-calculator-price-calculation.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin7,300 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 611 | 475 | 5,639 |
PHP | 8 | 7 | 28 | 1,617 |
CSS | 2 | 0 | 0 | 44 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 22.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 3.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.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 | 39 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 39 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin