Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼140.27ms] Passed 4 tests
This is a short check of server-side resources used by Manually Reduce Stock for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.02 | 37.27 ▲2.08 |
Dashboard /wp-admin | 3.08 ▲0.03 | 45.61 ▼0.82 |
Posts /wp-admin/edit.php | 3.13 ▲0.03 | 46.33 ▲0.26 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 88.92 ▼560.85 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 33.75 ▲0.33 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Manually Reduce Stock for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,720 ▲124 | 15.94 ▲0.41 | 12.61 ▲2.76 | 45.29 ▼1.27 |
Dashboard /wp-admin | 2,984 ▲53 | 5.85 ▼0.26 | 143.61 ▼9.30 | 107.31 ▼1.38 |
Posts /wp-admin/edit.php | 2,756 ▲17 | 2.72 ▲0.00 | 62.33 ▼3.35 | 86.08 ▼1.50 |
Add New Post /wp-admin/post-new.php | 1,515 ▼66 | 18.59 ▲1.09 | 400.46 ▼16.83 | 101.31 ▼9.27 |
Media Library /wp-admin/upload.php | 1,824 ▲14 | 5.03 ▼0.01 | 150.96 ▲6.90 | 121.39 ▲11.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test
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 on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: reduce stock, woocommerce
manually-reduce-stock-for-woocommerce/manually-reduce-stock-for-woocommerce.php 85% from 13 tests
The primary PHP file in "Manually Reduce Stock for WooCommerce" version 1.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.4" instead of "4.0.0")
- Description: Please don't use more than 140 characters for the plugin description (currently 160 characters long)
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
Good job! No executable or dangerous file extensions detected147 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 82 | 122 | 110 |
JavaScript | 2 | 6 | 4 | 37 |
PHP code Passed 2 tests
Analyzing 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.41 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 13 | |
▷ Static methods | 5 | 38.46% |
▷ Public methods | 13 | 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 | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin