Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/wp-dropdown-hierarchial-category-ui/wp-dropdown-hierarchical-category-ui.php+234
Non-static method Hirarchical_Category_UI::plugin_init() should not be called statically
Server metrics [RAM: ▼1.89MB] [CPU: ▼204.23ms] Passed 4 tests
A check of server-side resources used by WP Dropdown Hierarchical Category UI
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.74 ▼1.09 | 10.62 ▼29.56 |
Dashboard /wp-admin | 1.76 ▼1.30 | 5.74 ▼42.87 |
Posts /wp-admin/edit.php | 1.76 ▼1.35 | 7.62 ▼56.76 |
Add New Post /wp-admin/post-new.php | 1.76 ▼3.67 | 7.41 ▼686.08 |
Media Library /wp-admin/upload.php | 1.76 ▼1.24 | 7.95 ▼31.21 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Dropdown Hierarchical Category UI
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,726 ▲130 | 16.05 ▲0.48 | 10.45 ▲1.07 | 59.53 ▲5.71 |
Dashboard /wp-admin | 2,993 ▲62 | 5.91 ▼0.24 | 155.15 ▼6.77 | 126.20 ▼16.68 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.72 ▲0.01 | 82.39 ▲0.21 | 101.28 ▼13.89 |
Add New Post /wp-admin/post-new.php | 1,617 ▼66 | 18.87 ▲0.58 | 439.95 ▲24.48 | 122.17 ▼7.26 |
Media Library /wp-admin/upload.php | 1,830 ▲20 | 5.04 ▲0.00 | 171.45 ▲3.32 | 138.73 ▲7.51 |
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
Please fix the following items
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/wp-dropdown-hierarchial-category-ui/wp-dropdown-hierarchical-category-ui.php+234
Non-static method Hirarchical_Category_UI::plugin_init() should not be called statically
Smoke tests 75% from 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-dropdown-hierarchial-category-ui/wp-dropdown-hierarchical-category-ui.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Contributors: The plugin contributors field is not present
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Plugin Settings.), #2 (Parent category / taxonomy is being expanded.)
wp-dropdown-hierarchial-category-ui/wp-dropdown-hierarchical-category-ui.php 85% from 13 tests
The primary PHP file in "WP Dropdown Hierarchical Category UI" version 1.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 194 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-dropdown-hierarchial-category-ui.php" instead of "wp-dropdown-hierarchical-category-ui.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin122 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 99 | 13 | 122 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 6.33KB | 4.36KB | ▼ 31.15% |
screenshot-1.png | 9.70KB | 5.61KB | ▼ 42.14% |
screenshot-3.png | 7.27KB | 4.61KB | ▼ 36.59% |