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.02MB] [CPU: ▼9.95ms] Passed 4 tests
Analyzing server-side resources used by WC Bulk Buyer Discounts
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.62 ▼2.28 |
Dashboard /wp-admin | 3.34 ▼0.00 | 45.23 ▼17.86 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 46.43 ▼4.12 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 80.83 ▼15.54 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 39.24 ▲6.58 |
WCBBD Settings /wp-admin/options-general.php?page=wc-bulk-buyer-discounts/wc-bulk-buyer-discounts.php | 3.23 | 32.80 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WC Bulk Buyer Discounts
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.30 ▼0.99 | 5.11 ▲3.24 | 40.03 ▼5.59 |
Dashboard /wp-admin | 2,213 ▲25 | 5.88 ▲0.97 | 102.54 ▼4.16 | 40.95 ▼1.61 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.03 ▼0.02 | 33.84 ▼2.63 | 33.83 ▼3.52 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.26 ▲0.08 | 681.14 ▲82.97 | 54.22 ▲6.45 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.23 ▲0.04 | 93.24 ▼7.58 | 40.45 ▼3.99 |
WCBBD Settings /wp-admin/options-general.php?page=wc-bulk-buyer-discounts/wc-bulk-buyer-discounts.php | 854 | 2.17 | 22.83 | 27.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wc-bulk-buyer-discounts/wc-bulk-buyer-discounts.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: coupons, bulk buyer discount, custom discounts, woocommerce
wc-bulk-buyer-discounts/wc-bulk-buyer-discounts.php Passed 13 tests
"WC Bulk Buyer Discounts" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
105 characters long description:
WC Bulk Buyer Discounts is a simple discount plugin for Woocommerce using automatic one use only coupons.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin139 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 21 | 52 | 139 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
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 | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There were not PNG files found in your plugin