Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼5.27ms] Passed 4 tests
An overview of server-side resources used by Accordion Categories
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.88 ▼1.41 |
Dashboard /wp-admin | 3.36 ▲0.06 | 46.78 ▼0.74 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 49.62 ▼1.46 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 84.84 ▼17.47 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 37.04 ▲4.16 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_accordion_categories_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Accordion Categories: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.66 ▼0.70 | 1.73 ▲0.13 | 40.95 ▲0.93 |
Dashboard /wp-admin | 2,206 ▲15 | 5.91 ▲1.02 | 102.96 ▼12.95 | 41.28 ▼2.89 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.98 ▼0.07 | 39.08 ▼2.36 | 36.30 ▼1.16 |
Add New Post /wp-admin/post-new.php | 1,549 ▲16 | 23.09 ▼0.09 | 668.04 ▲38.44 | 66.31 ▲15.12 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.18 ▼0.05 | 96.82 ▼8.08 | 42.14 ▼2.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- widget_accordion_categories_widget
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 items
- 7× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/accordion-categories/example/category-icon/common.php
- > /wp-content/plugins/accordion-categories/example/category-icon/category-icon.php
- > /wp-content/plugins/accordion-categories/example/category-icon/save_field_value.php
- > /wp-content/plugins/accordion-categories/example/category-icon/category_add_form_fields.php
- > /wp-content/plugins/accordion-categories/accordion-categories.php
- > /wp-content/plugins/accordion-categories/example/category-icon/category_edit_form_fields.php
- > /wp-content/plugins/accordion-categories/class-accordion-categories-widget.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
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 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions 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
There were no cyclomatic complexity issued detected
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
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-right.png | 1.10KB | 1.02KB | ▼ 7.02% |
css/images/arrow-down.png | 1.44KB | 1.36KB | ▼ 5.16% |