Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼141.76ms] Passed 4 tests
A check of server-side resources used by Accordion Categories
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.06 | 57.77 ▲32.91 |
Dashboard /wp-admin | 3.12 ▲0.05 | 32.80 ▼5.21 |
Posts /wp-admin/edit.php | 3.17 ▲0.06 | 50.62 ▲9.67 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.04 | 78.12 ▼576.16 |
Media Library /wp-admin/upload.php | 3.06 ▲0.06 | 27.78 ▲4.68 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_accordion_categories_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Accordion Categories
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,666 ▲65 | 15.03 ▼0.38 | 5.95 ▲0.70 | 87.43 ▲8.54 |
Dashboard /wp-admin | 2,930 ▲37 | 6.02 ▼0.02 | 119.53 ▼14.27 | 165.52 ▼8.66 |
Posts /wp-admin/edit.php | 2,740 ▼0 | 3.24 ▲0.02 | 66.74 ▼3.92 | 154.13 ▲7.68 |
Add New Post /wp-admin/post-new.php | 3,715 ▼29 | 19.11 ▼0.05 | 549.83 ▲96.52 | 185.54 ▲19.11 |
Media Library /wp-admin/upload.php | 1,749 ▼3 | 5.51 ▲0.03 | 157.98 ▼1.10 | 201.37 ▲3.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 1 option
- widget_accordion_categories_widget
Smoke tests 75% from 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 50% from 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
Please fix the following
- 7× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/accordion-categories/example/category-icon/category-icon.php
- > /wp-content/plugins/accordion-categories/example/category-icon/category_edit_form_fields.php
- > /wp-content/plugins/accordion-categories/example/category-icon/common.php
- > /wp-content/plugins/accordion-categories/class-accordion-categories-widget.php
- > /wp-content/plugins/accordion-categories/example/category-icon/category_add_form_fields.php
- > /wp-content/plugins/accordion-categories/example/category-icon/save_field_value.php
- > /wp-content/plugins/accordion-categories/accordion-categories.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: You are using too many tags: 11 tag instead of maximum 10
accordion-categories/accordion-categories.php Passed 13 tests
The primary PHP file in "Accordion Categories" version 1.2 is used by WordPress to initiate all plugin functionality
105 characters long description:
Accordion Categories is a Wordpress widget that allows you to display categories in the hierachical order
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected805 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 25 | 107 | 294 |
JavaScript | 1 | 4 | 21 | 278 |
CSS | 1 | 3 | 16 | 99 |
SVG | 2 | 0 | 2 | 82 |
Markdown | 1 | 30 | 0 | 52 |
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.19 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 4.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 14.29% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 32 | |
▷ Global constants | 6 | 18.75% |
▷ Class constants | 26 | 81.25% |
▷ Public constants | 26 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/arrow-down.png | 1.44KB | 1.36KB | ▼ 5.16% |
css/images/arrow-right.png | 1.10KB | 1.02KB | ▼ 7.02% |