89% glassmorphic-admin-ui

Code Review | Glassmorphic Admin UI

WordPress plugin Glassmorphic Admin UI scored89%from 54 tests.

About plugin

  • Plugin page: glassmorphic-admi...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2.2
  • WordPress version: 6.3.1
  • First release: Jun 14, 2023
  • Latest release: Jun 14, 2023
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: loopus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /92 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▲0.05ms] Passed 4 tests

A check of server-side resources used by Glassmorphic Admin UI
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0150.57 ▲10.23
Dashboard /wp-admin3.34 ▲0.0454.06 ▼0.09
Posts /wp-admin/edit.php3.39 ▲0.0348.83 ▼3.03
Add New Post /wp-admin/post-new.php5.94 ▲0.05103.78 ▲0.22
Media Library /wp-admin/upload.php3.26 ▲0.0341.58 ▲3.11
Glassmorphic Admin /wp-admin/options-general.php?page=gaui-settings3.2641.35

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Glassmorphic Admin UI
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,859 ▲9813.47 ▼0.921.84 ▼0.1646.79 ▲5.89
Dashboard /wp-admin2,258 ▲555.09 ▲0.22119.34 ▲13.2345.03 ▼0.68
Posts /wp-admin/edit.php2,149 ▲492.32 ▲0.2938.71 ▼0.4931.42 ▼4.78
Add New Post /wp-admin/post-new.php1,709 ▲17822.81 ▼0.44633.21 ▼6.3829.61 ▼21.08
Media Library /wp-admin/upload.php1,426 ▲234.33 ▼0.06104.06 ▲1.7743.72 ▼0.49
Glassmorphic Admin /wp-admin/options-general.php?page=gaui-settings1,6114.1185.3429.05

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 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
3 plugin tags: admin ui, admin theme, admin skin

glassmorphic-admin-ui/glassmorphicAdminUI.php 92% from 13 tests

This is the main PHP file of "Glassmorphic Admin UI" version 1.0.2, 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 ("glassmorphic-admin-ui.php" instead of "glassmorphicAdminUI.php")

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
Good job! No executable or dangerous file extensions detected1,262 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS21984895
PHP25313278
JavaScript49051
PO File112038

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity1.91
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.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 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.92MB with 0.55MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png310.53KB154.62KB▼ 50.21%
assets/screenshot-3.png111.00KB36.49KB▼ 67.12%
assets/screenshot-1.png517.26KB193.72KB▼ 62.55%