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.13MB] [CPU: ▲0.74ms] Passed 4 tests
Server-side resources used by Product Stock Manager & Notifier for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 40.28 ▲0.07 |
Dashboard /wp-admin | 3.43 ▲0.13 | 47.11 ▼3.92 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 51.41 ▲3.78 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 96.04 ▲3.47 |
Media Library /wp-admin/upload.php | 3.35 ▲0.13 | 35.10 ▲3.32 |
Server storage [IO: ▲2.19MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 66 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Product Stock Manager & Notifier for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲41 | 14.21 ▼0.17 | 1.66 ▼0.32 | 45.24 ▲1.32 |
Dashboard /wp-admin | 2,208 ▲28 | 5.62 ▲0.01 | 89.51 ▼3.57 | 39.34 ▼2.48 |
Posts /wp-admin/edit.php | 2,117 ▲17 | 1.96 ▼0.00 | 39.78 ▲0.11 | 36.27 ▲1.83 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.39 ▼0.37 | 634.05 ▲18.04 | 51.51 ▲3.55 |
Media Library /wp-admin/upload.php | 1,407 ▲13 | 4.18 ▲0.02 | 94.75 ▼4.65 | 40.92 ▼0.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
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 everything seems fine, this is not an exhaustive test
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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: wordpress, out of stock, woocommerce, stock alert, stock...
woocommerce-product-stock-alert/product_stock_alert.php 85% from 13 tests
Analyzing the main PHP file in "Product Stock Manager & Notifier for WooCommerce" version 2.2.0
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 174 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("woocommerce-product-stock-alert.php" instead of "product_stock_alert.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected37,882 lines of code in 50 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 19,618 |
CSS | 6 | 31 | 1 | 11,435 |
PHP | 27 | 388 | 533 | 2,638 |
JavaScript | 11 | 150 | 35 | 2,395 |
Sass | 1 | 303 | 17 | 1,701 |
JSX | 1 | 7 | 2 | 76 |
SVG | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 4.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 97 | |
▷ Static methods | 5 | 5.15% |
▷ Public methods | 95 | 97.94% |
▷ Protected methods | 2 | 2.06% |
▷ Private methods | 0 | 0.00% |
Functions | 24 | |
▷ Named functions | 23 | 95.83% |
▷ Anonymous functions | 1 | 4.17% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/placeholder.png | 2.75KB | 2.92KB | 0.00% |
assets/images/fpd/grid.png | 2.69KB | 0.13KB | ▼ 95.17% |