Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.75MB] [CPU: ▼32.63ms] Passed 4 tests
Server-side resources used by WP Headless Menu Editor
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 40.31 ▼1.36 |
Dashboard /wp-admin | 3.19 ▼0.11 | 28.58 ▼21.23 |
Posts /wp-admin/edit.php | 3.19 ▼0.17 | 29.79 ▼20.25 |
Add New Post /wp-admin/post-new.php | 3.19 ▼2.70 | 27.80 ▼79.44 |
Media Library /wp-admin/upload.php | 3.19 ▼0.04 | 25.64 ▼9.58 |
Server storage [IO: ▲4.42MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 97 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WP Headless Menu Editor
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,921 ▲160 | 17.04 ▲2.69 | 1.65 ▲0.03 | 43.85 ▲2.44 |
Dashboard /wp-admin | 2,302 ▲122 | 7.77 ▲2.17 | 124.87 ▲34.98 | 55.45 ▲13.51 |
Posts /wp-admin/edit.php | 2,232 ▲132 | 4.85 ▲2.78 | 54.84 ▲13.28 | 52.35 ▲18.35 |
Add New Post /wp-admin/post-new.php | 1,711 ▲185 | 28.21 ▲4.82 | 607.23 ▼78.53 | 59.16 ▲6.49 |
Media Library /wp-admin/upload.php | 1,652 ▲252 | 6.96 ▲2.73 | 121.14 ▲16.27 | 54.85 ▲9.33 |
Uninstaller [IO: ▲4.42MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following itemsZombie WordPress options detected upon uninstall: 7 options
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
- The plugin did not uninstall successfully, leaving 97 files (4.42MB) in the plugin directory
- (new file) assets/banner-1544x500-rtl.png
- (new file) assets/banner-1544x500.png
- (new file) assets/banner-772x250.png
- (new file) assets/screenshot-1.png
- (new file) .gitignore
- (new file) assets/banner-772x250-rtl.png
- (new file) .eslintrc.json
- (new file) assets/icon-128x128.png
- (new file) assets/icon-256x256.png
- (new file) assets/icon.svg
- ...
- theysaidso_admin_options
- db_upgraded
- recovery_mode_email_last_sent
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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 fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-headless-menu-editor/includes/templates/menu_editor.template.php
- > /wp-content/plugins/wp-headless-menu-editor/includes/templates/menu_api.template.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant HME_PLUGIN_DIR_PATH - assumed 'HME_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-headless-menu-editor/includes/classes/menu_editor.class.php on line 7
- > PHP Fatal error
require(): Failed opening required 'HME_PLUGIN_DIR_PATH/includes/models/menu-item.model.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-headless-menu-editor/includes/classes/menu_editor.class.php on line 7
- > PHP Warning
require(HME_PLUGIN_DIR_PATH/includes/models/menu-item.model.php): failed to open stream: No such file or directory in wp-content/plugins/wp-headless-menu-editor/includes/classes/menu_editor.class.php on line 7
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: menu, editor, headless
wp-headless-menu-editor/wp-headless-menu-editor.php 92% from 13 tests
The principal PHP file in "WP Headless Menu Editor" v. 1.0.0.... is loaded by WordPress automatically on each request
It is important to fix the following:
- Version: The version number should only use digits and periods (ex. "1.0.3" instead of "1.0.0....")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin21,137 lines of code in 83 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 6 | 0 | 0 | 13,663 |
JavaScript | 52 | 353 | 74 | 3,814 |
SVG | 4 | 0 | 12 | 2,881 |
PHP | 7 | 82 | 62 | 448 |
Sass | 12 | 69 | 0 | 273 |
CSS | 1 | 2 | 313 | 40 |
Markdown | 1 | 8 | 0 | 18 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 30 | 81.08% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 18.92% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
8 PNG files occupy 0.47MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 58.27KB | 28.68KB | ▼ 50.78% |
assets/banner-1544x500-rtl.png | 105.20KB | 40.94KB | ▼ 61.09% |
assets/icon-256x256.png | 22.79KB | 8.86KB | ▼ 61.12% |
assets/banner-772x250.png | 40.28KB | 15.13KB | ▼ 62.43% |
assets/banner-1544x500.png | 105.20KB | 40.94KB | ▼ 61.09% |