Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼141.43ms] Passed 4 tests
An overview of server-side resources used by WDU Inquiry Form
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.07 | 38.85 ▲3.03 |
Dashboard /wp-admin | 3.13 ▲0.07 | 50.33 ▲3.15 |
Posts /wp-admin/edit.php | 3.21 ▲0.11 | 40.78 ▼4.81 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.05 | 83.56 ▼565.60 |
Media Library /wp-admin/upload.php | 3.07 ▲0.07 | 34.56 ▲1.65 |
WDU Inquiry Form /wp-admin/options-general.php?page=wdu_inquiry_form | 3.04 | 29.94 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
WDU Inquiry Form: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,822 ▲226 | 16.37 ▲0.43 | 15.39 ▲4.74 | 51.87 ▲4.15 |
Dashboard /wp-admin | 2,976 ▲39 | 6.07 ▲0.07 | 138.18 ▼32.34 | 106.36 ▼18.70 |
Posts /wp-admin/edit.php | 2,748 ▲9 | 2.70 ▲0.00 | 69.61 ▲1.73 | 91.73 ▼7.19 |
Add New Post /wp-admin/post-new.php | 1,678 ▼5 | 18.73 ▲0.06 | 355.83 ▼22.81 | 100.65 ▼17.09 |
Media Library /wp-admin/upload.php | 1,819 ▲12 | 4.99 ▼0.01 | 154.05 ▼4.28 | 123.73 ▼2.61 |
WDU Inquiry Form /wp-admin/options-general.php?page=wdu_inquiry_form | 1,065 | 2.09 | 62.28 | 86.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wdu-inquiry-form/inquiryform.php
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wdu-inquiry-form/wdu-scripts.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wdu-inquiry-form/wdu-button-modal-config.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wdu-inquiry-form/wdu-check-woocommerce.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wdu-inquiry-form/wdu-settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wdu-inquiry-form/wdu-form.php:134
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The shop page 'add to cart' button will be replace by 'Details' button), #2 (Single page 'add to cart' button will be replace by a 'Send Request' button), #3 (After click the button a popup will come)
wdu-inquiry-form/inquiryform.php 77% from 13 tests
The main PHP script in "WDU Inquiry Form" version 1.0.0 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wdu-inquiry-form.php" instead of "inquiryform.php")
- Domain Path: The domain path folder does not exist ("/languages/")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin421 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 80 | 56 | 303 |
CSS | 2 | 2 | 10 | 105 |
JavaScript | 2 | 6 | 9 | 13 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 33.33% |
Functions | 8 | |
▷ Named functions | 8 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin