10% foundation-top-bar-navigation-menu

Code Review | Foundation Top Bar Navigation Menu

WordPress plugin Foundation Top Bar Navigation Menu scored 10% from 54 tests.

About plugin

  • Plugin page: foundation-top-ba...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2.4
  • WordPress version: 6.3.1
  • First release: Sep 23, 2015
  • Latest release: Sep 23, 2015
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: jethin (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active / 4,504 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/foundation-top-bar-navigation-menu/foundation-top-bar-menu.php+80
    Declaration of ftb_menu::start_lvl(&$output, $depth = 0) should be compatible with Walker_Nav_Menu::start_lvl(&$output, $depth = 0, $args = NULL)

Server metrics [RAM: ▼1.96MB] [CPU: ▼53.89ms] Passed 4 tests

A check of server-side resources used by Foundation Top Bar Navigation Menu
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.433.98 ▼35.58
Dashboard /wp-admin2.05 ▼1.265.85 ▼44.05
Posts /wp-admin/edit.php2.05 ▼1.316.35 ▼46.37
Add New Post /wp-admin/post-new.php2.05 ▼3.846.51 ▼89.55
Media Library /wp-admin/upload.php2.05 ▼1.185.87 ▼27.61

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Foundation Top Bar Navigation Menu
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.24 ▼1.194.53 ▲2.7141.61 ▼2.29
Dashboard /wp-admin2,206 ▲185.90 ▲1.00111.56 ▼3.2340.20 ▼10.76
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0434.86 ▼5.1836.16 ▲0.22
Add New Post /wp-admin/post-new.php1,542 ▲2018.37 ▼4.97596.96 ▼44.2255.79 ▼8.11
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0398.21 ▼1.2542.03 ▲0.35

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/foundation-top-bar-navigation-menu/foundation-top-bar-menu.php+80
    Declaration of ftb_menu::start_lvl(&$output, $depth = 0) should be compatible with Walker_Nav_Menu::start_lvl(&$output, $depth = 0, $args = NULL)
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_nav_menu() in wp-content/plugins/foundation-top-bar-navigation-menu/foundation-top-bar-menu.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: foundation, menu, navigation, responsive, dropdown...

foundation-top-bar-navigation-menu/foundation-top-bar-menu.php 92% from 13 tests

The primary PHP file in "Foundation Top Bar Navigation Menu" version 1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("foundation-top-bar-navigation-menu.php" instead of "foundation-top-bar-menu.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,452 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2206153824
CSS3133519
PHP13711109

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity8.50
▷ Minimum class complexity5.00
▷ Maximum class complexity12.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin