Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.48ms] Passed 4 tests
This is a short check of server-side resources used by Menubar
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.92 ▲1.06 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.12 ▼10.25 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.73 ▲4.01 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 94.89 ▼4.29 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.29 ▲3.56 |
Menubar /wp-admin/themes.php?page=menubar/wpm-admin.php | 3.41 | 30.43 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 38 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
widget_menubar |
menubar |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Menubar: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.33 ▼1.05 | 2.07 ▲0.30 | 41.82 ▼5.66 |
Dashboard /wp-admin | 2,210 ▲19 | 5.90 ▼0.01 | 105.27 ▲7.83 | 43.32 ▲0.46 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.04 | 38.64 ▼0.19 | 34.67 ▲0.29 |
Add New Post /wp-admin/post-new.php | 1,517 ▼25 | 17.64 ▼0.52 | 600.00 ▼48.60 | 44.99 ▼4.76 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.18 ▼0.15 | 97.00 ▼2.25 | 42.35 ▼0.91 |
Menubar /wp-admin/themes.php?page=menubar/wpm-admin.php | 800 | 2.04 | 24.67 | 26.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 8 options
- menubar
- widget_recent-posts
- can_compress_scripts
- widget_menubar
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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 fix the following items
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined variable: action in wp-content/plugins/menubar/wpm-edit-menu.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/menubar/wpm-admin.php:289
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/menubar/wpm-main.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/menubar/wpm-main.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/menubar/wpm-db.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/menubar/wpm-edit-menu.php:10
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: suckerfish, navigation, superfish, menubar, menu
menubar/wpm-main.php 92% from 13 tests
The main file in "Menubar" v. 5.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("menubar.php" instead of "wpm-main.php")
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
There were no executable files found in this plugin3,753 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 560 | 56 | 2,237 |
CSS | 12 | 160 | 140 | 1,270 |
JavaScript | 1 | 18 | 14 | 246 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 90 | |
▷ Named functions | 90 | 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 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/Suckerfish_45/shadow.png | 0.18KB | 0.13KB | ▼ 29.12% |
templates/Suckerfish_45/sf-grey.png | 0.17KB | 0.25KB | 0.00% |
templates/Superfish/shadow.png | 1.66KB | 1.57KB | ▼ 5.24% |
templates/Superfish/searchbox.png | 0.48KB | 0.38KB | ▼ 20.12% |
templates/CSSmb_46/cssmb.png | 0.96KB | 0.88KB | ▼ 8.17% |