Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼3.55ms] Passed 4 tests
A check of server-side resources used by Quasar form - add-on for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 44.57 ▲4.62 |
Dashboard /wp-admin | 3.38 ▲0.08 | 46.88 ▼5.36 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 48.33 ▲2.90 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 83.85 ▼16.37 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.42 ▲7.90 |
Server storage [IO: ▲1.47MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 54 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_quasarform_shop |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Quasar form - add-on for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,901 ▲155 | 13.60 ▼0.99 | 5.63 ▲3.66 | 44.17 ▼0.89 |
Dashboard /wp-admin | 2,218 ▲30 | 5.86 ▼0.05 | 102.54 ▼11.18 | 80.17 ▲33.19 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.05 ▲0.02 | 32.72 ▼5.40 | 32.73 ▼2.89 |
Add New Post /wp-admin/post-new.php | 1,680 ▲144 | 22.44 ▼0.69 | 719.42 ▲116.08 | 64.21 ▲8.47 |
Media Library /wp-admin/upload.php | 1,403 ▲12 | 4.15 ▼0.13 | 98.30 ▼2.74 | 47.84 ▲5.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 tables were found after uninstall: 1 table
- wp_quasarform_shop
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 2× 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/quasar-form-woo-add-on/quasar-form-shop-main.php:19
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/quasar-form-woo-add-on/admin.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: buy one click woocommerce, woocommerce form
quasar-form-woo-add-on/quasar-form-shop-main.php 92% from 13 tests
The principal PHP file in "Quasar form - add-on for WooCommerce" v. 1.7 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("quasar-form-woo-add-on.php" instead of "quasar-form-shop-main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin10,039 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
Sass | 14 | 34 | 34 | 1,768 |
LESS | 14 | 34 | 44 | 1,758 |
PHP | 2 | 248 | 55 | 1,262 |
CSS | 4 | 197 | 10 | 1,106 |
JavaScript | 4 | 224 | 235 | 1,097 |
PO File | 1 | 137 | 155 | 310 |
Markdown | 1 | 27 | 0 | 67 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/icon2.png | 0.42KB | 0.29KB | ▼ 29.58% |
(invalid) assets/img/img-demo.png | 13.84KB | 0.00KB | ▼ 100.00% |