Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼1.61ms] Passed 4 tests
Server-side resources used by Ni Sales Commission For WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 44.34 ▲2.78 |
Dashboard /wp-admin | 3.40 ▲0.09 | 50.24 ▼1.15 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 51.65 ▲0.05 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 91.56 ▼7.29 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 38.92 ▲1.96 |
User Role /wp-admin/admin.php?page=niwoosc-user-role | 3.31 | 35.56 |
Other Plugins /wp-admin/admin.php?page=niwoosc-other-plugin | 3.31 | 33.72 |
Order Report /wp-admin/admin.php?page=niwoosc-order-report | 3.34 | 37.50 |
Dashboard /wp-admin/admin.php?page=niwoosc-dashboard | 3.38 | 34.28 |
Commission Report /wp-admin/admin.php?page=niwoosc-commission-report | 3.34 | 36.47 |
Server storage [IO: ▲1.47MB] [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: 33 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_niwoosc_user_role_commission |
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Ni Sales Commission For WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲63 | 14.35 ▲0.35 | 1.85 ▲0.19 | 46.47 ▲0.16 |
Dashboard /wp-admin | 2,233 ▲56 | 5.65 ▲0.05 | 88.12 ▼1.60 | 39.33 ▲0.68 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 2.01 ▲0.00 | 37.36 ▼2.88 | 32.90 ▼5.71 |
Add New Post /wp-admin/post-new.php | 1,554 ▲26 | 23.19 ▲0.16 | 694.65 ▲37.92 | 51.99 ▼10.79 |
Media Library /wp-admin/upload.php | 1,438 ▲38 | 4.20 ▲0.02 | 101.62 ▼11.63 | 44.32 ▼1.72 |
User Role /wp-admin/admin.php?page=niwoosc-user-role | 1,126 | 1.90 | 32.87 | 41.71 |
Other Plugins /wp-admin/admin.php?page=niwoosc-other-plugin | 1,143 | 1.93 | 27.84 | 37.73 |
Order Report /wp-admin/admin.php?page=niwoosc-order-report | 1,006 | 1.89 | 37.51 | 28.31 |
Dashboard /wp-admin/admin.php?page=niwoosc-dashboard | 1,633 | 2.04 | 26.73 | 40.32 |
Commission Report /wp-admin/admin.php?page=niwoosc-commission-report | 956 | 1.85 | 32.75 | 24.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie tables were found after uninstall: 1 table
- wp_niwoosc_user_role_commission
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
No output text or server-side errors detected 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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (Dashboard Sales count and amount), #2 (Order Report Information), #3 (Sales Commission report), #4 (Setting option to set the Commission), #5 (Commission detail in order)
ni-woo-sales-commission/ni-sales-commission-for-woocommerce.php 85% from 13 tests
The principal PHP file in "Ni Sales Commission For WooCommerce" v. 1.2.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ni-woo-sales-commission.php" instead of "ni-sales-commission-for-woocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected4,656 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
PHP | 10 | 312 | 118 | 1,472 |
CSS | 3 | 54 | 47 | 303 |
PO File | 1 | 58 | 71 | 135 |
JavaScript | 3 | 20 | 21 | 66 |
HTML | 1 | 1 | 0 | 9 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 12.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 61 | |
▷ Static methods | 2 | 3.28% |
▷ Public methods | 61 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.21MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 5.68KB | 3.69KB | ▼ 35.04% |
screenshot-2.png | 42.35KB | 12.03KB | ▼ 71.60% |
screenshot-1.png | 82.31KB | 14.48KB | ▼ 82.41% |
screenshot-4.png | 45.23KB | 11.37KB | ▼ 74.86% |
screenshot-3.png | 40.91KB | 11.61KB | ▼ 71.63% |