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
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼140.13ms] Passed 4 tests
This is a short check of server-side resources used by Improved badges for woocommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.12 | 40.06 ▲14.51 |
Dashboard /wp-admin | 3.06 ▲0.00 | 50.47 ▼0.29 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 49.30 ▼0.42 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 96.35 ▼554.71 |
Media Library /wp-admin/upload.php | 3.00 ▼0.01 | 39.43 ▼5.11 |
Essential Kit /wp-admin/edit.php?post_type=ibfw_product_label&page=ibfw_kit | 2.75 | 24.78 |
Add New /wp-admin/post-new.php?post_type=ibfw_product_label | 2.82 | 28.41 |
All Product Labels /wp-admin/edit.php?post_type=ibfw_product_label | 2.82 | 28.97 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Improved badges for woocommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,980 ▲398 | 17.83 ▲2.14 | 11.35 ▲3.07 | 53.14 ▼2.52 |
Dashboard /wp-admin | 2,973 ▲36 | 5.91 ▼0.10 | 145.82 ▼13.37 | 121.60 ▼8.78 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▲0.00 | 75.85 ▲5.80 | 96.16 ▲1.53 |
Add New Post /wp-admin/post-new.php | 1,683 ▲68 | 18.12 ▼3.35 | 412.15 ▲109.27 | 122.73 ▲5.22 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 4.77 ▼0.35 | 126.26 ▼28.02 | 127.91 ▼2.93 |
Essential Kit /wp-admin/edit.php?post_type=ibfw_product_label&page=ibfw_kit | 28 | 0.90 | 0.06 | 13.00 |
Add New /wp-admin/post-new.php?post_type=ibfw_product_label | 28 | 0.90 | 0.06 | 13.15 |
All Product Labels /wp-admin/edit.php?post_type=ibfw_product_label | 28 | 0.90 | 0.12 | 10.77 |
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 50% 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/improved-badges-for-woocommerce/oc-product-label.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/edit.php?post_type=ibfw_product_label&page=ibfw_kit
- > Network (severe)
wp-admin/edit.php?post_type=ibfw_product_label&page=ibfw_kit - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/post-new.php?post_type=ibfw_product_label
- > Network (severe)
wp-admin/post-new.php?post_type=ibfw_product_label - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- > GET request to /wp-admin/edit.php?post_type=ibfw_product_label
- > Network (severe)
wp-admin/edit.php?post_type=ibfw_product_label - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6, #7, #8 in improved-badges-for-woocommerce/assets to your readme.txt
- Contributors: Contributors not specified
improved-badges-for-woocommerce/oc-product-label.php 92% from 13 tests
This is the main PHP file of "Improved badges for woocommerce" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("improved-badges-for-woocommerce.php" instead of "oc-product-label.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected2,461 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 199 | 28 | 1,226 |
CSS | 2 | 48 | 43 | 780 |
JavaScript | 2 | 74 | 148 | 454 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 42.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 6.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.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 | 32 | |
▷ Static methods | 3 | 9.38% |
▷ Public methods | 32 | 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 | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
7 PNG files occupy 0.17MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/badge2.png | 33.90KB | 12.97KB | ▼ 61.75% |
includes/images/badge3.png | 37.72KB | 15.55KB | ▼ 58.77% |
includes/images/badge1.png | 16.75KB | 9.76KB | ▼ 41.76% |
includes/images/badge.png | 23.76KB | 9.51KB | ▼ 59.98% |
includes/images/review.png | 15.87KB | 11.90KB | ▼ 25.01% |