Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲1.54MB] [CPU: ▲4.22ms] Passed 4 tests
An overview of server-side resources used by Sold Out Badge for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.06 ▲1.60 | 61.47 ▲22.64 |
Dashboard /wp-admin | 4.85 ▲1.51 | 57.13 ▼4.24 |
Posts /wp-admin/edit.php | 4.93 ▲1.58 | 63.80 ▲16.57 |
Add New Post /wp-admin/post-new.php | 7.44 ▲1.56 | 89.89 ▼6.86 |
Media Library /wp-admin/upload.php | 4.75 ▲1.52 | 46.72 ▲11.40 |
Sold Out Badge for WooCommerce /wp-admin/options-general.php?page=wcsob | 4.81 | 50.87 |
Server storage [IO: ▲10.29MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 471 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Sold Out Badge for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,971 ▲225 | 18.62 ▲4.41 | 1.57 ▼0.30 | 36.18 ▼5.43 |
Dashboard /wp-admin | 2,370 ▲182 | 9.29 ▲4.42 | 226.91 ▲120.77 | 44.82 ▲2.06 |
Posts /wp-admin/edit.php | 2,294 ▲205 | 6.26 ▲4.25 | 89.68 ▲51.46 | 36.07 ▲0.90 |
Add New Post /wp-admin/post-new.php | 1,580 ▲57 | 19.88 ▼3.46 | 731.36 ▲44.40 | 39.33 ▼16.48 |
Media Library /wp-admin/upload.php | 1,421 ▲39 | 6.68 ▲2.42 | 115.76 ▲4.24 | 42.50 ▼7.39 |
Sold Out Badge for WooCommerce /wp-admin/options-general.php?page=wcsob | 1,474 | 7.87 | 139.99 | 41.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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 take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/sold-out-badge-for-woocommerce/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- 117× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/sold-out-badge-for-woocommerce/vendor/htmlburger/carbon-fields/templates/Container/user_meta.php:1
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/sold-out-badge-for-woocommerce/vendor/htmlburger/carbon-fields/core/Field/Oembed_Field.php:8
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/sold-out-badge-for-woocommerce/vendor/htmlburger/carbon-fields/core/Container/Condition/User_Capability_Condition.php:10
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/sold-out-badge-for-woocommerce/vendor/htmlburger/carbon-fields/core/Container/Theme_Options_Container.php:11
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/sold-out-badge-for-woocommerce/vendor/htmlburger/carbon-fields/templates/Container/post_meta.php:1
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/sold-out-badge-for-woocommerce/vendor/htmlburger/carbon-fields/core/Field/Date_Field.php:8
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/sold-out-badge-for-woocommerce/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php on line 35
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/sold-out-badge-for-woocommerce/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Format_Condition.php:10
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Fulfillable\\Translator\\Array_Translator' not found in wp-content/plugins/sold-out-badge-for-woocommerce/vendor/htmlburger/carbon-fields/core/Container/Fulfillable/Translator/Json_Translator.php:7
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/sold-out-badge-for-woocommerce/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Type_Condition.php:8
- > PHP Fatal error
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=wcsob
- > Console-api (warning) in wp-content/plugins/sold-out-badge-for-woocommerce/vendor/htmlburger/carbon-fields/build/classic/vendor.min.js?ver=3.6.0+48:54975
wp.compose.withState is deprecated since version 5.8. Please use wp.element.useState instead.
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: sold out, out of stock, badge, wcsob, woocommerce
sold-out-badge-for-woocommerce/sold-out-badge-for-woocommerce.php Passed 13 tests
The main file in "Sold Out Badge for WooCommerce" v. 4.4.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
52 characters long description:
Display a "Sold Out!" badge on out-of-stock products
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected32,298 lines of code in 416 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 167 | 7,078 | 10,872 | 15,944 |
PHP | 160 | 2,711 | 7,062 | 9,606 |
PO File | 29 | 909 | 1,124 | 2,449 |
CSS | 8 | 240 | 1,157 | 2,229 |
Sass | 49 | 365 | 3 | 1,868 |
JSON | 1 | 0 | 0 | 149 |
Markdown | 2 | 15 | 0 | 53 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 8.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 25 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 135 | |
▷ Abstract classes | 11 | 8.15% |
▷ Concrete classes | 124 | 91.85% |
▷ Final classes | 2 | 1.61% |
Methods | 973 | |
▷ Static methods | 144 | 14.80% |
▷ Public methods | 803 | 82.53% |
▷ Protected methods | 165 | 16.96% |
▷ Private methods | 5 | 0.51% |
Functions | 104 | |
▷ Named functions | 21 | 20.19% |
▷ Anonymous functions | 83 | 79.81% |
Constants | 33 | |
▷ Global constants | 8 | 24.24% |
▷ Class constants | 25 | 75.76% |
▷ Public constants | 25 | 100.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