Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼306.32ms] Passed 4 tests
Server-side resources used by Button Menu Anywhere
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.05 | 56.98 ▲4.56 |
Dashboard /wp-admin | 3.44 ▲0.03 | 34.03 ▼6.69 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 37.85 ▼4.16 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 92.02 ▼1,215.05 |
Media Library /wp-admin/upload.php | 3.31 ▲0.02 | 25.12 ▲0.61 |
Button Menu /wp-admin/admin.php?page=qc_button_menu | 3.33 | 24.24 |
Duplicate Menu /wp-admin/admin.php?page=qc_duplicate_button_menu | 3.29 | 22.77 |
Server storage [IO: ▲2.99MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 40 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Button Menu Anywhere
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,965 ▲211 | 16.61 ▲0.99 | 9.81 ▲3.62 | 2.08 ▼0.04 |
Dashboard /wp-admin | 2,958 ▲104 | 6.92 ▲0.77 | 116.91 ▼15.77 | 169.44 ▲11.47 |
Posts /wp-admin/edit.php | 2,760 ▲66 | 3.55 ▲0.32 | 64.76 ▲0.48 | 170.77 ▲31.33 |
Add New Post /wp-admin/post-new.php | 1,708 ▼52 | 16.62 ▼0.83 | 418.99 ▲0.25 | 155.11 ▼3.39 |
Media Library /wp-admin/upload.php | 1,764 ▲72 | 5.90 ▲0.41 | 128.58 ▼17.29 | 199.98 ▲12.94 |
Button Menu /wp-admin/admin.php?page=qc_button_menu | 2,165 | 4.09 | 87.98 | 126.16 |
Duplicate Menu /wp-admin/admin.php?page=qc_duplicate_button_menu | 1,048 | 2.87 | 55.14 | 131.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/button-menu/admin/templates/help.php
- > /wp-content/plugins/button-menu/button-menu.php
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/button-menu/admin/settings/settings-page.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nav_menu() in wp-content/plugins/button-menu/templates/shortcode.php:13
- > PHP Notice
Undefined index: show_breadcrumb in wp-content/plugins/button-menu/templates/shortcode.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/button-menu/class-dna88-free-plugin-upgrade-notice.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/button-menu/admin/settings/templates/main-admin-menu.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: nav menu, menu, button menu, buttons, menu shortcode
button-menu/button-menu.php 85% from 13 tests
The primary PHP file in "Button Menu Anywhere" version 0.9.4 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Domain Path: The domain path points to an invalid folder, "/lang/" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin17,320 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 12 | 8,954 |
CSS | 15 | 3,543 | 60 | 7,909 |
PHP | 6 | 120 | 64 | 400 |
JavaScript | 2 | 11 | 12 | 57 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 10.67 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 1 | 4.55% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected