Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲2.32MB] [CPU: ▲11.46ms] Passed 4 tests
Server-side resources used by B2BKing — Ultimate WooCommerce Wholesale and B2B Solution — Wholesale Order Form, Catalog Mode, Dynamic Pricing & More
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.84 ▲1.37 | 45.75 ▲6.77 |
Dashboard /wp-admin | 6.07 ▲2.76 | 61.11 ▲11.43 |
Posts /wp-admin/edit.php | 6.07 ▲2.71 | 64.72 ▲13.03 |
Add New Post /wp-admin/post-new.php | 8.33 ▲2.43 | 109.41 ▲14.67 |
Media Library /wp-admin/upload.php | 6.07 ▲2.83 | 50.27 ▲14.59 |
Server storage [IO: ▲8.69MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 195 new files
Database: no new tables, 13 new options
New WordPress options |
---|
b2bking_plugin_status_setting |
b2bking_main_active |
widget_recent-posts |
db_upgraded |
b2bking_update_sort_number_menu_order |
b2bking_individual_role_id_setting |
widget_recent-comments |
b2bking_b2b_role_id_setting |
b2bking_please_select_role_id_setting |
b2bking_b2bgroup_id_setting |
... |
Browser metrics Passed 4 tests
Checking browser requirements for B2BKing — Ultimate WooCommerce Wholesale and B2B Solution — Wholesale Order Form, Catalog Mode, Dynamic Pricing & More
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲22 | 14.33 ▼0.01 | 1.75 ▼0.02 | 36.62 ▼4.82 |
Dashboard /wp-admin | 2,217 ▲39 | 5.66 ▼0.04 | 95.36 ▼16.10 | 43.71 ▲2.78 |
Posts /wp-admin/edit.php | 2,120 ▲17 | 2.06 ▲0.05 | 41.18 ▼1.68 | 35.86 ▼1.45 |
Add New Post /wp-admin/post-new.php | 1,540 ▲3 | 23.41 ▼1.68 | 676.99 ▲68.76 | 50.58 ▼18.90 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.22 ▲0.01 | 98.15 ▲0.75 | 41.94 ▼2.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 13 options
- b2bking_plugin_status_setting
- widget_recent-comments
- b2bking_please_select_role_id_setting
- widget_recent-posts
- b2bking_b2b_role_id_setting
- widget_theysaidso_widget
- theysaidso_admin_options
- b2bking_update_sort_number_menu_order
- db_upgraded
- b2bking_b2bgroup_id_setting
- ...
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% 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
Please fix the following attributes:
- Screenshots: Screenshot #10 (Groups) image required
- Screenshots: A description for screenshot #99 is missing in b2bking-wholesale-for-woocommerce/assets to your readme.txt
b2bking-wholesale-for-woocommerce/b2bking.php 77% from 13 tests
"B2BKing — Ultimate WooCommerce Wholesale and B2B Solution — Wholesale Order Form, Catalog Mode, Dynamic Pricing & More" version 4.6.62'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: The principal plugin file should be the same as the plugin slug ("b2bking-wholesale-for-woocommerce.php" instead of "b2bking.php")
- Requires at least: Required version must match the one declared in readme.txt ("4.8" instead of "5.0.0")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin49,980 lines of code in 114 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 125 | 547 | 19,201 |
PHP | 21 | 2,503 | 1,487 | 16,312 |
SVG | 12 | 21 | 12 | 9,298 |
JavaScript | 14 | 885 | 1,212 | 3,917 |
JSON | 58 | 114 | 0 | 1,248 |
Markdown | 1 | 3 | 0 | 4 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Class cyclomatic complexity should be reduced to less than 1000 (currently 1,367)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 267.45 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 1,367.00 |
Average method complexity | 7.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 68.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 245 | |
▷ Static methods | 72 | 29.39% |
▷ Public methods | 245 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 84 | |
▷ Named functions | 5 | 5.95% |
▷ Anonymous functions | 79 | 94.05% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
46 compressed PNG files occupy 0.66MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/assets/images/module-import.png | 12.20KB | 12.84KB | 0.00% |
includes/assets/images/screenshot_info_tables.png | 13.47KB | 5.30KB | ▼ 60.66% |
includes/assets/images/module-orderform.png | 14.76KB | 15.98KB | 0.00% |
includes/assets/images/module-company.png | 17.15KB | 18.19KB | 0.00% |
includes/assets/images/module-rules1.png | 14.50KB | 15.60KB | 0.00% |