Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼9.05ms] Passed 4 tests
An overview of server-side resources used by Custom Menu Icons
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.69 ▼1.47 |
Dashboard /wp-admin | 3.35 ▲0.00 | 45.13 ▼13.39 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 46.82 ▼2.07 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 83.39 ▼18.91 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.17 ▼1.83 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Custom Menu Icons
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲64 | 13.59 ▼0.79 | 1.91 ▲0.07 | 41.61 ▼1.33 |
Dashboard /wp-admin | 2,203 ▲15 | 5.79 ▼0.11 | 100.31 ▲1.40 | 39.92 ▼2.57 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▼0.03 | 40.63 ▲0.48 | 35.12 ▼2.38 |
Add New Post /wp-admin/post-new.php | 1,534 ▲1 | 22.70 ▼0.56 | 594.75 ▼53.52 | 52.35 ▲4.91 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.24 ▲0.09 | 97.37 ▼1.45 | 42.49 ▼3.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 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
4 plugin tags: icons for navbar, icons for menu, custom menu icons, menu icons
custom-menu-icons/custom-menu-icons.php Passed 13 tests
"Custom Menu Icons" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
85 characters long description:
Add icons from Font Awesome, Material Design and Dashicons to your menu items EASILY!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin9,854 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 51 | 2,530 | 9,003 |
CSS | 2 | 41 | 7 | 340 |
Sass | 2 | 27 | 1 | 298 |
PHP | 2 | 76 | 26 | 201 |
HTML | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin