Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- This plugin did not install gracefully
- > Warning in wp-content/plugins/role-based-bulk-quantity-pricing/freemius/require.php+16
require_once(wp-content/plugins/role-based-bulk-quantity-pricing/freemius/includes/fs-html-escaping-functions.php): failed to open stream: No such file or directory
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.42ms] Passed 4 tests
This is a short check of server-side resources used by Role Based Bulk Quantity Pricing
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.39 ▼5.54 |
Dashboard /wp-admin | 3.31 ▲0.00 | 67.75 ▲17.71 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 52.68 ▼0.44 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.34 ▼16.62 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.57 ▼11.07 |
Server storage [IO: ▲3.81MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 209 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
fs_active_plugins |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
fs_debug_mode |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Role Based Bulk Quantity Pricing
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.47 ▲0.09 | 2.05 ▼0.30 | 39.69 ▼3.21 |
Dashboard /wp-admin | 2,206 ▲21 | 5.83 ▼0.03 | 101.07 ▲0.00 | 39.31 ▼2.71 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.06 ▲0.04 | 39.99 ▲0.53 | 35.64 ▼1.85 |
Add New Post /wp-admin/post-new.php | 1,537 ▲23 | 23.15 ▲5.66 | 668.51 ▼46.96 | 53.35 ▼18.58 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.18 ▲0.02 | 99.13 ▼12.86 | 46.80 ▲1.52 |
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
- Zombie WordPress options were found after uninstall: 8 options
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- fs_active_plugins
- fs_debug_mode
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please a description for screenshot #2 in role-based-bulk-quantity-pricing/assets to your readme.txt
role-based-bulk-quantity-pricing/role-based-bulk-quantity-pricing.php Passed 13 tests
The main PHP file in "Role Based Bulk Quantity Pricing" ver. 1.1.7 adds more information about the plugin and also serves as the entry point for this plugin
70 characters long description:
Use a CSV file to set bulk quantity pricing by roles, for WooCommerce.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected35,434 lines of code in 160 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 134 | 8,387 | 17,294 | 34,507 |
JavaScript | 5 | 107 | 66 | 471 |
Markdown | 1 | 68 | 0 | 214 |
PO File | 1 | 51 | 61 | 151 |
CSS | 18 | 7 | 7 | 90 |
SVG | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 72.53 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 64 | |
▷ Abstract classes | 4 | 6.25% |
▷ Concrete classes | 60 | 93.75% |
▷ Final classes | 0 | 0.00% |
Methods | 1,359 | |
▷ Static methods | 200 | 14.72% |
▷ Public methods | 957 | 70.42% |
▷ Protected methods | 18 | 1.32% |
▷ Private methods | 384 | 28.26% |
Functions | 103 | |
▷ Named functions | 103 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 146 | |
▷ Global constants | 99 | 67.81% |
▷ Class constants | 47 | 32.19% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.44MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 196.13KB | 43.38KB | ▼ 77.88% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
assets/img/logo.png | 8.77KB | 4.33KB | ▼ 50.60% |
assets/screenshot-2.png | 218.82KB | 54.11KB | ▼ 75.27% |