79% admin-menu-groups

Code Review | Admin Menu Groups

WordPress plugin Admin Menu Groups scored79%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: 6.3.1
  • 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

16 reviews

Install metrics

1,000+ active /3,416 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼2.71ms] Passed 4 tests

Server-side resources used by Admin Menu Groups
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.75 ▼2.17
Dashboard /wp-admin3.38 ▲0.0846.16 ▼0.00
Posts /wp-admin/edit.php3.49 ▲0.1449.56 ▲5.02
Add New Post /wp-admin/post-new.php5.98 ▲0.1086.48 ▼12.63
Media Library /wp-admin/upload.php3.30 ▲0.0837.47 ▲3.98
Admin Menu Groups /wp-admin/options-general.php?page=admin-menu-groups3.2537.71

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Admin Menu Groups
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲15113.27 ▼1.134.83 ▲2.7041.08 ▼3.05
Dashboard /wp-admin2,292 ▲1044.89 ▼1.1397.00 ▼7.8239.37 ▼1.09
Posts /wp-admin/edit.php2,166 ▲742.02 ▲0.0439.94 ▲3.0236.13 ▲1.92
Add New Post /wp-admin/post-new.php1,529 ▼1323.09 ▲4.75640.54 ▲39.2451.74 ▼5.01
Media Library /wp-admin/upload.php1,465 ▲744.19 ▲0.0295.74 ▼1.0441.40 ▼1.00
Admin Menu Groups /wp-admin/options-general.php?page=admin-menu-groups1,3412.2441.4838.47

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Please take a closer look at the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > 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_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

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

Optimizations

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: admin, menu

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

"Admin Menu Groups" version 0.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
31 characters long description:
Create groups in the admin menu

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,493 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript311516600
PHP321064494
CSS3218399

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions23
▷ Named functions23100.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
There are no PNG files in this plugin