Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼8.12ms] Passed 4 tests
A check of server-side resources used by Toret Product Stock Alert For WooCommerce Lite
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▼0.00 | 23.69 ▼19.60 |
Dashboard /wp-admin | 3.39 ▲0.09 | 45.09 ▼2.62 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 51.73 ▲1.60 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 81.09 ▼11.87 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.91 ▲1.68 |
Product Stock Alert /wp-admin/options-general.php?page=toret-product-stock-alert | 3.32 | 33.30 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_stock_alert |
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Toret Product Stock Alert For WooCommerce Lite: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,471 ▼275 | 13.13 ▼1.22 | 0.55 ▼1.28 | 16.74 ▼27.92 |
Dashboard /wp-admin | 2,215 ▲24 | 4.89 ▼0.05 | 104.98 ▲2.72 | 35.67 ▼8.88 |
Posts /wp-admin/edit.php | 2,098 ▲6 | 2.05 ▲0.05 | 39.05 ▼4.45 | 35.42 ▼2.33 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.52 ▲6.11 | 665.44 ▼20.35 | 63.51 ▲4.17 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.23 ▲0.10 | 95.98 ▼6.44 | 46.60 ▼0.46 |
Product Stock Alert /wp-admin/options-general.php?page=toret-product-stock-alert | 927 | 2.03 | 30.02 | 31.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wp_stock_alert
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/toret-product-stock-alert-lite/admin/views/admin.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Donate link: Please fix this invalid url: ""
toret-product-stock-alert-lite/toret-product-stock-alert-lite.php 85% from 13 tests
The principal PHP file in "Toret Product Stock Alert For WooCommerce Lite" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Requires at least: Required version must match the one declared in readme.txt ("4.0" instead of "3.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected2,371 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 287 | 184 | 1,143 |
PHP | 13 | 245 | 357 | 684 |
CSS | 2 | 26 | 15 | 458 |
PO File | 1 | 119 | 243 | 86 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 12.75 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 7 | 21.88% |
▷ Public methods | 27 | 84.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.62% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin