Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼277.17ms] Passed 4 tests
An overview of server-side resources used by In Stock Layered Nav for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.11 | 34.43 ▲16.04 |
Dashboard /wp-admin | 3.06 ▲0.00 | 43.99 ▲1.90 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 43.27 ▲1.55 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 88.41 ▼1,107.29 |
Media Library /wp-admin/upload.php | 3.00 ▼0.01 | 30.59 ▼4.85 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by In Stock Layered Nav for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,673 ▲67 | 15.68 ▼0.22 | 9.01 ▼0.50 | 45.41 ▼0.59 |
Dashboard /wp-admin | 2,930 ▲80 | 6.03 ▲0.22 | 136.51 ▼1.55 | 108.33 ▲0.20 |
Posts /wp-admin/edit.php | 2,703 ▼3 | 2.69 ▲0.01 | 75.82 ▲9.21 | 88.22 ▼12.43 |
Add New Post /wp-admin/post-new.php | 1,653 ▲2 | 18.90 ▲1.50 | 361.44 ▼12.65 | 107.93 ▲1.53 |
Media Library /wp-admin/upload.php | 1,772 ▼0 | 5.02 ▲0.00 | 150.44 ▲11.95 | 109.10 ▼11.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/in-stock-layered-nav-for-woocommerce/in-stock-layered-nav-for-woocommerce.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
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
4 plugin tags: stock, layered nav, faceted search, woocommerce
in-stock-layered-nav-for-woocommerce/in-stock-layered-nav-for-woocommerce.php Passed 13 tests
The entry point to "In Stock Layered Nav for WooCommerce" version 1.0 is a PHP file that has certain tags in its header comment area
98 characters long description:
Hides products that are out of stock for the size attribute when viewing that size's catalog page.
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
There were no executable files found in this plugin192 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 55 | 60 | 192 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.65 |
Average class complexity | 38.00 |
▷ Minimum class complexity | 38.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 5.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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 1 test
Image compression Passed 1 test
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected