93% admin-dropdown-categories

Code Review | Admin DropDown Categories

WordPress plugin Admin DropDown Categories scored 93% from 54 tests.

About plugin

  • Plugin page: admin-dropdown-ca...
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-3.4.2
  • WordPress version: 5.9.2
  • First release: Nov 1, 2012
  • Latest release: Nov 1, 2012
  • Number of updates: 8
  • Update frequency: every 0.1 days
  • Top authors: takumin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,809 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼295.18ms] Passed 4 tests

A check of server-side resources used by Admin DropDown Categories
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0356.14 ▲6.44
Dashboard /wp-admin3.43 ▲0.0333.21 ▼0.78
Posts /wp-admin/edit.php3.67 ▲0.0337.38 ▲1.21
Add New Post /wp-admin/post-new.php6.91 ▼0.0694.37 ▼1,181.10
Media Library /wp-admin/upload.php3.32 ▲0.0223.61 ▼0.06

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Admin DropDown Categories
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,765 ▲1115.85 ▼0.125.47 ▼0.502.49 ▼0.37
Dashboard /wp-admin2,894 ▲336.06 ▼0.10118.30 ▼20.13157.43 ▼4.68
Posts /wp-admin/edit.php2,690 ▼43.24 ▲0.0065.90 ▲0.86142.84 ▲0.24
Add New Post /wp-admin/post-new.php1,831 ▲17022.01 ▲5.20382.90 ▼30.08192.75 ▲35.59
Media Library /wp-admin/upload.php1,692 ▼65.53 ▲0.02144.56 ▼6.56182.84 ▼2.74

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/admin-dropdown-categories/admin_dropDown_categories.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === admin-dropdown-categories === )
  • Screenshots: Screenshot #1 (イメージ) image not found
Please take inspiration from this readme.txt

admin-dropdown-categories/admin_dropDown_categories.php 92% from 13 tests

The entry point to "Admin DropDown Categories" version 0.1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("admin-dropdown-categories.php" instead of "admin_dropDown_categories.php")

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
There were no executable files found in this plugin197 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PO File12120

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.47
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 functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.14MB with 0.08MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png138.34KB60.77KB▼ 56.07%