Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.71ms] Passed 4 tests
This is a short check of server-side resources used by Quote for WooCommerce Lite
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 44.53 ▲4.49 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.71 ▼10.77 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.16 ▲0.97 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.64 ▼12.74 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.66 ▲3.72 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 3.00 | 26.28 |
Server storage [IO: ▲4.28MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 178 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-posts |
fs_gdpr |
fs_accounts |
db_upgraded |
widget_theysaidso_widget |
fs_debug_mode |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
fs_active_plugins |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Quote for WooCommerce Lite
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.14 ▼1.23 | 1.92 ▲0.06 | 45.31 ▲0.65 |
Dashboard /wp-admin | 2,206 ▲24 | 5.83 ▲0.94 | 113.86 ▼16.52 | 41.21 ▼5.90 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.03 ▲0.02 | 42.09 ▼2.56 | 33.33 ▼4.79 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.02 ▼0.24 | 720.94 ▲24.13 | 55.84 ▼1.48 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.28 ▲0.05 | 110.24 ▼1.69 | 48.90 ▲2.46 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 28 | 0.44 | 0.09 | 3.67 |
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
- This plugin does not fully uninstall, leaving 10 options in the database
- db_upgraded
- fs_debug_mode
- widget_recent-posts
- can_compress_scripts
- fs_accounts
- widget_theysaidso_widget
- widget_recent-comments
- fs_gdpr
- fs_active_plugins
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Please fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/woo-add-to-quote/woo_add_to_quote.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-add-to-quote/admin/class_watq_meta_boxes.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-add-to-quote/admin/admin_functions.php:74
- > PHP Fatal error
Uncaught Error: Class 'WC_Settings_Page' not found in wp-content/plugins/woo-add-to-quote/admin/class_setting_page.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=freemius
- > Network (severe)
wp-admin/admin.php?page=freemius - Failed to load resource: the server responded with a status of 403 (Forbidden)
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
5 plugin tags: inquiry, request quote, quote plugin, email quote, quotation
woo-add-to-quote/woo_add_to_quote.php 92% from 13 tests
"Quote for WooCommerce Lite" version 1.4.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-add-to-quote.php" instead of "woo_add_to_quote.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin33,248 lines of code in 135 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 115 | 7,307 | 16,195 | 32,157 |
CSS | 13 | 16 | 1 | 425 |
JavaScript | 4 | 47 | 61 | 303 |
Markdown | 1 | 68 | 0 | 214 |
SQL | 1 | 96 | 3,969 | 122 |
JSON | 1 | 0 | 0 | 27 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 86.81 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,910.00 |
Average method complexity | 4.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 47 | |
▷ Abstract classes | 2 | 4.26% |
▷ Concrete classes | 45 | 95.74% |
▷ Final classes | 0 | 0.00% |
Methods | 1,144 | |
▷ Static methods | 173 | 15.12% |
▷ Public methods | 804 | 70.28% |
▷ Protected methods | 15 | 1.31% |
▷ Private methods | 325 | 28.41% |
Functions | 140 | |
▷ Named functions | 140 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 125 | |
▷ Global constants | 100 | 80.00% |
▷ Class constants | 25 | 20.00% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/wc-quote.png | 9.16KB | 5.26KB | ▼ 42.58% |