Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼11.05ms] Passed 4 tests
Server-side resources used by WooCommerce Product Enquiry
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 47.00 ▼1.95 |
Dashboard /wp-admin | 3.40 ▲0.06 | 52.52 ▼17.57 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 51.09 ▼4.63 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 85.29 ▼20.03 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 41.16 ▲7.55 |
Product Enquiry /wp-admin/edit.php?post_type=product_enquiry | 3.37 | 39.37 |
Product Enquiry Form /wp-admin/admin.php?page=producy_enquiry_form_settings_page | 3.29 | 31.59 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
WooCommerce Product Enquiry: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲75 | 13.21 ▼1.14 | 2.31 ▲0.46 | 44.40 ▲1.31 |
Dashboard /wp-admin | 2,227 ▲24 | 5.88 ▲0.02 | 101.68 ▲0.21 | 42.56 ▼2.92 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.05 ▲0.05 | 36.67 ▼4.54 | 34.99 ▼2.32 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 22.77 ▲5.19 | 664.79 ▼49.36 | 54.45 ▼5.29 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.30 ▲0.08 | 98.72 ▼12.47 | 44.90 ▼0.87 |
Product Enquiry /wp-admin/edit.php?post_type=product_enquiry | 1,098 | 1.99 | 32.59 | 27.26 |
Product Enquiry Form /wp-admin/admin.php?page=producy_enquiry_form_settings_page | 854 | 2.18 | 23.48 | 31.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-product-enquiry/woocommerce-product-enquiry-basic.php:284
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please describe screenshot #3 in woo-product-enquiry/assets to your readme.txt
woo-product-enquiry/woocommerce-product-enquiry-basic.php 92% from 13 tests
This is the main PHP file of "WooCommerce Product Enquiry" version 2.3.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-product-enquiry.php" instead of "woocommerce-product-enquiry-basic.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin355 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 71 | 10 | 355 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 23.50 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 1 | 5.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin