72% wp-bottom-menu

Code Review | WP Bottom Menu

WordPress plugin WP Bottom Menu scored 72% from 54 tests.

About plugin

  • Plugin page: wp-bottom-menu
  • Plugin version: 2.2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Nov 11, 2020
  • Latest release: Mar 15, 2023
  • Number of updates: 36
  • Update frequency: every 23.7 days
  • Top authors: J4cob (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

20,000+ active / 104,400 total downloads

Benchmarks

Plugin footprint 83% from 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 gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▲2.54ms] Passed 4 tests

This is a short check of server-side resources used by WP Bottom Menu
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0650.42 ▲4.72
Dashboard /wp-admin3.32 ▲0.0246.73 ▼1.88
Posts /wp-admin/edit.php3.37 ▲0.0249.07 ▲4.96
Add New Post /wp-admin/post-new.php5.90 ▲0.0294.10 ▲6.03
Media Library /wp-admin/upload.php3.24 ▲0.0237.27 ▲2.37
WP Bottom Menu /wp-admin/options-general.php?page=wp-bottom-menu3.1929.69

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

WP Bottom Menu: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,963 ▲22813.24 ▼1.132.26 ▲0.3347.23 ▼1.01
Dashboard /wp-admin2,256 ▲715.77 ▲0.8896.29 ▼14.1440.83 ▼6.10
Posts /wp-admin/edit.php2,142 ▲562.10 ▲0.1039.71 ▲3.8434.20 ▲3.15
Add New Post /wp-admin/post-new.php1,576 ▲5523.33 ▲0.30647.75 ▼27.7866.91 ▲12.20
Media Library /wp-admin/upload.php1,444 ▲534.27 ▲0.04109.03 ▲9.0750.19 ▲6.62
WP Bottom Menu /wp-admin/options-general.php?page=wp-bottom-menu7892.0522.6125.60

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp-bottom-menu
    • > Warning in wp-includes/pluggable.php+1438
    Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)

SRP 0% 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 take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-bottom-menu/inc/customizer/customizer-repeater/inc/icons.php
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      Use of undefined constant WP_BOTTOM_MENU_DIR_PATH - assumed 'WP_BOTTOM_MENU_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-bottom-menu/inc/customizer/customizer-repeater/functions.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-bottom-menu/inc/customizer/customizer-repeater/inc/customizer.php:7
    • > PHP Fatal error
      require(): Failed opening required 'WP_BOTTOM_MENU_DIR_PATHinc/customizer/customizer-repeater/inc/customizer.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-bottom-menu/inc/customizer/customizer-repeater/functions.php on line 4
    • > PHP Warning
      require(WP_BOTTOM_MENU_DIR_PATHinc/customizer/customizer-repeater/inc/customizer.php): failed to open stream: No such file or directory in wp-content/plugins/wp-bottom-menu/inc/customizer/customizer-repeater/functions.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Donate link: Please fix this invalid URI: ""
The official readme.txt is a good inspiration

wp-bottom-menu/wp-bottom-menu.php 92% from 13 tests

This is the main PHP file of "WP Bottom Menu" version 2.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

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
No dangerous file extensions were detected7,415 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
CSS759202,673
SVG1002,671
PHP82521771,543
JavaScript611865528

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity50.60
▷ Minimum class complexity4.00
▷ Maximum class complexity103.00
Average method complexity10.31
▷ Minimum method complexity1.00
▷ Maximum method complexity63.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods28
▷ Static methods517.86%
▷ Public methods2175.00%
▷ Protected methods00.00%
▷ Private methods725.00%
Functions10
▷ Named functions550.00%
▷ Anonymous functions550.00%
Constants4
▷ Global constants4100.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
No PNG images were found in this plugin