10% wp-dropdown-hierarchial-category-ui

Code Review | WP Dropdown Hierarchical Category UI

WordPress plugin WP Dropdown Hierarchical Category UI scored 10% from 54 tests.

About plugin

  • Plugin page: wp-dropdown-hiera...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.7.1
  • WordPress version: 5.8.1
  • First release: Sep 29, 2013
  • Latest release: Nov 9, 2013
  • Number of updates: 8
  • Update frequency: every 7.6 days
  • Top authors: kharisblank (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active / 2,857 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /1.74 ▼1.0910.62 ▼29.56
Dashboard /wp-admin1.76 ▼1.305.74 ▼42.87
Posts /wp-admin/edit.php1.76 ▼1.357.62 ▼56.76
Add New Post /wp-admin/post-new.php1.76 ▼3.677.41 ▼686.08
Media Library /wp-admin/upload.php1.76 ▼1.247.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,726 ▲13016.05 ▲0.4810.45 ▲1.0759.53 ▲5.71
Dashboard /wp-admin2,993 ▲625.91 ▼0.24155.15 ▼6.77126.20 ▼16.68
Posts /wp-admin/edit.php2,759 ▲202.72 ▲0.0182.39 ▲0.21101.28 ▼13.89
Add New Post /wp-admin/post-new.php1,617 ▼6618.87 ▲0.58439.95 ▲24.48122.17 ▼7.26
Media Library /wp-admin/upload.php1,830 ▲205.04 ▲0.00171.45 ▲3.32138.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

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.)
The official readme.txt might help

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:
LanguageFilesBlank linesComment linesLines of code
PHP19913122

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 code0.22
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
screenshot-2.png6.33KB4.36KB▼ 31.15%
screenshot-1.png9.70KB5.61KB▼ 42.14%
screenshot-3.png7.27KB4.61KB▼ 36.59%