Benchmarks
Plugin footprint 83% from 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.48MB] [CPU: ▼1.86ms] Passed 4 tests
Analyzing server-side resources used by Material UI Menu Icons - Nifty Menu Options
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.96 ▲0.50 | 47.96 ▲0.10 |
Dashboard /wp-admin | 3.82 ▲0.51 | 54.96 ▲1.52 |
Posts /wp-admin/edit.php | 3.87 ▲0.51 | 58.40 ▲3.66 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.45 | 103.97 ▼7.71 |
Media Library /wp-admin/upload.php | 3.68 ▲0.45 | 41.89 ▼1.36 |
Server storage [IO: ▲0.58MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Material UI Menu Icons - Nifty Menu Options
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.24 ▼0.41 | 1.85 ▲0.11 | 40.17 ▼1.40 |
Dashboard /wp-admin | 2,189 ▲15 | 5.59 ▲0.06 | 96.60 ▲4.14 | 59.73 ▲20.93 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▲0.02 | 39.13 ▼0.28 | 34.44 ▼1.64 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 22.98 ▲0.01 | 614.63 ▼38.42 | 58.01 ▲4.22 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.32 ▲0.11 | 106.42 ▼7.98 | 45.03 ▼6.94 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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 trigger server-side errors or Error 500 responses:
- > PHP Warning
require_once(NIFTY_MENU_OPTION_TRAIL_PATHsrc/resources/class-menuiconpicker.php): failed to open stream: No such file or directory in wp-content/plugins/nifty-menu-options/src/classes/class-admin.php on line 23
- > PHP Fatal error
require_once(): Failed opening required 'NIFTY_MENU_OPTION_TRAIL_PATHsrc/resources/class-menuiconpicker.php' (include_path='.:/usr/share/php') in wp-content/plugins/nifty-menu-options/src/classes/class-admin.php on line 23
- > PHP Warning
require_once(NIFTY_MENU_OPTION_TRAIL_PATHsrc/template/icon-library.php): failed to open stream: No such file or directory in wp-content/plugins/nifty-menu-options/src/resources/class-menuiconpicker.php on line 23
- > PHP Warning
Use of undefined constant NIFTY_MENU_OPTION_TRAIL_PATH - assumed 'NIFTY_MENU_OPTION_TRAIL_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/nifty-menu-options/src/classes/class-admin.php on line 23
- > PHP Fatal error
require_once(): Failed opening required 'NIFTY_MENU_OPTION_TRAIL_PATHsrc/template/icon-library.php' (include_path='.:/usr/share/php') in wp-content/plugins/nifty-menu-options/src/resources/class-menuiconpicker.php on line 23
- > PHP Warning
Use of undefined constant NIFTY_MENU_OPTION_TRAIL_PATH - assumed 'NIFTY_MENU_OPTION_TRAIL_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/nifty-menu-options/src/resources/class-menuiconpicker.php on line 23
- > PHP Warning
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 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
5 plugin tags: nav menu, navigation, menu icons, menu, icons
nifty-menu-options/nifty-menu-options.php 92% from 13 tests
The main PHP script in "Material UI Menu Icons - Nifty Menu Options" version 1.0.2 is automatically included on every request by WordPress
The following require your attention:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
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,586 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 363 | 1,378 | 2,592 |
Sass | 7 | 12 | 8 | 395 |
CSS | 3 | 59 | 13 | 373 |
JavaScript | 2 | 36 | 39 | 183 |
Markdown | 3 | 21 | 0 | 34 |
JSON | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 13.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 3.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 9 | 69.23% |
Methods | 73 | |
▷ Static methods | 41 | 56.16% |
▷ Public methods | 66 | 90.41% |
▷ Protected methods | 1 | 1.37% |
▷ Private methods | 6 | 8.22% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 6 | 75.00% |
▷ Class constants | 2 | 25.00% |
▷ Public constants | 2 | 100.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
There are no PNG files in this plugin