Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.67ms] Passed 4 tests
Analyzing server-side resources used by My Bootstrap Menu
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 47.74 ▲6.66 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.41 ▼8.43 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.74 ▲1.79 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.54 ▼24.82 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.22 ▼3.23 |
Server storage [IO: ▲1.67MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 67 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for My Bootstrap Menu
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.42 ▲0.07 | 2.07 ▲0.45 | 43.90 ▲5.44 |
Dashboard /wp-admin | 2,198 ▲20 | 5.64 ▲0.02 | 97.32 ▼13.76 | 38.56 ▼8.98 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.01 ▼0.03 | 37.44 ▲2.03 | 34.11 ▼2.64 |
Add New Post /wp-admin/post-new.php | 1,526 ▼5 | 23.33 ▲0.68 | 634.00 ▼26.92 | 58.69 ▼1.03 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.22 ▲0.02 | 99.69 ▼4.46 | 44.51 ▼3.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/my-bootstrap-menu/assets/my-plugin-settings-helper/my-plugin-installer.php+104
array_keys() expects parameter 1 to be array, bool given
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
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
Everything seems fine, however this is by no means an exhaustive test
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 take a closer look at the following
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/my-bootstrap-menu/inc/nav-menu/nav-menu-walker.php:17
- > PHP Fatal error
require_once(): Failed opening required 'MY_BOOTSTRAP_MENU_PLUGIN_ASSETS/my-plugin-settings-helper/my-plugin-installer.php' (include_path='.:/usr/share/php') in wp-content/plugins/my-bootstrap-menu/my-bootstrap-menu-installer.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'My_Bootstrap_Menu_Plugin_Namespace\\My_Plugin_Settings_Base' not found in wp-content/plugins/my-bootstrap-menu/assets/my-plugin-settings-helper/inc/my-plugin-settings-public.php:14
- > PHP Fatal error
Uncaught Error: Class 'My_Bootstrap_Menu_Plugin_Namespace\\My_Plugin_Public' not found in wp-content/plugins/my-bootstrap-menu/inc/my-bootstrap-menu-public.php:15
- > PHP Warning
require_once(MY_BOOTSTRAP_MENU_PLUGIN_ASSETS/my-plugin-settings-helper/my-plugin-installer.php): failed to open stream: No such file or directory in wp-content/plugins/my-bootstrap-menu/my-bootstrap-menu-installer.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'My_Bootstrap_Menu_Plugin_Namespace\\My_Plugin_Settings_Base' not found in wp-content/plugins/my-bootstrap-menu/assets/my-plugin-settings-helper/inc/my-plugin-settings-admin.php:15
- > PHP Warning
Use of undefined constant MY_BOOTSTRAP_MENU_PLUGIN_ASSETS - assumed 'MY_BOOTSTRAP_MENU_PLUGIN_ASSETS' (this will throw an Error in a future version of PHP) in wp-content/plugins/my-bootstrap-menu/my-bootstrap-menu-installer.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'My_Bootstrap_Menu_Plugin_Namespace\\My_Plugin_Settings_Admin' not found in wp-content/plugins/my-bootstrap-menu/inc/my-bootstrap-menu-admin-settings.php:15
- > PHP Fatal error
Uncaught Error: Class 'My_Bootstrap_Menu_Plugin_Namespace\\My_Plugin_Admin' not found in wp-content/plugins/my-bootstrap-menu/inc/my-bootstrap-menu-admin.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function My_Bootstrap_Menu_Plugin_Namespace\\plugins_url() in wp-content/plugins/my-bootstrap-menu/my-bootstrap-menu.php:36
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (20 tag instead of maximum 10)
my-bootstrap-menu/my-bootstrap-menu.php Passed 13 tests
The main PHP script in "My Bootstrap Menu" version 1.2.1 is automatically included on every request by WordPress
96 characters long description:
Boostraps a menu using flexible and easy to use settings. Fully customizable for advanced users.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin13,791 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 10 | 23 | 139 | 8,478 |
PHP | 24 | 682 | 1,316 | 2,861 |
JavaScript | 9 | 680 | 381 | 1,852 |
SVG | 1 | 0 | 0 | 288 |
LESS | 2 | 40 | 67 | 174 |
Markdown | 1 | 34 | 0 | 138 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 13.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 2.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 10 | 40.00% |
▷ Concrete classes | 15 | 60.00% |
▷ Final classes | 0 | 0.00% |
Methods | 176 | |
▷ Static methods | 54 | 30.68% |
▷ Public methods | 121 | 68.75% |
▷ Protected methods | 1 | 0.57% |
▷ Private methods | 54 | 30.68% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 65 | |
▷ Global constants | 14 | 21.54% |
▷ Class constants | 51 | 78.46% |
▷ Public constants | 51 | 100.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
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/img/glyphicons-halflings-white.png | 8.57KB | 9.20KB | 0.00% |
inc/img/glyphicons-halflings.png | 12.50KB | 10.35KB | ▼ 17.19% |
inc/img/mcl_logo_small.png | 13.08KB | 7.78KB | ▼ 40.49% |