84% wp-bootstrap-navmenu

Code Review | WP Bootstrap Menu

WordPress plugin WP Bootstrap Menu scored84%from 54 tests.

About plugin

  • Plugin page: wp-bootstrap-navmenu
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Jan 13, 2013
  • Latest release: May 16, 2013
  • Number of updates: 16
  • Update frequency: every 7.7 days
  • Top authors: sajjadrad (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

300+ active /12,416 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.18ms] Passed 4 tests

An overview of server-side resources used by WP Bootstrap Menu
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.78 ▼5.95
Dashboard /wp-admin3.32 ▲0.0245.33 ▼1.99
Posts /wp-admin/edit.php3.37 ▲0.0152.20 ▲4.03
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.22 ▼8.74
Media Library /wp-admin/upload.php3.25 ▲0.0134.53 ▼4.04

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

WP Bootstrap Menu: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.20 ▼1.474.43 ▲2.7742.57 ▼0.11
Dashboard /wp-admin2,209 ▲185.91 ▲0.01106.03 ▲4.4938.90 ▼4.54
Posts /wp-admin/edit.php2,092 ▼01.99 ▼0.0439.85 ▲0.5435.23 ▲0.27
Add New Post /wp-admin/post-new.php1,533 ▼13423.17 ▲1.33610.37 ▼66.5455.88 ▲6.16
Media Library /wp-admin/upload.php1,388 ▼04.22 ▼0.0094.22 ▼9.4840.24 ▼4.21

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-bootstrap-navmenu/wp-bootstrap-navmenu.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === wp-bootstrap-navmenu === )
You can take inspiration from this readme.txt

wp-bootstrap-navmenu/wp-bootstrap-navmenu.php Passed 13 tests

The principal PHP file in "WP Bootstrap Menu" v. 1.1.1 is loaded by WordPress automatically on each request
54 characters long description:
Convert Wordpress nav menu to Twitter Bootstrap style.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin164 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP128164

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin