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: ▲0.02MB] [CPU: ▼7.92ms] Passed 4 tests
This is a short check of server-side resources used by Ni One Page Inventory Management System For WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.71 ▲0.75 |
Dashboard /wp-admin | 3.34 ▼0.01 | 47.36 ▼11.42 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 45.56 ▼3.23 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 86.07 ▼16.25 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.97 ▼0.76 |
Stock Center /wp-admin/admin.php?page=niwopims-stock-center | 3.40 | 32.25 |
Location /wp-admin/admin.php?page=niwopims-location | 3.33 | 30.36 |
Dashboard /wp-admin/admin.php?page=niwopims-dashboard | 3.70 | 30.58 |
Settings /wp-admin/admin.php?page=niwopims-settings | 3.29 | 31.92 |
Product List /wp-admin/admin.php?page=niwopims-stock-list | 3.40 | 35.60 |
Server storage [IO: ▲1.91MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 44 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_niwopims_stock |
wp_niwopims_purchase_header |
wp_niwopims_purchase_detail |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
recovery_mode_email_last_sent |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ni One Page Inventory Management System For WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲78 | 14.33 ▼0.22 | 1.75 ▲0.22 | 43.50 ▲4.12 |
Dashboard /wp-admin | 2,230 ▲53 | 5.65 ▲0.03 | 95.01 ▲3.89 | 42.56 ▲2.35 |
Posts /wp-admin/edit.php | 2,132 ▲32 | 1.95 ▼0.07 | 34.06 ▼5.45 | 30.81 ▼5.22 |
Add New Post /wp-admin/post-new.php | 1,563 ▲28 | 18.38 ▲0.16 | 591.44 ▼52.40 | 61.77 ▼3.91 |
Media Library /wp-admin/upload.php | 1,438 ▲41 | 4.39 ▲0.22 | 99.09 ▲1.30 | 41.74 ▲0.60 |
Stock Center /wp-admin/admin.php?page=niwopims-stock-center | 1,052 | 2.33 | 38.24 | 68.68 |
Location /wp-admin/admin.php?page=niwopims-location | 1,092 | 2.12 | 34.78 | 39.01 |
Dashboard /wp-admin/admin.php?page=niwopims-dashboard | 1,390 | 1.60 | 12.60 | 75.35 |
Settings /wp-admin/admin.php?page=niwopims-settings | 947 | 2.06 | 27.54 | 34.36 |
Product List /wp-admin/admin.php?page=niwopims-stock-list | 1,590 | 2.86 | 56.39 | 40.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- recovery_mode_email_last_sent
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=niwopims-dashboard
- > Error in wp-content/plugins/ni-one-page-inventory-management-system-for-woocommerce/includes/niwopims-dashboard.php+270
Uncaught Error: Call to undefined function wc_price() in wp-content/plugins/ni-one-page-inventory-management-system-for-woocommerce/includes/niwopims-dashboard.php:270
Stack trace:
#0 wp-content/plugins/ni-one-page-inventory-management-system-for-woocommerce/includes/niwopims-core.php(213): NIWOPIMS_Dashboard->page_init()
#1 wp-includes/class-wp-hook.php(310): NIWOPIMS_Core->add_page()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 {main}
thrown
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Dashboard show stock analysis summary), #2 (Product list, option to add stock, view purchase history and edit product), #3 (Add new purchase order.), #4 (View purchase product history, filter by date range.), #5 (Edit product.), #6 (Change number of record display on per page.), #7 (Stock center), #8 (Manage location), #9 (Setting page)
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
ni-one-page-inventory-management-system-for-woocommerce/ni-one-page-inventory-management-system-for-woocommerce.php 92% from 13 tests
The primary PHP file in "Ni One Page Inventory Management System For WooCommerce" version 1.1.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin8,295 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 682 | 101 | 3,332 |
SVG | 1 | 0 | 0 | 2,671 |
CSS | 5 | 103 | 118 | 1,661 |
JavaScript | 7 | 212 | 142 | 622 |
HTML | 1 | 1 | 0 | 9 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 25.58 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 3.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 101 | |
▷ Static methods | 1 | 0.99% |
▷ Public methods | 101 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 0.40MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-8.png | 22.58KB | 12.93KB | ▼ 42.74% |
screenshot-5.png | 80.53KB | 33.22KB | ▼ 58.75% |
screenshot-4.png | 83.45KB | 34.70KB | ▼ 58.42% |
screenshot-9.png | 6.34KB | 3.93KB | ▼ 38.04% |
screenshot-3.png | 82.88KB | 34.41KB | ▼ 58.48% |