Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼138.90ms] Passed 4 tests
This is a short check of server-side resources used by Advanced Custom Fields: Nav Menu Field
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 35.78 ▲13.12 |
Dashboard /wp-admin | 3.07 ▲0.01 | 50.71 ▲5.35 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 46.51 ▼2.02 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 88.69 ▼562.26 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 34.34 ▲3.32 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Advanced Custom Fields: Nav Menu Field: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,678 ▲82 | 15.95 ▲0.03 | 7.49 ▼0.48 | 49.92 ▲3.10 |
Dashboard /wp-admin | 2,967 ▲36 | 5.90 ▼0.00 | 150.89 ▲1.52 | 114.14 ▼2.29 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.68 ▼0.02 | 80.69 ▲9.10 | 93.16 ▼0.03 |
Add New Post /wp-admin/post-new.php | 1,500 ▼183 | 18.89 ▲0.07 | 377.60 ▼1.60 | 112.64 ▼8.63 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.00 ▼0.02 | 153.65 ▼7.67 | 125.39 ▼0.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
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
9 plugin tags: advanced custom fields, navigation, acf4, acf5, nav menu...
advanced-custom-fields-nav-menu-field/fz-acf-nav-menu.php 92% from 13 tests
The principal PHP file in "Advanced Custom Fields: Nav Menu Field" v. 2.0.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("advanced-custom-fields-nav-menu-field.php" instead of "fz-acf-nav-menu.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
No dangerous file extensions were detected270 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 63 | 120 | 270 |
PHP code Passed 2 tests
Analyzing 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.21 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 73.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 26.67% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG images were found in this plugin