Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.99ms] Passed 4 tests
An overview of server-side resources used by Private Store for WooCommerce B2B & Wholesale by B2BKing
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.76 ▼11.31 |
Dashboard /wp-admin | 3.34 ▲0.03 | 54.71 ▲1.07 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 51.79 ▼1.41 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 98.86 ▼0.32 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 40.34 ▲3.00 |
Server storage [IO: ▲2.74MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Private Store for WooCommerce B2B & Wholesale by B2BKing
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲22 | 14.37 ▲0.02 | 1.97 ▲0.00 | 43.74 ▼7.22 |
Dashboard /wp-admin | 2,214 ▲37 | 5.68 ▲0.08 | 92.49 ▼4.92 | 42.72 ▼2.69 |
Posts /wp-admin/edit.php | 2,123 ▲23 | 2.02 ▲0.05 | 41.68 ▲0.56 | 37.51 ▲3.11 |
Add New Post /wp-admin/post-new.php | 1,542 ▲14 | 23.21 ▲0.08 | 625.49 ▼69.49 | 62.23 ▲9.95 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.27 ▲0.07 | 95.89 ▼5.47 | 47.82 ▲2.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files
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 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: hide prices, woocommerce wholesale, hide store, woocommerce b2b, private store...
b2bking-private-store-for-woocommerce/b2bking.php 69% from 13 tests
The principal PHP file in "Private Store for WooCommerce B2B & Wholesale by B2BKing" v. 1.1.2 is loaded by WordPress automatically on each request
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 209 characters long)
- Requires at least: The required version number did not match the one declared in readme.txt ("4.8" instead of "5.0.0")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("b2bking-private-store-for-woocommerce.php" instead of "b2bking.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin3,877 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 7 | 0 | 12 | 2,972 |
PHP | 6 | 125 | 63 | 539 |
CSS | 3 | 20 | 400 | 315 |
JavaScript | 3 | 21 | 28 | 47 |
Markdown | 1 | 3 | 0 | 4 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 5.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 2 | 40.00% |
▷ Anonymous functions | 3 | 60.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/assets/lib/semantic/themes/default/assets/images/flags.png | 27.46KB | 29.21KB | 0.00% |
includes/assets/images/logo.png | 10.75KB | 5.84KB | ▼ 45.73% |