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.01MB] [CPU: ▼307.99ms] Passed 4 tests
An overview of server-side resources used by SF Bootstrap Menu
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.08 | 59.29 ▲4.41 |
Dashboard /wp-admin | 3.42 ▲0.02 | 35.53 ▼52.79 |
Posts /wp-admin/edit.php | 3.65 ▲0.02 | 44.32 ▲1.09 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 99.34 ▼1,179.33 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 28.93 ▼0.91 |
Server storage [IO: ▲1.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_sfmenu |
Browser metrics Passed 4 tests
A check of browser resources used by SF Bootstrap Menu
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,878 ▲124 | 16.27 ▲0.63 | 11.28 ▲5.33 | 2.37 ▼0.60 |
Dashboard /wp-admin | 2,892 ▲31 | 6.18 ▲0.07 | 141.97 ▲6.81 | 173.84 ▲13.65 |
Posts /wp-admin/edit.php | 2,657 ▼27 | 3.24 ▼0.01 | 62.04 ▼26.02 | 135.63 ▼17.37 |
Add New Post /wp-admin/post-new.php | 1,661 ▼0 | 16.93 ▲1.05 | 403.99 ▼29.72 | 158.78 ▼22.36 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.51 ▲0.02 | 135.53 ▼8.76 | 231.70 ▲49.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 1 option in the database
- widget_sfmenu
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Walker_Page' not found in wp-content/plugins/sf-bootstrap-menu/sf-navwalker.php:3
- > PHP Fatal error
Uncaught Error: Class 'Walker_Page' not found in wp-content/plugins/sf-bootstrap-menu/sf-navwalker-horizontal.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sf-bootstrap-menu/sf-menu-widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sf-bootstrap-menu/sf-menu.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: top, menu, horizontal, list, pages...
sf-bootstrap-menu/sf-menu.php 92% from 13 tests
The main PHP file in "SF Bootstrap Menu" ver. 2.4.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("sf-bootstrap-menu.php" instead of "sf-menu.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,816 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 2 | 318 | 23 | 1,005 |
PHP | 4 | 145 | 99 | 621 |
CSS | 4 | 27 | 7 | 173 |
PO File | 1 | 0 | 0 | 15 |
JavaScript | 1 | 0 | 5 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 38.67 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 6.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected