10% mhcode-wp-bootstrap-nav

Code Review | mhcode-wp-bootstrap-nav

WordPress plugin mhcode-wp-bootstrap-nav scored 10% from 54 tests.

About plugin

  • Plugin page: mhcode-wp-bootstr...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8
  • WordPress version: 5.8.1
  • First release: Jan 4, 2014
  • Latest release: Jan 4, 2014
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: mhshohel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 974 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • Install procedure had errors
    • > Warning in wp-content/plugins/mhcode-wp-bootstrap-nav/mhcode-wp-bootstrap-nav.php+17
    Declaration of mhcode_wp_bootstrap_nav::start_lvl(&$output, $depth) should be compatible with Walker_Nav_Menu::start_lvl(&$output, $depth = 0, $args = NULL)

Server metrics [RAM: ▼1.83MB] [CPU: ▼190.43ms] Passed 4 tests

An overview of server-side resources used by mhcode-wp-bootstrap-nav
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /1.80 ▼0.924.99 ▼14.70
Dashboard /wp-admin1.81 ▼1.245.15 ▼39.46
Posts /wp-admin/edit.php1.82 ▼1.295.23 ▼40.71
Add New Post /wp-admin/post-new.php1.82 ▼3.627.09 ▼654.23
Media Library /wp-admin/upload.php1.82 ▼1.195.22 ▼27.32

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for mhcode-wp-bootstrap-nav
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8415.91 ▼0.007.82 ▼0.2048.91 ▼2.81
Dashboard /wp-admin2,992 ▲615.95 ▲0.03142.79 ▼3.17115.51 ▲1.34
Posts /wp-admin/edit.php2,736 ▼32.69 ▲0.0167.78 ▼9.4892.19 ▼3.07
Add New Post /wp-admin/post-new.php1,683 ▼018.47 ▼0.35381.50 ▼14.89116.74 ▼0.76
Media Library /wp-admin/upload.php1,810 ▲35.03 ▲0.01163.91 ▼3.78124.03 ▲3.60

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/mhcode-wp-bootstrap-nav/mhcode-wp-bootstrap-nav.php+17
    Declaration of mhcode_wp_bootstrap_nav::start_lvl(&$output, $depth) should be compatible with Walker_Nav_Menu::start_lvl(&$output, $depth = 0, $args = NULL)

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/mhcode-wp-bootstrap-nav/mhcode-wp-bootstrap-nav.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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
Attributes that require attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === mhcode-wp-bootstrap-nav === )
Please take inspiration from this readme.txt

mhcode-wp-bootstrap-nav/mhcode-wp-bootstrap-nav.php Passed 13 tests

This is the main PHP file of "mhcode-wp-bootstrap-nav" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
66 characters long description:
This plugin speacially for wordpress bootstrap navigation menu bar

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 plugin86 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1351986

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity8.00
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin