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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼9.40ms] Passed 4 tests
A check of server-side resources used by Instock Email Alert for Woocommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 36.97 ▼1.84 |
Dashboard /wp-admin | 3.37 ▲0.02 | 45.52 ▼14.13 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 43.70 ▼6.99 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 83.35 ▼14.62 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.10 ▲1.11 |
Instock Alert /wp-admin/options-general.php?page=instocksettings | 3.26 | 33.80 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_instock_email_alert |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
instock_email_alert_db_version |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Instock Email Alert for Woocommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲57 | 14.37 ▲0.02 | 2.13 ▲0.22 | 40.84 ▼1.94 |
Dashboard /wp-admin | 2,208 ▲28 | 5.64 ▼0.01 | 84.68 ▼8.49 | 36.13 ▼1.49 |
Posts /wp-admin/edit.php | 2,113 ▲34 | 2.02 ▼0.00 | 35.17 ▼1.27 | 29.20 ▼3.02 |
Add New Post /wp-admin/post-new.php | 1,535 ▼2 | 23.03 ▼1.83 | 615.84 ▲13.89 | 53.89 ▼20.55 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 4.19 ▲0.04 | 97.37 ▼5.43 | 43.96 ▲2.59 |
Instock Alert /wp-admin/options-general.php?page=instocksettings | 1,032 | 1.71 | 27.33 | 33.48 |
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
- The uninstall procedure failed, leaving 1 table in the database
- wp_instock_email_alert
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- instock_email_alert_db_version
- widget_recent-comments
- widget_theysaidso_widget
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/instock-email-alert-for-woocommerce/instock-email-alert.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: stock, notification, email, subscribe, alert...
instock-email-alert-for-woocommerce/instock-email-alert.php 92% from 13 tests
The main file in "Instock Email Alert for Woocommerce" v. 1.1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("instock-email-alert-for-woocommerce.php" instead of "instock-email-alert.php")
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
Everything looks great! No dangerous files found in this plugin363 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 19 | 29 | 286 |
JavaScript | 1 | 6 | 8 | 39 |
CSS | 2 | 4 | 14 | 38 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/icon-256x256.png | 7.48KB | 4.62KB | ▼ 38.25% |