10% fa-wp-admin-menu-icons

Code Review | FA WP Admin Menu Icons

WordPress plugin FA WP Admin Menu Icons scored10%from 54 tests.

About plugin

  • Plugin page: fa-wp-admin-menu-...
  • Plugin version: 8.1.1
  • PHP compatiblity: 8.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.4.1
  • WordPress version: 6.3.1
  • First release: Mar 25, 2017
  • Latest release: Dec 1, 2023
  • Number of updates: 62
  • Update frequency: every 39.4 days
  • Top authors: ptrkcsk (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /6,296 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.66 ▼8.25
Dashboard /wp-admin3.31 ▼0.0442.92 ▼17.74
Posts /wp-admin/edit.php3.36 ▲0.0046.67 ▼1.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.85 ▼9.93
Media Library /wp-admin/upload.php3.23 ▲0.0030.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.67 ▲0.401.68 ▼0.1338.61 ▼3.25
Dashboard /wp-admin2,192 ▲235.59 ▼0.0390.37 ▼12.4540.98 ▲3.62
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0138.59 ▼2.0636.87 ▲5.18
Add New Post /wp-admin/post-new.php1,529 ▲323.67 ▲0.23659.86 ▲28.4861.23 ▲4.40
Media Library /wp-admin/upload.php1,400 ▼04.18 ▼0.0294.28 ▼0.4742.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP97863295
JSON1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity3.29
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods20
▷ Static methods1155.00%
▷ Public methods1155.00%
▷ Protected methods00.00%
▷ Private methods945.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants150.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