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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.80 ▼0.92 | 4.99 ▼14.70 |
Dashboard /wp-admin | 1.81 ▼1.24 | 5.15 ▼39.46 |
Posts /wp-admin/edit.php | 1.82 ▼1.29 | 5.23 ▼40.71 |
Add New Post /wp-admin/post-new.php | 1.82 ▼3.62 | 7.09 ▼654.23 |
Media Library /wp-admin/upload.php | 1.82 ▼1.19 | 5.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲84 | 15.91 ▼0.00 | 7.82 ▼0.20 | 48.91 ▼2.81 |
Dashboard /wp-admin | 2,992 ▲61 | 5.95 ▲0.03 | 142.79 ▼3.17 | 115.51 ▲1.34 |
Posts /wp-admin/edit.php | 2,736 ▼3 | 2.69 ▲0.01 | 67.78 ▼9.48 | 92.19 ▼3.07 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.47 ▼0.35 | 381.50 ▼14.89 | 116.74 ▼0.76 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.03 ▲0.01 | 163.91 ▼3.78 | 124.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
- > PHP Fatal error
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 ===
)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 35 | 19 | 86 |
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 code | 0.47 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 8.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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