Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.37MB] [CPU: ▲3.62ms] Passed 4 tests
This is a short check of server-side resources used by Back in Stock Notifier for WooCommerce - Easy in-stock Notifier with Multivendor Support
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.40 | 43.89 ▲8.09 |
Dashboard /wp-admin | 3.71 ▲0.41 | 52.22 ▲6.70 |
Posts /wp-admin/edit.php | 3.76 ▲0.39 | 53.89 ▲7.70 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.35 | 88.82 ▼8.01 |
Media Library /wp-admin/upload.php | 3.58 ▲0.34 | 43.39 ▲11.03 |
Server storage [IO: ▲3.74MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 119 new files
Database: 1 new table, 10 new options
New tables |
---|
wp_stock_notifier_popular_product |
New WordPress options |
---|
widget_recent-comments |
stock_notifier_dokan_notifier_on_off_1 |
stock_notifier_wp_sms_active |
widget_theysaidso_widget |
stock_notifier_free_active |
db_upgraded |
stock_notifier_version |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Back in Stock Notifier for WooCommerce - Easy in-stock Notifier with Multivendor Support
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,989 ▲227 | 14.41 ▼0.30 | 1.92 ▲0.14 | 43.79 ▼0.96 |
Dashboard /wp-admin | 2,357 ▲180 | 5.52 ▼0.08 | 85.35 ▼6.99 | 79.85 ▲40.06 |
Posts /wp-admin/edit.php | 2,275 ▲175 | 2.12 ▲0.11 | 35.13 ▼1.98 | 35.38 ▲0.81 |
Add New Post /wp-admin/post-new.php | 1,851 ▲325 | 21.17 ▼2.02 | 709.72 ▲23.80 | 54.09 ▼2.78 |
Media Library /wp-admin/upload.php | 1,568 ▲171 | 4.17 ▼0.01 | 104.93 ▲3.16 | 75.39 ▲33.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie tables detected upon uninstall: 1 table
- wp_stock_notifier_popular_product
- This plugin does not fully uninstall, leaving 10 options in the database
- widget_recent-comments
- can_compress_scripts
- stock_notifier_version
- db_upgraded
- stock_notifier_free_active
- stock_notifier_dokan_notifier_on_off_1
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- stock_notifier_wp_sms_active
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Please fix the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/stock-notifier-for-woocommerce/includes/recommended/recommended-plugins.php:66
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stock-notifier-for-woocommerce/includes/class-popup-ajax.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Stock request), #2 (SMS Gateway configuration), #3 (Subscribers), #5 (Notification Setting), #6 (Message Setting), #7 (Visibility Switch), #8 (Advanced Settings), #9 (Multivendor Setting), #10 (User account management), #11 (Notification status), #12 (Signup stats), #13 (Product Popularity), #14 (Vendor Popularity), #15 (Multivendor dashboard)
stock-notifier-for-woocommerce/stock-notifier-for-woocommerce.php 77% from 13 tests
The main file in "Back in Stock Notifier for WooCommerce - Easy in-stock Notifier with Multivendor Support" v. 2.1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- 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
- Domain Path: The domain path folder was not found ("/languages/")
- Description: The description should be shorter than 140 characters (currently 180 characters long)
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
Everything looks great! No dangerous files found in this plugin12,858 lines of code in 69 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 863 | 3,113 | 6,711 |
JavaScript | 12 | 127 | 734 | 4,807 |
SVG | 25 | 0 | 0 | 549 |
CSS | 4 | 41 | 8 | 511 |
Markdown | 1 | 87 | 0 | 255 |
JSON | 1 | 0 | 0 | 25 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 37.96 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 150.00 |
Average method complexity | 3.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 1 | 4.55% |
Methods | 345 | |
▷ Static methods | 12 | 3.48% |
▷ Public methods | 261 | 75.65% |
▷ Protected methods | 9 | 2.61% |
▷ Private methods | 75 | 21.74% |
Functions | 8 | |
▷ Named functions | 2 | 25.00% |
▷ Anonymous functions | 6 | 75.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
33 PNG files occupy 1.31MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/settings.PNG | 65.37KB | 27.69KB | ▼ 57.65% |
assets/setting/6b211e977bd45e0f06685dc4d797a396.png | 5.20KB | 2.57KB | ▼ 50.48% |
assets/dokan/c4196d3286cc33244c83.png | 0.15KB | 0.25KB | 0.00% |
assets/dokan/07c018ae0160704a3290.png | 0.14KB | 0.25KB | 0.00% |
assets/dokan/8b117faa9d4dd934d6bb.png | 0.20KB | 0.29KB | 0.00% |