Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Parse error in wp-content/plugins/fa-wp-admin-menu-icons/src/AdminNotice.php+12
syntax error, unexpected 'public' (T_PUBLIC), expecting variable (T_VARIABLE)
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.88ms] Passed 4 tests
Analyzing server-side resources used by FA WP Admin Menu Icons
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 33.66 ▼8.25 |
Dashboard /wp-admin | 3.31 ▼0.04 | 42.92 ▼17.74 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.67 ▼1.69 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.85 ▼9.93 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 30.57 ▼3.58 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for FA WP Admin Menu Icons
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.67 ▲0.40 | 1.68 ▼0.13 | 38.61 ▼3.25 |
Dashboard /wp-admin | 2,192 ▲23 | 5.59 ▼0.03 | 90.37 ▼12.45 | 40.98 ▲3.62 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▼0.01 | 38.59 ▼2.06 | 36.87 ▲5.18 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.67 ▲0.23 | 659.86 ▲28.48 | 61.23 ▲4.40 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.18 ▼0.02 | 94.28 ▼0.47 | 42.57 ▲0.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 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 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
The following issues need your attention
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Parse error
syntax error, unexpected 'public' (T_PUBLIC), expecting variable (T_VARIABLE) in wp-content/plugins/fa-wp-admin-menu-icons/src/AdminNotice.php on line 12
- > PHP Parse error
syntax error, unexpected 'public' (T_PUBLIC), expecting variable (T_VARIABLE) in wp-content/plugins/fa-wp-admin-menu-icons/src/AdminNotice.php on line 12
- > PHP Parse error
syntax error, unexpected 'private' (T_PRIVATE), expecting variable (T_VARIABLE) in wp-content/plugins/fa-wp-admin-menu-icons/src/Icon.php on line 16
- > PHP Parse error
syntax error, unexpected 'public' (T_PUBLIC), expecting variable (T_VARIABLE) in wp-content/plugins/fa-wp-admin-menu-icons/src/AdminNotice.php on line 12
- > PHP Parse error
syntax error, unexpected 'public' (T_PUBLIC), expecting variable (T_VARIABLE) in wp-content/plugins/fa-wp-admin-menu-icons/src/AdminNotice.php on line 12
- > PHP Parse error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: custom, fontawesome, icon, icons
fa-wp-admin-menu-icons/fa-wp-admin-menu-icons.php Passed 13 tests
"FA WP Admin Menu Icons" version 8.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
67 characters long description:
Use Font Awesome icons for custom post types and custom menu pages.
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
Everything looks great! No dangerous files found in this plugin296 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 78 | 63 | 295 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 3.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 11 | 55.00% |
▷ Public methods | 11 | 55.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 45.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 1 | 50.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
PNG images were not found in this plugin