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.03MB] [CPU: ▼142.84ms] Passed 4 tests
This is a short check of server-side resources used by Ultimate WooCommerce Expandable Categories
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 34.72 ▲13.16 |
Dashboard /wp-admin | 3.09 ▲0.03 | 44.67 ▼7.96 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 36.31 ▼7.60 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 90.77 ▼554.28 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 33.78 ▼1.52 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Ultimate WooCommerce Expandable Categories
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,770 ▲174 | 15.99 ▲0.36 | 10.69 ▲0.40 | 44.44 ▼6.00 |
Dashboard /wp-admin | 3,040 ▲106 | 6.18 ▲0.06 | 146.48 ▼4.94 | 122.53 ▲5.58 |
Posts /wp-admin/edit.php | 2,840 ▲101 | 2.74 ▲0.02 | 65.57 ▼9.69 | 87.51 ▲8.47 |
Add New Post /wp-admin/post-new.php | 1,666 ▼12 | 21.53 ▲2.62 | 280.30 ▼149.34 | 101.86 ▼6.03 |
Media Library /wp-admin/upload.php | 1,831 ▲24 | 5.10 ▲0.07 | 136.13 ▼19.21 | 139.08 ▲20.52 |
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
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Plugin Name: Please specify the plugin name on the first line (
=== expandable-accordion-categories-ultimate-for-woocommerce ===
) - Tags: You are using too many tags: 16 tag instead of maximum 10
expandable-accordion-categories-ultimate-for-woocommerce/mgwoocommercecat.php 92% from 13 tests
The entry point to "Ultimate WooCommerce Expandable Categories" version 1.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("expandable-accordion-categories-ultimate-for-woocommerce.php" instead of "mgwoocommercecat.php")
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 detected189 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 32 | 36 | 79 |
JavaScript | 2 | 9 | 1 | 48 |
CSS | 1 | 0 | 0 | 38 |
PO File | 1 | 3 | 3 | 22 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 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 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.43MB with 0.28MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/plugin-wrapper.png | 25.39KB | 9.67KB | ▼ 61.91% |
img/hosting-wp-button.png | 26.03KB | 9.36KB | ▼ 64.05% |
assets/screenshot-1.png | 389.76KB | 128.10KB | ▼ 67.13% |