Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼5.88ms] Passed 4 tests
An overview of server-side resources used by Woo Custom Stock Status
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.86 ▲0.01 |
Dashboard /wp-admin | 3.31 ▼0.04 | 45.44 ▼16.79 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.77 ▲0.19 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 79.55 ▼6.93 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.11 ▲1.50 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Woo Custom Stock Status
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.27 ▲0.13 | 1.78 ▼0.06 | 40.11 ▼3.51 |
Dashboard /wp-admin | 2,198 ▲20 | 5.62 ▼0.01 | 90.70 ▼27.29 | 39.43 ▼7.00 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.02 ▲0.08 | 39.05 ▲3.58 | 34.85 ▲0.67 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 18.55 ▼4.83 | 596.84 ▼6.01 | 62.95 ▲10.66 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.17 ▼0.03 | 94.31 ▼2.64 | 41.18 ▼4.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 4× PHP files output text when accessed directly:
- > /wp-content/plugins/woo-custom-stock-status/includes/class-wc-stock-product.php
- > /wp-content/plugins/woo-custom-stock-status/includes/class-wc-stock-setting.php
- > /wp-content/plugins/woo-custom-stock-status/woo-custom-stock-status.php
- > /wp-content/plugins/woo-custom-stock-status/includes/class-wc-stock-base.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #10 (Custom stock status shortcode in widget), #11 (Custom stock status shortcode in pages / posts)
woo-custom-stock-status/woo-custom-stock-status.php Passed 13 tests
This is the main PHP file of "Woo Custom Stock Status" version 1.3.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
127 characters long description:
Write the custom stock status with different colors for each woocommerce product, to show in product details and listing pages.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin619 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 178 | 185 | 619 |
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.47 |
Average class complexity | 28.75 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 4.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.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 | 31 | |
▷ Static methods | 2 | 6.45% |
▷ Public methods | 31 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin