Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▼144.47ms] 75% from 4 tests
A check of server-side resources used by LuckyWP ACF Menu Field
Please take the time to fix the following items
- CPU: Total CPU usage should be kept under 500.00ms (currently 616.26ms on /wp-admin/admin.php?page=lwpamf_plugins)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.94 ▲0.10 | 35.56 ▼0.01 |
Dashboard /wp-admin | 3.24 ▲0.18 | 47.36 ▲3.83 |
Posts /wp-admin/edit.php | 3.29 ▲0.18 | 47.42 ▲1.80 |
Add New Post /wp-admin/post-new.php | 5.54 ▲0.10 | 92.32 ▼576.17 |
Media Library /wp-admin/upload.php | 3.12 ▲0.11 | 34.40 ▼3.49 |
LuckyWP Plugins /wp-admin/admin.php?page=lwpamf_plugins | 3.39 | 616.26 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 1 new option
New WordPress options |
---|
lwpamf_rate_time |
Browser metrics Passed 4 tests
This is an overview of browser requirements for LuckyWP ACF Menu Field
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.97 ▲0.11 | 9.93 ▲0.51 | 45.73 ▼9.86 |
Dashboard /wp-admin | 2,967 ▲33 | 5.90 ▼0.01 | 134.15 ▼10.75 | 118.11 ▲11.57 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▼0.01 | 67.00 ▲1.21 | 86.31 ▼2.35 |
Add New Post /wp-admin/post-new.php | 1,876 ▲193 | 19.15 ▲0.33 | 383.63 ▲15.33 | 108.00 ▼10.23 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.01 ▼0.02 | 146.25 ▲4.64 | 116.05 ▼8.09 |
LuckyWP Plugins /wp-admin/admin.php?page=lwpamf_plugins | 2,305 | 2.65 | 61.81 | 83.47 |
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: 1 option
- lwpamf_rate_time
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'luckywp\\acfMenuField\\core\\base\\BaseObject' not found in wp-content/plugins/luckywp-acf-menu-field/admin/Plugins.php:9
- > PHP Fatal error
Uncaught Error: Class 'luckywp\\acfMenuField\\core\\base\\ServiceLocator' not found in wp-content/plugins/luckywp-acf-menu-field/core/base/BasePlugin.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function luckywp\\acfMenuField\\core\\base\\add_action() in wp-content/plugins/luckywp-acf-menu-field/core/base/BasePlugin.php:66
- > PHP Notice
Undefined variable: trimPrefix in wp-content/plugins/luckywp-acf-menu-field/core/pluginRate/notice.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/luckywp-acf-menu-field/core/pluginRate/notice.php:10
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/luckywp-acf-menu-field/plugin/AcfMenuField.php:10
- > PHP Fatal error
Uncaught Error: Class 'luckywp\\acfMenuField\\core\\base\\BaseObject' not found in wp-content/plugins/luckywp-acf-menu-field/core/wp/Options.php:8
- > PHP Fatal error
Uncaught Error: Class 'luckywp\\acfMenuField\\core\\base\\BaseObject' not found in wp-content/plugins/luckywp-acf-menu-field/core/pluginRate/PluginRate.php:8
- > PHP Fatal error
Uncaught Error: Class 'luckywp\\acfMenuField\\core\\base\\BaseObject' not found in wp-content/plugins/luckywp-acf-menu-field/admin/Admin.php:8
- > PHP Fatal error
Uncaught Error: Class 'luckywp\\acfMenuField\\core\\base\\BasePlugin' not found in wp-content/plugins/luckywp-acf-menu-field/plugin/Plugin.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: acf, menus, menu, nav menu, advanced custom fields
luckywp-acf-menu-field/luckywp-acf-menu-field.php Passed 13 tests
Analyzing the main PHP file in "LuckyWP ACF Menu Field" version 1.0
56 characters long description:
Add navigation menu field type to Advanced Custom Fields
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected915 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 166 | 280 | 913 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 9.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 2 | 13.33% |
▷ Concrete classes | 13 | 86.67% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 19 | 29.23% |
▷ Public methods | 58 | 89.23% |
▷ Protected methods | 7 | 10.77% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 7 | 100.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
PNG images were not found in this plugin