84% advanced-sidebar-menu

Code Review | Advanced Sidebar Menu

WordPress plugin Advanced Sidebar Menu scored84%from 54 tests.

About plugin

  • Plugin page: advanced-sidebar-...
  • Plugin version: 9.4.1
  • PHP compatiblity: 7.2.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 9, 2011
  • Latest release: Nov 28, 2023
  • Number of updates: 378
  • Update frequency: every 11.7 days
  • Top authors: Mat Lipe (100%)

Code review

54 tests

User reviews

35 reviews

Install metrics

20,000+ active /1,159,140 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.51MB] [CPU: ▼2.89ms] Passed 4 tests

Analyzing server-side resources used by Advanced Sidebar Menu
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.01 ▲0.5442.66 ▲0.66
Dashboard /wp-admin3.82 ▲0.4754.69 ▼6.36
Posts /wp-admin/edit.php3.87 ▲0.5152.15 ▲7.26
Add New Post /wp-admin/post-new.php6.44 ▲0.5585.71 ▼6.75
Media Library /wp-admin/upload.php3.74 ▲0.5135.61 ▲0.91

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 50 new files
Database: no new tables, 8 new options
New WordPress options

Browser metrics Passed 4 tests

Advanced Sidebar Menu: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3214.77 ▲0.421.75 ▼0.0143.16 ▼0.50
Dashboard /wp-admin2,202 ▲225.71 ▲0.0497.19 ▲8.7745.29 ▲7.17
Posts /wp-admin/edit.php2,107 ▲72.06 ▲0.0640.59 ▲5.9834.59 ▼1.55
Add New Post /wp-admin/post-new.php6,201 ▲4,67526.32 ▲3.28833.98 ▲100.4065.23 ▲10.17
Media Library /wp-admin/upload.php1,404 ▲74.25 ▼0.03116.12 ▲19.7247.48 ▲6.30

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 18× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Trait 'Advanced_Sidebar_Menu\\Traits\\Singleton' not found in wp-content/plugins/advanced-sidebar-menu/src/Scripts.php on line 13
    • > PHP Fatal error
      Uncaught Error: Class 'Advanced_Sidebar_Menu\\Widget\\Widget_Abstract' not found in wp-content/plugins/advanced-sidebar-menu/src/Widget/Category.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Advanced_Sidebar_Menu\\Menus\\Page' not found in wp-content/plugins/advanced-sidebar-menu/views/page_list.php:17
    • > PHP Fatal error
      Trait 'Advanced_Sidebar_Menu\\Traits\\Singleton' not found in wp-content/plugins/advanced-sidebar-menu/src/Cache.php on line 12
    • > PHP Fatal error
      Uncaught Error: Class 'Advanced_Sidebar_Menu\\Menus\\Category' not found in wp-content/plugins/advanced-sidebar-menu/views/category_list.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Advanced_Sidebar_Menu\\Blocks\\Block_Abstract' not found in wp-content/plugins/advanced-sidebar-menu/src/Blocks/Categories.php:13
    • > PHP Fatal error
      Trait 'Advanced_Sidebar_Menu\\Traits\\Singleton' not found in wp-content/plugins/advanced-sidebar-menu/src/Debug.php on line 19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/advanced-sidebar-menu/advanced-sidebar-menu.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/advanced-sidebar-menu/src/Widget/Widget_Abstract.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Advanced_Sidebar_Menu\\Menus\\Menu_Abstract' not found in wp-content/plugins/advanced-sidebar-menu/src/Menus/Category.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can look at the official readme.txt

advanced-sidebar-menu/advanced-sidebar-menu.php Passed 13 tests

The primary PHP file in "Advanced Sidebar Menu" version 9.4.1 is used by WordPress to initiate all plugin functionality
85 characters long description:
Creates dynamic menus based on parent/child relationship of your pages or categories.

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
There were no executable files found in this plugin9,345 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
PO File3183345464

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity11.45
▷ Minimum class complexity1.00
▷ Maximum class complexity55.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
▷ Abstract classes316.67%
▷ Concrete classes1583.33%
▷ Final classes00.00%
▷ Static methods85.00%
▷ Public methods13383.12%
▷ Protected methods2716.88%
▷ Private methods00.00%
▷ Named functions225.00%
▷ Anonymous functions675.00%
▷ Global constants47.55%
▷ Class constants4992.45%
▷ Public constants49100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin