Benchmarks
Plugin footprint Passed 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.02MB] [CPU: ▼143.31ms] Passed 4 tests
Server-side resources used by Menubar Widgets
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 31.64 ▲8.80 |
Dashboard /wp-admin | 3.08 ▲0.03 | 40.69 ▼2.74 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 34.94 ▼5.18 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.00 | 85.92 ▼569.54 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 32.38 ▲4.22 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Menubar Widgets
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.87 ▲0.30 | 6.62 ▼1.25 | 51.07 ▼3.95 |
Dashboard /wp-admin | 2,970 ▲33 | 5.93 ▲0.00 | 134.80 ▼13.71 | 118.51 ▼0.49 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▲0.01 | 64.05 ▼0.54 | 91.11 ▲3.39 |
Add New Post /wp-admin/post-new.php | 1,498 ▼185 | 18.85 ▲0.29 | 366.69 ▲3.29 | 109.63 ▲4.09 |
Media Library /wp-admin/upload.php | 1,804 ▲56 | 5.01 ▲0.01 | 145.70 ▼4.25 | 118.20 ▼4.98 |
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
The plugin uninstalled successfully, without leaving any zombie files or tables
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
Good news, no errors were detected
SRP 50% 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
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/menubar-widgets/menubar-widgets.php:23
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/menubar-widgets/inc/Walker_Menubar_Widgets.class.php:3
- > PHP Fatal error
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)
No browser errors were detected
Optimizations
Plugin configuration Passed 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
4 plugin tags: widgets, widget, navigation, menu
menubar-widgets/menubar-widgets.php Passed 13 tests
The main PHP file in "Menubar Widgets" ver. 0.1.0 adds more information about the plugin and also serves as the entry point for this plugin
88 characters long description:
A standard wordpress plugin that helps you add multiple widgets to navigation menu item.
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
Good job! No executable or dangerous file extensions detected826 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 132 | 51 | 529 |
PO File | 2 | 72 | 74 | 223 |
CSS | 1 | 8 | 0 | 34 |
Markdown | 1 | 14 | 0 | 27 |
JavaScript | 1 | 3 | 1 | 13 |
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.33 |
Average class complexity | 38.00 |
▷ Minimum class complexity | 37.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 6.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 7 | |
▷ Global constants | 7 | 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
PNG images were not found in this plugin