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: ▲0.00MB] [CPU: ▼6.18ms] Passed 4 tests
An overview of server-side resources used by Display Stock Status For Woocommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 40.86 ▼1.88 |
Dashboard /wp-admin | 3.31 ▲0.00 | 49.94 ▲0.94 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.34 ▼6.08 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.93 ▼17.71 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.32 ▲2.32 |
Server storage [IO: ▲1.40MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Display Stock Status For Woocommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲99 | 13.30 ▼1.09 | 1.84 ▲0.24 | 45.72 ▼2.40 |
Dashboard /wp-admin | 2,209 ▲18 | 5.88 ▲1.06 | 111.35 ▲9.81 | 42.86 ▼1.15 |
Posts /wp-admin/edit.php | 2,071 ▼18 | 2.00 ▼0.00 | 43.93 ▲2.61 | 35.24 ▼2.32 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.17 ▼0.06 | 639.82 ▲22.25 | 55.01 ▼7.93 |
Media Library /wp-admin/upload.php | 1,379 ▼12 | 4.20 ▼0.05 | 99.24 ▼3.62 | 40.63 ▼2.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/display-stock-status-for-woocommerce/main/backend/DSSFW_admin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/display-stock-status-for-woocommerce/main/resources/DSSFW-language.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/display-stock-status-for-woocommerce/main/resources/DSSFW-load-js-css.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/display-stock-status-for-woocommerce/main/frontend/DSSFW_front.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/display-stock-status-for-woocommerce/main/resources/DSSFW-installation-require.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Contributors: Contributors not specified
display-stock-status-for-woocommerce/display-stock-status-main.php 92% from 13 tests
Analyzing the main PHP file in "Display Stock Status For Woocommerce" version 1.0
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("display-stock-status-for-woocommerce.php" instead of "display-stock-status-main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected5,942 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 2 | 0 | 0 | 2,959 |
CSS | 4 | 713 | 11 | 2,358 |
PHP | 7 | 39 | 20 | 328 |
JavaScript | 1 | 55 | 146 | 297 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
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 | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
There are no PNG files in this plugin