89% admin-menu-groups

Code Review | Admin Menu Groups

WordPress plugin Admin Menu Groups scored 89% from 54 tests.

About plugin

  • Plugin page: admin-menu-groups
  • Plugin version: 0.1.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.7.2
  • WordPress version: 5.9.2
  • First release: Jul 12, 2019
  • Latest release: Jul 5, 2021
  • Number of updates: 12
  • Update frequency: every 60.3 days
  • Top authors: chaimchaikin (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

800+ active / 1,830 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.05MB] [CPU: ▼294.62ms] Passed 4 tests

An overview of server-side resources used by Admin Menu Groups
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.0855.01 ▲8.64
Dashboard /wp-admin3.50 ▲0.0833.58 ▼0.37
Posts /wp-admin/edit.php3.72 ▲0.0839.51 ▲0.56
Add New Post /wp-admin/post-new.php6.96 ▼0.0194.74 ▼1,175.34
Media Library /wp-admin/upload.php3.37 ▲0.0723.54 ▼3.33
Admin Menu Groups /wp-admin/options-general.php?page=admin-menu-groups3.3325.25

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Admin Menu Groups
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,873 ▲11915.89 ▲0.246.18 ▲0.323.12 ▲0.30
Dashboard /wp-admin2,963 ▲1056.15 ▼0.06120.47 ▼9.63157.67 ▼7.68
Posts /wp-admin/edit.php2,759 ▲683.24 ▲0.0163.90 ▼1.89136.05 ▼11.20
Add New Post /wp-admin/post-new.php1,675 ▼9818.50 ▼3.15385.63 ▼73.72153.88 ▼3.78
Media Library /wp-admin/upload.php1,764 ▲695.55 ▲0.06137.37 ▼8.62183.96 ▼0.90
Admin Menu Groups /wp-admin/options-general.php?page=admin-menu-groups1,7853.3172.09168.02

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
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=admin-menu-groups
    • > Notice in wp-content/plugins/admin-menu-groups/settings.php+75
    Trying to access array offset on value of type bool

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
Almost there! Just fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/admin-menu-groups/admin-menu.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-menu-groups/settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/admin-menu-groups/admin-menu.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side


Plugin configuration Passed 29 tests

readme.txt Passed 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
2 plugin tags: menu, admin

admin-menu-groups/admin-menu-groups.php Passed 13 tests

The entry point to "Admin Menu Groups" version 0.1.2 is a PHP file that has certain tags in its header comment area
31 characters long description:
Create groups in the admin menu

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,493 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
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 functions23100.00%
▷ Anonymous functions00.00%
▷ 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
PNG images were not found in this plugin