Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.58ms] Passed 4 tests
This is a short check of server-side resources used by Woocommerce Category and Products Accordion Panel
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 34.78 ▼8.46 |
Dashboard /wp-admin | 3.34 ▲0.04 | 45.77 ▼3.27 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 51.45 ▲4.66 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 91.09 ▼9.17 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.10 ▼1.43 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_categoryaccordionpanel |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Woocommerce Category and Products Accordion Panel: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,900 ▲165 | 13.66 ▼0.64 | 4.96 ▲3.12 | 37.89 ▼9.51 |
Dashboard /wp-admin | 2,216 ▲25 | 4.79 ▼1.12 | 100.54 ▼4.60 | 40.13 ▲2.20 |
Posts /wp-admin/edit.php | 2,099 ▲7 | 1.99 ▼0.00 | 39.61 ▼0.88 | 35.41 ▲1.60 |
Add New Post /wp-admin/post-new.php | 1,521 ▼8 | 22.83 ▼0.30 | 595.96 ▼40.30 | 51.44 ▼1.52 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.17 ▼0.08 | 94.36 ▼8.90 | 41.54 ▼3.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_categoryaccordionpanel
- can_compress_scripts
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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 just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #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
This is the main PHP file of "Woocommerce Category and Products Accordion Panel" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: It is recommended to name the main PHP file 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 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were 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
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
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/cart.png | 0.48KB | 0.47KB | ▼ 1.84% |
assets/images/view-more.png | 0.36KB | 0.33KB | ▼ 7.14% |
assets/images/ac_bottom.png | 0.28KB | 0.27KB | ▼ 5.54% |
assets/images/ac_close.png | 0.27KB | 0.17KB | ▼ 34.80% |
assets/images/view.png | 1.80KB | 1.14KB | ▼ 36.27% |