Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼1.34ms] Passed 4 tests
A check of server-side resources used by Flynsarmy Subcategory List Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 43.72 ▼2.00 |
Dashboard /wp-admin | 3.36 ▲0.05 | 52.89 ▼3.27 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 49.89 ▲4.38 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.05 | 94.17 ▼4.45 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 38.17 ▲4.78 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_flyncw_subcatwidget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Flynsarmy Subcategory List Widget: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.07 ▼0.28 | 1.86 ▼0.01 | 43.63 ▲3.05 |
Dashboard /wp-admin | 2,195 ▲18 | 5.59 ▼0.02 | 95.85 ▲4.99 | 40.93 ▼2.07 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.00 ▼0.03 | 34.01 ▼4.61 | 35.38 ▼1.95 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.21 ▲0.08 | 669.97 ▲55.35 | 44.13 ▼15.33 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.16 ▼0.02 | 97.79 ▼5.06 | 47.19 ▼1.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_flyncw_subcatwidget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/subcategory-list-widget/flyn-subcatlist-widget.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'Walker_Category_Checklist' not found in wp-content/plugins/subcategory-list-widget/includes/walker_named_category_checklist.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_list_categories() in wp-content/plugins/subcategory-list-widget/views/subcat-widget/frontend/widget.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/subcategory-list-widget/subcat-widget.php:8
- > PHP Fatal error
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 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Contributors: The plugin contributors field is missing
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Backend widget options), #2 (Example output)
subcategory-list-widget/flyn-subcatlist-widget.php 92% from 13 tests
The main PHP script in "Flynsarmy Subcategory List Widget" version 1.2.2 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("subcategory-list-widget.php" instead of "flyn-subcatlist-widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected260 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 39 | 135 | 260 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.17MB with 0.11MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 135.86KB | 47.47KB | ▼ 65.06% |
screenshot-2.png | 40.93KB | 17.59KB | ▼ 57.03% |