74% av-sidebar-menu

Code Review | AV Sidebar Menu

WordPress plugin AV Sidebar Menu scored74%from 54 tests.

About plugin

  • Plugin page: av-sidebar-menu
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.4
  • WordPress version: 6.3.1
  • First release: Aug 28, 2015
  • Latest release: Jan 8, 2016
  • Number of updates: 11
  • Update frequency: every 12.2 days
  • Top authors: wevitt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,491 total downloads


Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.71MB] [CPU: ▼46.66ms] Passed 4 tests

An overview of server-side resources used by AV Sidebar Menu
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.28 ▼1.1814.95 ▼26.47
Dashboard /wp-admin2.29 ▼1.0111.01 ▼34.22
Posts /wp-admin/edit.php2.30 ▼1.0610.57 ▼39.47
Add New Post /wp-admin/post-new.php2.29 ▼3.599.06 ▼86.46
Media Library /wp-admin/upload.php2.29 ▼0.938.79 ▼26.39

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for AV Sidebar Menu
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7914.73 ▲0.151.89 ▲0.1243.56 ▼1.86
Dashboard /wp-admin2,206 ▲184.81 ▼0.0797.81 ▼5.5442.99 ▲2.12
Posts /wp-admin/edit.php2,086 ▼32.01 ▼0.0140.35 ▲2.0233.83 ▼3.50
Add New Post /wp-admin/post-new.php6,271 ▲4,74321.68 ▲3.46821.58 ▲221.3654.75 ▲4.07
Media Library /wp-admin/upload.php1,391 ▲34.33 ▲0.0196.49 ▼3.8543.34 ▼1.67

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method sidebarMenu::register_sidebar_menu_widget() should not be called statically
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_av_sidebar-menu
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/av-sidebar-menu/av-sidebar-menu.php:152

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)
There were no browser issues found


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === av-sidebar-menu === )
You can look at the official readme.txt

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

The main PHP file in "AV Sidebar Menu" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
124 characters long description:
Consente di aggiungere un menu personalizzato, ad ogni pagina o post da visualizzare come widget all'interno di una sidebar.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected141 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity8.50
▷ Minimum class complexity5.00
▷ Maximum class complexity12.00
Average method complexity2.36
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods218.18%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin