Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼7.94ms] Passed 4 tests
A check of server-side resources used by Bargain Bot for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 23.56 ▼20.31 |
Dashboard /wp-admin | 3.48 ▲0.17 | 46.32 ▼0.87 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 47.49 ▼0.75 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 91.88 ▼9.84 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 33.19 ▼0.67 |
Bargain Bot /wp-admin/admin.php?page=wbpt-minimum-acceptable-price-page | 3.37 | 34.18 |
WoowBot /wp-admin/admin.php?page=wbpt-map-woowbot-supports | 3.71 | 464.58 |
Support /wp-admin/admin.php?page=wbpt-minimum-acceptable-price-supports | 3.37 | 32.93 |
Server storage [IO: ▲5.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 130 new files
Database: no new tables, 30 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
qcld_minimum_accept_modal_submit_button_text |
qcld_minimum_accept_modal_or_button_text |
qcld_minimum_accept_price_talk_to_boss |
qcld_minimum_accept_price_button_text |
qcld_minimum_accept_price_acceptable_price |
qcld_minimum_accept_price_get_email_address |
qcld_minimum_accept_price_too_low_alert_text |
qcld_minimum_accept_price_low_alert_text_two |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Bargain Bot for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,489 ▼273 | 14.13 ▼0.21 | 0.42 ▼1.35 | 7.78 ▼35.69 |
Dashboard /wp-admin | 2,230 ▲53 | 5.59 ▼0.07 | 92.15 ▲2.14 | 44.08 ▲3.76 |
Posts /wp-admin/edit.php | 2,135 ▲32 | 2.01 ▲0.06 | 39.64 ▼3.65 | 32.85 ▼4.49 |
Add New Post /wp-admin/post-new.php | 1,555 ▲29 | 23.29 ▼0.05 | 645.43 ▼9.22 | 71.49 ▲14.12 |
Media Library /wp-admin/upload.php | 1,429 ▲29 | 4.20 ▼0.01 | 99.01 ▼3.85 | 44.87 ▲2.56 |
Bargain Bot /wp-admin/admin.php?page=wbpt-minimum-acceptable-price-page | 1,618 | 2.15 | 45.03 | 53.66 |
WoowBot /wp-admin/admin.php?page=wbpt-map-woowbot-supports | 3,480 | 3.33 | 58.93 | 72.21 |
Support /wp-admin/admin.php?page=wbpt-minimum-acceptable-price-supports | 1,544 | 1.79 | 27.75 | 57.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 30 options in the database
- qlcd_map_chatbot_admin_email_subject
- widget_theysaidso_widget
- qcld_minimum_accept_modal_yes_button_text
- db_upgraded
- qcld_minimum_accept_modal_submit_button_text
- qcld_minimum_accept_price_too_low_alert_text
- qlcd_map_chatbot_admin_email
- qcld_minimum_accept_price_negotiating_test
- can_compress_scripts
- qcld_minimum_accept_price_heading_text
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/bargain/wpbot-minimum-acceptable-price-addon.php
- > /wp-content/plugins/bargain/wpbot-minimum-acceptable-price-function.php
- > /wp-content/plugins/bargain/wpbot-minimum-acceptable-price-variation.php
- > /wp-content/plugins/bargain/wpbot-minimum-acceptable-price-assets.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bargain/class-qcld-free-plugin-upgrade-notice.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/bargain/qc-support-promo-page/class-qc-support-promo-page.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: name your price, dynamic pricing, woocommerce, deals, woocommerce dynamic pricing
bargain/wpbot-minimum-acceptable-price-addon.php 85% from 13 tests
The main PHP file in "Bargain Bot for WooCommerce" ver. 1.5.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("bargain.php" instead of "wpbot-minimum-acceptable-price-addon.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, 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
No dangerous file extensions were detected23,714 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 9 | 824 | 108 | 16,294 |
SVG | 3 | 0 | 0 | 2,689 |
PHP | 9 | 850 | 241 | 2,337 |
JavaScript | 7 | 675 | 202 | 1,896 |
PO File | 1 | 198 | 232 | 498 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 3.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 27 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 29 | |
▷ Named functions | 29 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
57 PNG files occupy 1.55MB with 0.92MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
qc-support-promo-page/images/logo (1).png | 9.74KB | 5.02KB | ▼ 48.48% |
qc-support-promo-page/images/comment-link-remove.png | 33.90KB | 12.09KB | ▼ 64.34% |
qc-support-promo-page/images/seo-suggest-1.png | 13.77KB | 6.86KB | ▼ 50.19% |
qc-support-promo-page/images/highlight.png | 16.86KB | 6.57KB | ▼ 61.02% |
qc-support-promo-page/images/premium-theme-chatbot-master.png | 50.54KB | 14.02KB | ▼ 72.27% |