Benchmarks
Plugin footprint Passed 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.05MB] [CPU: ▼146.88ms] Passed 4 tests
This is a short check of server-side resources used by Mobile Navigation Menu
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.03 | 42.21 ▲5.47 |
Dashboard /wp-admin | 3.13 ▲0.07 | 45.85 ▼2.28 |
Posts /wp-admin/edit.php | 3.24 ▲0.13 | 54.14 ▲5.08 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.03 | 92.07 ▼592.43 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 37.10 ▲2.13 |
Mobile Navigation Menu /wp-admin/tools.php?page=mnm-menu-page | 3.05 | 40.18 |
Server storage [IO: ▲1.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Mobile Navigation Menu: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,115 ▲519 | 18.10 ▲2.21 | 14.72 ▲4.68 | 55.02 ▲3.56 |
Dashboard /wp-admin | 3,198 ▲267 | 8.11 ▲2.17 | 181.00 ▲24.79 | 120.92 ▼5.47 |
Posts /wp-admin/edit.php | 2,996 ▲257 | 4.38 ▲1.68 | 87.07 ▲16.73 | 91.24 ▼4.93 |
Add New Post /wp-admin/post-new.php | 1,711 ▲28 | 15.82 ▼0.34 | 401.56 ▼2.49 | 133.31 ▲16.13 |
Media Library /wp-admin/upload.php | 1,842 ▲32 | 4.93 ▼0.08 | 121.18 ▼28.90 | 130.46 ▲5.10 |
Mobile Navigation Menu /wp-admin/tools.php?page=mnm-menu-page | 2,602 | 4.62 | 129.97 | 127.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mobile-navigation-menu/includes/wp-head-footer.php:65
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
6 plugin tags: mobile, rwd, navbar, navigation, responsive...
mobile-navigation-menu/mobile-navigation-menu.php 92% from 13 tests
The entry point to "Mobile Navigation Menu" version 1.0.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- 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
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
No dangerous file extensions were detected4,690 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 12 | 32 | 2,759 |
JavaScript | 2 | 225 | 104 | 867 |
SVG | 1 | 0 | 0 | 685 |
PHP | 6 | 67 | 227 | 379 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.17 |
▷ 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 | 6 | |
▷ Static methods | 1 | 16.67% |
▷ Public methods | 3 | 50.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 50.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin