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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.48ms] Passed 4 tests
Server-side resources used by Ni WooCommerce Stock Alert Notification
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.40 ▼0.06 | 20.63 ▼18.46 |
Dashboard /wp-admin | 3.33 ▲0.03 | 44.96 ▼4.08 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 45.74 ▲0.27 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 80.88 ▼7.80 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.32 ▼3.56 |
Setting /wp-admin/admin.php?page=ni-niwoostock-setting | 3.29 | 37.20 |
Product Stock /wp-admin/admin.php?page=ni-product-stock | 3.37 | 34.26 |
Register Email /wp-admin/admin.php?page=product-register-email | 3.28 | 31.01 |
Dashboard /wp-admin/admin.php?page=niwoostock | 3.30 | 35.24 |
Server storage [IO: ▲1.37MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 37 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_niwoostock |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Ni WooCommerce Stock Alert Notification
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,496 ▼239 | 13.57 ▼0.72 | 0.55 ▼1.03 | 19.84 ▼21.09 |
Dashboard /wp-admin | 2,237 ▲49 | 4.82 ▼0.06 | 109.40 ▲7.91 | 39.79 ▼4.17 |
Posts /wp-admin/edit.php | 2,120 ▲34 | 2.01 ▼0.04 | 40.77 ▲3.76 | 34.18 ▲0.70 |
Add New Post /wp-admin/post-new.php | 1,539 ▲6 | 17.45 ▼5.99 | 680.24 ▲4.47 | 71.69 ▲13.92 |
Media Library /wp-admin/upload.php | 1,413 ▲22 | 4.22 ▼0.00 | 96.45 ▼0.51 | 42.86 ▼3.07 |
Setting /wp-admin/admin.php?page=ni-niwoostock-setting | 1,360 | 2.43 | 52.78 | 26.58 |
Product Stock /wp-admin/admin.php?page=ni-product-stock | 978 | 1.99 | 34.54 | 29.67 |
Register Email /wp-admin/admin.php?page=product-register-email | 947 | 2.12 | 32.46 | 29.70 |
Dashboard /wp-admin/admin.php?page=niwoostock | 986 | 2.05 | 26.30 | 29.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_niwoostock
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=niwoostock
- > Network (severe)
wp-content/plugins/ni-woocommerce-stock/admin/css/jquery-ui?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Dashboard show product information), #2 (Register email report), #3 (Stock report), #4 (Product email and product notes.), #5 (Customer out of stock product email.), #6 (Setting option.)
ni-woocommerce-stock/ni-woocommerce-stock.php Passed 13 tests
The primary PHP file in "Ni WooCommerce Stock Alert Notification" version 1.1.2 is used by WordPress to initiate all plugin functionality
111 characters long description:
Ni WooCommerce Stock alert plugin help you to retain your valuable customer when store product is out of stock.
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 plugin8,047 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 95 | 101 | 3,917 |
SVG | 1 | 0 | 0 | 2,671 |
PHP | 10 | 167 | 60 | 1,271 |
JavaScript | 6 | 46 | 67 | 188 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 13.20 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 3.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 54 | |
▷ Static methods | 1 | 1.85% |
▷ Public methods | 54 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.18MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 30.84KB | 18.27KB | ▼ 40.76% |
screenshot-2.png | 12.53KB | 8.04KB | ▼ 35.86% |
screenshot-4.png | 54.41KB | 21.46KB | ▼ 60.55% |
screenshot-5.png | 14.09KB | 8.55KB | ▼ 39.28% |
admin/css/images/ui-icons_555555_256x240.png | 6.84KB | 4.18KB | ▼ 38.84% |