Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.06ms] Passed 4 tests
This is a short check of server-side resources used by Stock Dependencies for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.07 ▼5.29 |
Dashboard /wp-admin | 3.34 ▲0.03 | 46.11 ▼5.83 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.94 ▲2.68 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 84.10 ▼6.01 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.72 ▼3.09 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Stock Dependencies for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.72 ▼0.94 | 1.65 ▼0.31 | 42.21 ▼9.26 |
Dashboard /wp-admin | 2,206 ▲27 | 4.89 ▼0.94 | 95.20 ▼16.77 | 38.36 ▼6.63 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.01 ▼0.03 | 39.22 ▲1.65 | 33.95 ▼0.56 |
Add New Post /wp-admin/post-new.php | 1,534 ▲1 | 23.65 ▲0.19 | 670.16 ▼25.49 | 52.32 ▼3.46 |
Media Library /wp-admin/upload.php | 1,382 ▼9 | 4.23 ▲0.02 | 104.45 ▲2.64 | 45.64 ▲1.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function StockDependenciesForWooCommerce\\add_action() in wp-content/plugins/wc-stock-dependencies/wc-stock-dependencies.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: woocommerce, product, stock, dependencies, variation...
wc-stock-dependencies/wc-stock-dependencies.php 85% from 13 tests
The main PHP script in "Stock Dependencies for WooCommerce" version 1.5 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 163 characters long)
- Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "4.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,263 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 59 | 270 | 724 |
PHP | 2 | 68 | 316 | 493 |
CSS | 1 | 10 | 0 | 46 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 88.00 |
▷ Minimum class complexity | 88.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 4.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 25 | 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