Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼135.19ms] Passed 4 tests
An overview of server-side resources used by WooCommerce Availability Chart
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 37.74 ▲15.12 |
Dashboard /wp-admin | 3.08 ▲0.02 | 48.69 ▲6.18 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 49.95 ▲0.25 |
Add New Post /wp-admin/post-new.php | 5.43 ▲0.00 | 95.25 ▼560.00 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 49.24 ▲12.82 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce Availability Chart
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 16.22 ▲0.62 | 9.31 ▼0.76 | 50.66 ▼2.50 |
Dashboard /wp-admin | 2,967 ▲36 | 5.88 ▼0.07 | 145.80 ▼16.01 | 121.29 ▼2.88 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▲0.02 | 73.63 ▼3.11 | 92.68 ▲2.33 |
Add New Post /wp-admin/post-new.php | 1,683 ▲92 | 16.31 ▼2.50 | 412.53 ▲24.14 | 116.99 ▲7.74 |
Media Library /wp-admin/upload.php | 1,807 ▼6 | 5.01 ▲0.02 | 173.75 ▲16.00 | 135.29 ▲3.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
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)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: woocommerce availability chart, woocommerce stock, woocommerce, woocommerce chart, stock...
woocommerce-availability-chart/woocommerce-availability-chart.php Passed 13 tests
The principal PHP file in "WooCommerce Availability Chart" v. 1.0.2 is loaded by WordPress automatically on each request
121 characters long description:
WooCommerce Availability Chart displays a nice looking chart on variation product pages with the availability of products
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 detected243 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 91 | 228 | 221 |
CSS | 1 | 2 | 0 | 18 |
Markdown | 1 | 6 | 0 | 4 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 1 | 6.25% |
▷ Public methods | 16 | 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 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.18MB with 0.13MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 74.50KB | 23.55KB | ▼ 68.39% |
screenshot-1.png | 14.10KB | 2.83KB | ▼ 79.90% |
screenshot-2.png | 29.47KB | 8.09KB | ▼ 72.56% |
screenshot-3.png | 69.26KB | 19.53KB | ▼ 71.80% |