89% hide-admin-icons

Code Review | Hide Admin Icons

WordPress plugin Hide Admin Icons scored89%from 54 tests.

About plugin

  • Plugin page: hide-admin-icons
  • Plugin version: 1.6.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.1
  • WordPress version: 6.3.1
  • First release: Nov 9, 2008
  • Latest release: Feb 15, 2023
  • Number of updates: 57
  • Update frequency: every 91.5 days
  • Top authors: mendezki (63.16%)barryceelen (26.32%)functionsfile (14.04%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /6,490 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.69ms] Passed 4 tests

Server-side resources used by Hide Admin Icons
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.25 ▼4.28
Dashboard /wp-admin3.31 ▲0.0043.16 ▼2.79
Posts /wp-admin/edit.php3.36 ▲0.0045.72 ▼2.15
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.89 ▼1.53
Media Library /wp-admin/upload.php3.23 ▲0.0034.29 ▲0.89

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Hide Admin Icons
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.21 ▼0.141.74 ▲0.1445.28 ▲2.60
Dashboard /wp-admin2,208 ▲235.79 ▼0.02100.62 ▼3.2740.69 ▼3.87
Posts /wp-admin/edit.php2,094 ▲52.04 ▼0.0139.85 ▲0.2835.58 ▼3.17
Add New Post /wp-admin/post-new.php1,532 ▼1023.34 ▲4.98646.53 ▲37.0160.32 ▲10.10
Media Library /wp-admin/upload.php1,393 ▲54.18 ▼0.0194.07 ▼10.9943.56 ▼1.73

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: hide, menu, admin, header, icon...

hide-admin-icons/fufi-hide-admin-icons.php 85% from 13 tests

This is the main PHP file of "Hide Admin Icons" version 1.6.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("hide-admin-icons.php" instead of "fufi-hide-admin-icons.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin36 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS151522
PHP242714

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin