94% admin-category-tree

Code Review | Admin Category Tree

WordPress plugin Admin Category Tree scored 94% from 54 tests.

About plugin

  • Plugin page: admin-category-tree
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.3-5.4.1
  • WordPress version: 5.9.2
  • First release: Jul 6, 2016
  • Latest release: May 20, 2020
  • Number of updates: 8
  • Update frequency: every 176.8 days
  • Top authors: nos3b3ar (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

1,000+ active / 7,880 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼288.38ms] Passed 4 tests

Analyzing server-side resources used by Admin Category Tree
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0257.91 ▲9.05
Dashboard /wp-admin3.42 ▲0.0134.55 ▲0.67
Posts /wp-admin/edit.php3.65 ▲0.0136.02 ▼2.31
Add New Post /wp-admin/post-new.php6.89 ▼0.0894.54 ▼1,151.32
Media Library /wp-admin/upload.php3.30 ▲0.0125.10 ▼0.55

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Admin Category Tree
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.90 ▲0.119.60 ▲2.633.06 ▲0.47
Dashboard /wp-admin2,888 ▲276.15 ▼0.01132.84 ▼3.83159.27 ▼2.92
Posts /wp-admin/edit.php2,694 ▼03.24 ▲0.0064.52 ▲0.89144.37 ▲0.70
Add New Post /wp-admin/post-new.php1,693 ▲119.61 ▼1.69387.68 ▼57.69161.52 ▲3.12
Media Library /wp-admin/upload.php1,695 ▼35.50 ▼0.02150.50 ▲9.34197.42 ▲14.54

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/admin-category-tree/admin-category-tree.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed: You can look at the official readme.txt

admin-category-tree/admin-category-tree.php Passed 13 tests

"Admin Category Tree" version 1.3.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
98 characters long description:
Changes the Admin Category-View (in all Post-Types) to an collapsed Tree-View with (+)/(-) buttons

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin93 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions150.00%
▷ Anonymous functions150.00%
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin