Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼273.40ms] Passed 4 tests
This is a short check of server-side resources used by Menu Helper
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 37.94 ▲16.15 |
Dashboard /wp-admin | 3.06 ▲0.01 | 51.18 ▲8.76 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 44.14 ▼0.51 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 92.40 ▼1,095.30 |
Media Library /wp-admin/upload.php | 3.00 ▼0.00 | 30.78 ▼6.53 |
Menu Helper Info /wp-admin/options-general.php?page=menu-helper-info | 3.04 | 27.28 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Menu Helper
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,654 ▲48 | 15.96 ▲0.46 | 6.82 ▼0.96 | 43.94 ▼5.02 |
Dashboard /wp-admin | 2,938 ▲85 | 5.93 ▼0.12 | 138.29 ▼15.98 | 101.91 ▲0.11 |
Posts /wp-admin/edit.php | 2,711 ▲5 | 2.69 ▼0.01 | 63.47 ▲0.48 | 86.39 ▼0.75 |
Add New Post /wp-admin/post-new.php | 1,654 ▲173 | 18.46 ▼0.08 | 348.46 ▼35.73 | 108.95 ▼2.42 |
Media Library /wp-admin/upload.php | 1,777 ▲2 | 5.01 ▲0.04 | 143.69 ▼13.74 | 110.96 ▼2.44 |
Menu Helper Info /wp-admin/options-general.php?page=menu-helper-info | 1,281 | 2.28 | 56.27 | 84.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
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
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/menu-helper/menu-helper.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant MENU_HELPER_PLUGIN_URL - assumed 'MENU_HELPER_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/menu-helper/includes/description.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/menu-helper/includes/description.php:3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Contributors: Plugin contributors not specified
menu-helper/menu-helper.php Passed 13 tests
The entry point to "Menu Helper" version 1.1 is a PHP file that has certain tags in its header comment area
140 characters long description:
Users can use short-codes to retrieve different sub-menus. In Settings -> Menu Helper Info are described the options provided by the plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin348 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 62 | 58 | 348 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected