Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼1.49ms] Passed 4 tests
Server-side resources used by Product Stock Alert Woocommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 41.77 ▼1.52 |
Dashboard /wp-admin | 3.41 ▲0.11 | 50.33 ▼1.41 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 56.25 ▲4.84 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 94.89 ▼5.05 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 36.60 ▲2.02 |
Product Stock Alert /wp-admin/options-general.php?page=instocksettings | 3.30 | 37.85 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 25 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_Product_stock_alert |
New WordPress options |
---|
Product_stock_alert_db_version |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Product Stock Alert Woocommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,890 ▲129 | 13.45 ▼1.18 | 8.25 ▲6.28 | 40.70 ▼3.80 |
Dashboard /wp-admin | 2,209 ▲29 | 5.67 ▲0.01 | 94.43 ▼1.54 | 39.79 ▼2.96 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 2.02 ▲0.02 | 39.60 ▲2.92 | 37.84 ▲1.57 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 23.18 ▼0.03 | 646.92 ▼13.99 | 59.76 ▲5.12 |
Media Library /wp-admin/upload.php | 1,417 ▲14 | 4.31 ▲0.11 | 99.83 ▼6.28 | 42.60 ▼3.19 |
Product Stock Alert /wp-admin/options-general.php?page=instocksettings | 1,036 | 1.80 | 25.45 | 29.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_Product_stock_alert
- The uninstall procedure has failed, leaving 7 options in the database
- Product_stock_alert_db_version
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/product-stock-alert-woocommerce/admin/partials/product-stock-alert-woocommerce-admin-display.php
- > /wp-content/plugins/product-stock-alert-woocommerce/public/partials/product-stock-alert-woocommerce-public-display.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=instocksettings
- > Network (severe)
wp-content/plugins/product-stock-alert-woocommerce/assets/css/icon-256x256x.png - 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
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
product-stock-alert-woocommerce/product-stock-alert-woocommerce.php Passed 13 tests
The principal PHP file in "Product Stock Alert Woocommerce" v. 1.0.0 is loaded by WordPress automatically on each request
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.
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
Success! There were no dangerous files found in this plugin534 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 141 | 557 | 451 |
JavaScript | 3 | 10 | 62 | 45 |
CSS | 4 | 4 | 22 | 38 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 1.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 2 | 8.70% |
▷ Public methods | 18 | 78.26% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 21.74% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin