Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.48ms] Passed 4 tests
This is a short check of server-side resources used by WooCommerce Out of Stock Message
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 42.29 ▲3.29 |
Dashboard /wp-admin | 3.34 ▲0.04 | 48.17 ▼3.68 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 50.44 ▼2.78 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 91.38 ▼15.92 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.18 ▲0.45 |
Server storage [IO: ▲0.85MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for WooCommerce Out of Stock Message
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.28 ▼0.34 | 1.65 ▼0.63 | 39.16 ▼5.23 |
Dashboard /wp-admin | 2,202 ▲25 | 5.58 ▲0.05 | 88.69 ▼5.25 | 41.31 ▲1.61 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.05 ▲0.09 | 35.71 ▼7.22 | 34.20 ▼3.61 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.07 ▼0.03 | 604.98 ▼66.89 | 55.36 ▼1.40 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.16 ▲0.03 | 98.70 ▼20.16 | 44.25 ▼0.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Default Note), #2 (Product Write Panel), #3 (Single Product Page)
woocommerce-out-of-stock-message/woocommerce-out-of-stock-message.php 85% from 13 tests
The main PHP script in "WooCommerce Out of Stock Message" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Description: Please don't use more than 140 characters for the plugin description (currently 224 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected866 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 150 | 166 | 542 |
PHP | 1 | 78 | 31 | 171 |
HTML | 1 | 60 | 3 | 97 |
JavaScript | 4 | 19 | 5 | 36 |
Sass | 2 | 7 | 0 | 20 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
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 | 6 | |
▷ Named functions | 6 | 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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.69MB with 0.42MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 173.75KB | 54.04KB | ▼ 68.90% |
documentation/assets/02_preview2.png | 80.73KB | 23.23KB | ▼ 71.22% |
documentation/images/kharis-sulistiyono-favicon.png | 11.98KB | 8.88KB | ▼ 25.86% |
documentation/assets/03_preview3.png | 173.75KB | 54.04KB | ▼ 68.90% |
documentation/assets/01_preview1.png | 90.89KB | 26.21KB | ▼ 71.16% |