Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼295.85ms] Passed 4 tests
Analyzing server-side resources used by Woocommerce Category and Products Accordion Panel
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.16 | 55.51 ▲2.70 |
Dashboard /wp-admin | 3.50 ▲0.10 | 32.50 ▼0.24 |
Posts /wp-admin/edit.php | 3.73 ▲0.09 | 39.02 ▼0.60 |
Add New Post /wp-admin/post-new.php | 6.98 ▲0.01 | 95.69 ▼1,179.58 |
Media Library /wp-admin/upload.php | 3.38 ▲0.08 | 24.73 ▼2.97 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_categoryaccordionpanel |
Browser metrics Passed 4 tests
A check of browser resources used by Woocommerce Category and Products Accordion Panel
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,889 ▲167 | 16.20 ▲0.59 | 9.33 ▲3.53 | 2.31 ▲0.05 |
Dashboard /wp-admin | 2,899 ▲41 | 6.23 ▲0.10 | 118.26 ▼14.10 | 155.25 ▼2.74 |
Posts /wp-admin/edit.php | 2,698 ▲4 | 3.23 ▼0.01 | 61.27 ▲1.02 | 143.01 ▲10.57 |
Add New Post /wp-admin/post-new.php | 1,668 ▲8 | 17.00 ▲0.69 | 398.26 ▼5.55 | 152.39 ▲0.12 |
Media Library /wp-admin/upload.php | 1,705 ▲7 | 5.55 ▲0.02 | 142.77 ▼5.38 | 177.84 ▼11.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 1 option in the database
- widget_categoryaccordionpanel
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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #17 (admin-add-widget.png), #18 (admin-list-shortcode.png), #19 (admin-add-shortcode.png)
accordion-panel-for-category-and-products/plugin.php 92% from 13 tests
The principal PHP file in "Woocommerce Category and Products Accordion Panel" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("accordion-panel-for-category-and-products.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,264 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 184 | 349 | 850 |
JavaScript | 2 | 16 | 2 | 170 |
PO File | 1 | 54 | 0 | 124 |
CSS | 2 | 9 | 12 | 120 |
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.23 |
Average class complexity | 10.33 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 1 | 33.33% |
▷ Concrete classes | 2 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 90.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 9.52% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 18 | 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
8 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/ac_open.png | 0.30KB | 0.19KB | ▼ 35.41% |
assets/images/ac_bottom.png | 0.28KB | 0.27KB | ▼ 5.54% |
assets/images/view.png | 1.80KB | 1.14KB | ▼ 36.27% |
assets/images/cart.png | 0.48KB | 0.47KB | ▼ 1.84% |
assets/images/searchicon.png | 0.80KB | 0.82KB | 0.00% |