Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼315.33ms] Passed 4 tests
An overview of server-side resources used by Sub Categories Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.06 | 56.58 ▲2.13 |
Dashboard /wp-admin | 3.47 ▲0.06 | 34.43 ▲0.55 |
Posts /wp-admin/edit.php | 3.70 ▲0.06 | 35.03 ▼3.01 |
Add New Post /wp-admin/post-new.php | 6.94 ▼0.04 | 93.50 ▼1,253.53 |
Media Library /wp-admin/upload.php | 3.35 ▲0.05 | 24.41 ▼5.34 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_sub_categories_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Sub Categories Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲41 | 16.19 ▲0.49 | 5.56 ▼1.51 | 2.41 ▼0.27 |
Dashboard /wp-admin | 2,888 ▲30 | 6.16 ▼0.00 | 130.49 ▼4.39 | 211.46 ▲47.31 |
Posts /wp-admin/edit.php | 2,688 ▼3 | 3.23 ▼0.00 | 63.73 ▲0.03 | 138.71 ▼9.95 |
Add New Post /wp-admin/post-new.php | 1,661 ▼91 | 16.82 ▼4.16 | 398.73 ▼67.62 | 164.66 ▼17.02 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.60 ▲0.08 | 152.09 ▲8.40 | 223.07 ▲16.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 1 option
- widget_sub_categories_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sub-categories-widget/sub-categories-widget.php:30
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: category, widget, list, sub-category
sub-categories-widget/sub-categories-widget.php Passed 13 tests
The entry point to "Sub Categories Widget" version 1.5.2 is a PHP file that has certain tags in its header comment area
58 characters long description:
This Widget lists the sub-categories for a given category.
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
Good job! No executable or dangerous file extensions detected144 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 29 | 25 | 144 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 37.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 10.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin