Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Error in wp-content/plugins/wpheka-request-for-quote/includes/class-wpheka-rfq-install.php+33
Uncaught Error: Call to undefined function wc_maybe_define_constant() in wp-content/plugins/wpheka-request-for-quote/includes/class-wpheka-rfq-install.php:33
Stack trace:
#0 wp-includes/class-wp-hook.php(310): WPHEKA_Rfq_Install::install()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/includes/plugin.php(693): do_action()
Server metrics [RAM: ▼0.01MB] [CPU: ▼4.38ms] Passed 4 tests
Server-side resources used by Request For Quote
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.14 ▼4.12 |
Dashboard /wp-admin | 3.31 ▼0.04 | 54.05 ▼7.94 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 54.26 ▲3.91 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 93.12 ▼5.54 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.59 ▲0.09 |
Server storage [IO: ▲0.73MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Request For Quote
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.23 ▲0.03 | 1.77 ▼0.01 | 41.06 ▼6.33 |
Dashboard /wp-admin | 2,195 ▲21 | 5.58 ▲0.02 | 90.65 ▼1.40 | 36.97 ▼6.97 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 2.01 ▲0.03 | 39.22 ▼2.95 | 36.49 ▼2.47 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.98 ▲0.08 | 672.13 ▲48.10 | 55.91 ▼4.94 |
Media Library /wp-admin/upload.php | 1,403 ▲12 | 4.24 ▲0.02 | 97.32 ▼5.75 | 44.71 ▼3.58 |
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
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 fix the following
- 8× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wpheka-request-for-quote/templates/request-for-quote-form.php
- > /wp-content/plugins/wpheka-request-for-quote/templates/admin/settings/settings-form.php
- > /wp-content/plugins/wpheka-request-for-quote/templates/admin/settings/sidebar-support.php
- > /wp-content/plugins/wpheka-request-for-quote/templates/emails/request-for-quote-mail-template.php
- > /wp-content/plugins/wpheka-request-for-quote/templates/single-product/add-to-quote.php
- > /wp-content/plugins/wpheka-request-for-quote/templates/request-for-quote.php
- > /wp-content/plugins/wpheka-request-for-quote/templates/admin/settings/settings-form-submit.php
- > /wp-content/plugins/wpheka-request-for-quote/templates/request-for-quote-empty.php
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)
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Donate link: Please fix this invalid URI: "paypal.me/AKSHAYASWAROOP"
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
wpheka-request-for-quote/wpheka-request-for-quote.php 85% from 13 tests
The main file in "Request For Quote" v. 1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 156 characters long)
- Requires at least: Required version must match the one declared in readme.txt ("4.8" instead of "4.4")
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 plugin10,155 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 1,009 | 292 | 7,817 |
PHP | 17 | 391 | 712 | 1,574 |
JavaScript | 5 | 92 | 50 | 384 |
SVG | 7 | 0 | 5 | 202 |
PO File | 1 | 69 | 80 | 178 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 19.62 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 1 | 12.50% |
Methods | 77 | |
▷ Static methods | 11 | 14.29% |
▷ Public methods | 67 | 87.01% |
▷ Protected methods | 1 | 1.30% |
▷ Private methods | 9 | 11.69% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/images/wp-heka-menu-icon-22.png | 0.51KB | 0.34KB | ▼ 32.76% |
assets/admin/images/control-panel-icon.png | 2.55KB | 1.75KB | ▼ 31.63% |