Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- Install procedure had errors
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▲0.44MB] [CPU: ▼3.76ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Estimate and Quote - Live Product Cost Estimation and Quotation system for WordPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.41 | 43.24 ▲4.01 |
Dashboard /wp-admin | 3.79 ▲0.48 | 48.57 ▼0.92 |
Posts /wp-admin/edit.php | 3.84 ▲0.48 | 52.43 ▲3.77 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.44 | 84.50 ▼19.40 |
Media Library /wp-admin/upload.php | 3.65 ▲0.42 | 39.53 ▲1.50 |
Quote /wp-admin/admin.php?page=Quote | 3.63 | 37.94 |
Settings /wp-admin/admin.php?page=settings | 3.63 | 31.47 |
Product Estimate /wp-admin/admin.php?page=product-innovs_wc_es | 3.63 | 32.14 |
Server storage [IO: ▲4.47MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 102 new files
Database: 4 new tables, 21 new options
New tables |
---|
wp_innovs_wc_es_products |
wp_innovs_wc_es_quote |
wp_innovs_wc_es |
wp_innovs_product_quote_details |
New WordPress options |
---|
primary_color |
estimate_export_footer |
create_estimate |
hover_color |
widget_theysaidso_widget |
estimate_category2 |
estimate_category1 |
widget_recent-posts |
estimate_limit |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
WooCommerce Estimate and Quote - Live Product Cost Estimation and Quotation system for WordPress: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,909 ▲148 | 14.07 ▼0.48 | 10.73 ▲8.94 | 24.76 ▼12.57 |
Dashboard /wp-admin | 2,198 ▲24 | 5.21 ▼0.32 | 95.27 ▲9.59 | 41.86 ▼0.48 |
Posts /wp-admin/edit.php | 2,105 ▲8 | 2.58 ▲0.61 | 44.38 ▲7.42 | 40.04 ▲4.24 |
Add New Post /wp-admin/post-new.php | 1,544 ▲18 | 23.80 ▲0.81 | 679.45 ▲28.36 | 38.99 ▼21.20 |
Media Library /wp-admin/upload.php | 1,406 ▲3 | 4.75 ▲0.59 | 98.33 ▲6.09 | 44.30 ▲1.74 |
Quote /wp-admin/admin.php?page=Quote | 1,118 | 2.48 | 42.69 | 36.97 |
Settings /wp-admin/admin.php?page=settings | 1,445 | 3.07 | 56.45 | 37.99 |
Product Estimate /wp-admin/admin.php?page=product-innovs_wc_es | 1,003 | 2.51 | 44.67 | 31.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie tables detected upon uninstall: 4 tables
- wp_innovs_wc_es_quote
- wp_innovs_product_quote_details
- wp_innovs_wc_es
- wp_innovs_wc_es_products
- Zombie WordPress options were found after uninstall: 21 options
- seccondary_color
- estimate_export_footer
- widget_theysaidso_widget
- primary_color
- set_currency
- estimate_menu
- widget_recent-comments
- delete_time
- company_name
- per_page
- ...
Smoke tests 25% 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/wc-estimate-and-quote/admin/partials/plugin-name-admin-display.php
- > /wp-content/plugins/wc-estimate-and-quote/includes/class-csv_export.php
- 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/wc-estimate-and-quote/public/partials/estimate.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/wc-estimate-and-quote/public/partials/estimate_list.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wc-estimate-and-quote/public/partials/signup.php:7
- > PHP Fatal error
Uncaught Error: Class 'WC_es_Public' not found in wp-content/plugins/wc-estimate-and-quote/public/partials/part/estimate_cart.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/wc-estimate-and-quote/admin/partials/product_estimate.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/wc-estimate-and-quote/public/partials/estimate_edit.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-estimate-and-quote/includes/wp-ajax.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wc-estimate-and-quote/public/partials/part/sidebar.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/wc-estimate-and-quote/admin/partials/settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-estimate-and-quote/public/partials/product-estimate-template.php:126
- > 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
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=product-innovs_wc_es
- > Javascript (severe) in unknown
/wp-content/plugins/wc-estimate-and-quote/admin/js/pe-bootstrap.min.js?ver=1.0.2.4 7:361 Uncaught TypeError: Cannot read properties of undefined (reading 'defaults')
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=product-innovs_wc_es
- > Network (severe)
wp-content/plugins/wc-estimate-and-quote/admin/images/sort_both.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=Quote
- > Network (severe)
wp-content/plugins/wc-estimate-and-quote/admin/images/sort_asc.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=product-innovs_wc_es
- > Network (severe)
wp-content/plugins/wc-estimate-and-quote/admin/images/sort_desc.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6, #7 in wc-estimate-and-quote/assets to your readme.txt
wc-estimate-and-quote/wc-estimate-quote.php 92% from 13 tests
The entry point to "WooCommerce Estimate and Quote - Live Product Cost Estimation and Quotation system for WordPress" version 1.0.2.4 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wc-estimate-and-quote.php" instead of "wc-estimate-quote.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected10,708 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 15 | 0 | 17 | 6,648 |
PHP | 27 | 553 | 746 | 2,833 |
JavaScript | 6 | 117 | 166 | 669 |
CSS | 5 | 64 | 39 | 558 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 6.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 1.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 70 | |
▷ Static methods | 21 | 30.00% |
▷ Public methods | 54 | 77.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 22.86% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/menu-icon.png | 1.07KB | 1.10KB | 0.00% |