Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/woo-product-request/classes/class.form.php+26
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.12MB] [CPU: ▼8.46ms] Passed 4 tests
Server-side resources used by WooCommerce Product Request
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 43.76 ▼0.72 |
Dashboard /wp-admin | 3.43 ▲0.12 | 52.44 ▼16.25 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 53.37 ▼7.80 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 96.19 ▼9.07 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 40.67 ▲0.47 |
Product Request /wp-admin/admin.php?page=product-request | 3.29 | 37.62 |
All Requests /wp-admin/edit.php?post_type=wbl_product_request | 3.39 | 42.76 |
Add New /wp-admin/post-new.php?post_type=wbl_product_request | 3.46 | 54.53 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce Product Request
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲74 | 14.22 ▼0.05 | 1.98 ▲0.15 | 41.42 ▼11.39 |
Dashboard /wp-admin | 2,238 ▲58 | 5.57 ▼0.05 | 85.89 ▼3.92 | 43.53 ▼2.90 |
Posts /wp-admin/edit.php | 2,144 ▲44 | 2.08 ▲0.06 | 42.03 ▲5.86 | 39.85 ▲3.11 |
Add New Post /wp-admin/post-new.php | 1,560 ▲34 | 17.63 ▲0.05 | 590.47 ▼40.60 | 52.85 ▼10.59 |
Media Library /wp-admin/upload.php | 1,440 ▲40 | 4.26 ▼0.05 | 101.48 ▼9.92 | 43.48 ▼2.71 |
Product Request /wp-admin/admin.php?page=product-request | 1,202 | 2.30 | 31.87 | 39.15 |
All Requests /wp-admin/edit.php?post_type=wbl_product_request | 1,117 | 1.97 | 35.21 | 31.84 |
Add New /wp-admin/post-new.php?post_type=wbl_product_request | 2,214 | 7.65 | 170.60 | 62.50 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=product-request
- > Notice in wp-content/plugins/woo-product-request/classes/class.settings-page.php+144
Undefined index: button_position
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: woocommerce, cart, quick buy
woo-product-request/woocommerce-product-request.php 85% from 13 tests
"WooCommerce Product Request" version 0.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-product-request.php" instead of "woocommerce-product-request.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,531 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 31 | 1 | 658 |
PHP | 5 | 207 | 227 | 527 |
SVG | 3 | 4 | 2 | 213 |
JavaScript | 1 | 10 | 6 | 68 |
PO File | 1 | 25 | 25 | 65 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 4 | 17.39% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
No PNG images were found in this plugin