Benchmarks
Plugin footprint 82% 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.88MB] [CPU: ▼175.30ms] Passed 4 tests
A check of server-side resources used by WooCommerce Bulk Percentage Pricing
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 38.07 ▲17.09 |
Dashboard /wp-admin | 2.77 ▼0.29 | 23.77 ▼26.94 |
Posts /wp-admin/edit.php | 2.77 ▼0.34 | 28.08 ▼24.56 |
Add New Post /wp-admin/post-new.php | 2.77 ▼2.66 | 21.50 ▼637.91 |
Media Library /wp-admin/upload.php | 2.77 ▼0.23 | 22.47 ▼11.78 |
Bulk percentage pricing /wp-admin/options-general.php?page=woocommerce-bulk-percentage-pricing/bulk-percentage-pricing.php | 2.77 | 22.59 |
Server storage [IO: ▲1.06MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Please fix the following
- You have illegally modified 1 file (0.62KB) outside of "wp-content/plugins/woocommerce-bulk-percentage-pricing/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 27 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce Bulk Percentage Pricing
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲126 | 16.35 ▲0.69 | 10.19 ▼2.45 | 44.55 ▼7.32 |
Dashboard /wp-admin | 2,972 ▲44 | 5.95 ▼0.04 | 147.09 ▼20.24 | 109.05 ▼4.79 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▲0.02 | 72.30 ▲0.82 | 93.13 ▼1.29 |
Add New Post /wp-admin/post-new.php | 1,686 ▲3 | 18.81 ▲0.50 | 409.10 ▲0.62 | 107.44 ▼5.23 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.02 ▲0.00 | 172.81 ▲15.37 | 113.43 ▼7.82 |
Bulk percentage pricing /wp-admin/options-general.php?page=woocommerce-bulk-percentage-pricing/bulk-percentage-pricing.php | 1,315 | 2.75 | 71.07 | 152.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin cannot be uninstalled
- > User deprecated in wp-includes/functions.php+5495
has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=woocommerce-bulk-percentage-pricing/bulk-percentage-pricing.php
- > User deprecated in wp-includes/functions.php+5495
has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/woocommerce-bulk-percentage-pricing/bulk-percentage-pricing.php:273
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: bulk, woocommerce, pricing, percentage
woocommerce-bulk-percentage-pricing/bulk-percentage-pricing.php 85% from 13 tests
The primary PHP file in "WooCommerce Bulk Percentage Pricing" version 2.1.3 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("woocommerce-bulk-percentage-pricing.php" instead of "bulk-percentage-pricing.php")
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
Success! There were no dangerous files found in this plugin9,738 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 13 | 22 | 7,116 |
JavaScript | 8 | 694 | 326 | 2,098 |
SVG | 1 | 0 | 0 | 288 |
PHP | 1 | 41 | 47 | 190 |
LESS | 1 | 4 | 0 | 46 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
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 | 6 | |
▷ Named functions | 6 | 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
No PNG images were found in this plugin