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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼292.04ms] Passed 4 tests
A check of server-side resources used by WooCommerce Show Attributes
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.18 | 54.67 ▲4.21 |
Dashboard /wp-admin | 3.52 ▲0.12 | 34.91 ▲1.06 |
Posts /wp-admin/edit.php | 3.76 ▲0.12 | 37.88 ▼0.86 |
Add New Post /wp-admin/post-new.php | 7.02 ▲0.02 | 99.01 ▼1,168.60 |
Media Library /wp-admin/upload.php | 3.41 ▲0.11 | 24.07 ▲0.25 |
Server storage [IO: ▲0.07MB] [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
Checking browser requirements for WooCommerce Show Attributes
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲42 | 15.89 ▲0.06 | 6.19 ▼0.23 | 2.54 ▼0.39 |
Dashboard /wp-admin | 2,895 ▲41 | 6.24 ▲0.16 | 118.04 ▼17.29 | 154.98 ▼7.21 |
Posts /wp-admin/edit.php | 2,694 ▲9 | 3.24 ▲0.00 | 64.31 ▼0.41 | 142.20 ▼4.06 |
Add New Post /wp-admin/post-new.php | 1,661 ▼0 | 17.13 ▲0.70 | 414.47 ▲16.53 | 155.54 ▼0.54 |
Media Library /wp-admin/upload.php | 1,701 ▲6 | 5.46 ▼0.13 | 142.33 ▲2.61 | 184.47 ▼3.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Tested up to: Invalid plugin version format
woocommerce-show-attributes/woocommerce-show-attributes.php 85% from 13 tests
This is the main PHP file of "WooCommerce Show Attributes" version 1.6.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
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
Success! There were no dangerous files found in this plugin858 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 151 | 184 | 690 |
PO File | 1 | 53 | 57 | 168 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 114.00 |
▷ Minimum class complexity | 114.00 |
▷ Maximum class complexity | 114.00 |
Average method complexity | 6.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.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 | 20 | |
▷ Static methods | 2 | 10.00% |
▷ Public methods | 17 | 85.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 15.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin