Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼275.56ms] Passed 4 tests
An overview of server-side resources used by WooCommerce Category Banner
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 40.98 ▲20.85 |
Dashboard /wp-admin | 3.06 ▲0.01 | 44.75 ▼7.36 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 34.05 ▼6.06 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 89.75 ▼1,081.13 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 30.62 ▼7.69 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for WooCommerce Category Banner
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,702 ▲96 | 16.24 ▲0.35 | 9.85 ▲2.45 | 44.73 ▼7.48 |
Dashboard /wp-admin | 2,956 ▲103 | 5.90 ▲0.09 | 140.88 ▲10.75 | 115.13 ▲15.11 |
Posts /wp-admin/edit.php | 2,706 ▼0 | 2.69 ▲0.02 | 65.23 ▲0.26 | 92.33 ▲12.16 |
Add New Post /wp-admin/post-new.php | 1,651 ▼17 | 17.41 ▼1.42 | 352.73 ▼15.91 | 100.96 ▼16.53 |
Media Library /wp-admin/upload.php | 1,772 ▼0 | 4.99 ▲0.01 | 142.24 ▼10.62 | 113.35 ▼6.31 |
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
Uninstall script ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: Add an image for screenshot #1 (Category edit page, upload your image here.)
woocommerce-category-banner/woocommerce-category-banner.php Passed 13 tests
The main PHP file in "WooCommerce Category Banner" ver. 1.1.2 adds more information about the plugin and also serves as the entry point for this plugin
138 characters long description:
Place a custom banner and link at the top of your product category pages. Easily update the image through your product category edit page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin176 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 45 | 35 | 128 |
JavaScript | 1 | 10 | 11 | 29 |
CSS | 1 | 3 | 0 | 19 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.69 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 6.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 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 1 test
Image compression Passed 1 test
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.26MB with 0.18MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 111.88KB | 34.76KB | ▼ 68.93% |
screenshot-1.png | 156.41KB | 52.86KB | ▼ 66.21% |