Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.72MB] [CPU: ▼0.26ms] Passed 4 tests
Analyzing server-side resources used by WP Admin UI
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 44.51 ▲0.10 |
Dashboard /wp-admin | 4.28 ▲0.97 | 56.76 ▲3.48 |
Posts /wp-admin/edit.php | 4.33 ▲0.97 | 58.55 ▲6.07 |
Add New Post /wp-admin/post-new.php | 6.79 ▲0.91 | 94.19 ▼7.94 |
Media Library /wp-admin/upload.php | 4.14 ▲0.91 | 45.44 ▲3.34 |
Global /wp-admin/admin.php?page=wpui-global | 4.08 | 39.01 |
Login /wp-admin/admin.php?page=wpui-login | 4.08 | 40.86 |
Dashboard /wp-admin/admin.php?page=wpui-dashboard | 4.08 | 36.56 |
Role Manager /wp-admin/admin.php?page=wpui-roles | 4.10 | 45.17 |
Admin Menu /wp-admin/admin.php?page=wpui-admin-menu | 4.10 | 42.74 |
Media Library /wp-admin/admin.php?page=wpui-library | 4.08 | 37.64 |
Import / Export / Reset /wp-admin/admin.php?page=wpui-import-export | 4.11 | 36.82 |
Admin Bar /wp-admin/admin.php?page=wpui-admin-bar | 4.08 | 36.67 |
Editor /wp-admin/admin.php?page=wpui-editor | 4.08 | 38.29 |
Profile /wp-admin/admin.php?page=wpui-profil | 4.11 | 43.38 |
Server storage [IO: ▲0.79MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 78 new files
Database: no new tables, 9 new options
New WordPress options |
---|
wpui_activated |
wpui_admin_menu_slug |
wpui_admin_menu_default_option_name |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
WP Admin UI: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,932 ▲171 | 14.78 ▲0.23 | 1.91 ▼0.08 | 43.79 ▼0.36 |
Dashboard /wp-admin | 2,335 ▲161 | 5.79 ▲0.18 | 92.47 ▼7.02 | 39.53 ▼5.25 |
Posts /wp-admin/edit.php | 2,243 ▲140 | 2.31 ▲0.31 | 47.50 ▲10.86 | 38.02 ▼1.71 |
Add New Post /wp-admin/post-new.php | 1,618 ▲90 | 23.37 ▲0.46 | 697.35 ▲17.27 | 69.71 ▲8.81 |
Media Library /wp-admin/upload.php | 1,540 ▲140 | 4.28 ▲0.07 | 106.06 ▼3.35 | 42.21 ▼4.40 |
Global /wp-admin/admin.php?page=wpui-global | 1,198 | 2.02 | 42.92 | 28.68 |
Login /wp-admin/admin.php?page=wpui-login | 1,032 | 1.83 | 32.03 | 31.35 |
Dashboard /wp-admin/admin.php?page=wpui-dashboard | 1,632 | 6.42 | 127.68 | 55.76 |
Role Manager /wp-admin/admin.php?page=wpui-roles | 4,236 | 1.87 | 36.50 | 45.88 |
Admin Menu /wp-admin/admin.php?page=wpui-admin-menu | 1,848 | 2.52 | 69.74 | 45.40 |
Media Library /wp-admin/admin.php?page=wpui-library | 1,087 | 2.09 | 41.74 | 29.01 |
Import / Export / Reset /wp-admin/admin.php?page=wpui-import-export | 1,033 | 1.93 | 36.60 | 30.76 |
Admin Bar /wp-admin/admin.php?page=wpui-admin-bar | 1,062 | 1.98 | 38.05 | 31.27 |
Editor /wp-admin/admin.php?page=wpui-editor | 1,195 | 1.83 | 31.58 | 31.12 |
Profile /wp-admin/admin.php?page=wpui-profil | 1,102 | 1.83 | 33.11 | 30.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- wpui_admin_menu_slug
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- wpui_admin_menu_default_option_name
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 32 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpui-editor
- > Notice in wp-content/plugins/wp-admin-ui/inc/admin/admin.php+3440
Trying to access array offset on value of type bool
- 24 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpui-admin-menu
- > Notice in wp-content/plugins/wp-admin-ui/inc/admin/admin.php+2697
Trying to access array offset on value of type null
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 16× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/wp-admin-ui/inc/functions/options-front.php
- > /wp-content/plugins/wp-admin-ui/inc/functions/options-admin-bar.php
- > /wp-content/plugins/wp-admin-ui/inc/admin/adminbar.php
- > /wp-content/plugins/wp-admin-ui/inc/functions/options-profil.php
- > /wp-content/plugins/wp-admin-ui/inc/functions/options-login.php
- > /wp-content/plugins/wp-admin-ui/inc/admin/ajax.php
- > /wp-content/plugins/wp-admin-ui/inc/admin/pointers.php
- > /wp-content/plugins/wp-admin-ui/inc/functions/options-editor.php
- > /wp-content/plugins/wp-admin-ui/inc/functions/options-media-library.php
- > /wp-content/plugins/wp-admin-ui/inc/functions/options-import-export.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: There are too many tags (12 tag instead of maximum 10)
- Requires at least: The plugin version is formatted incorrectly
wp-admin-ui/wpadminui.php 92% from 13 tests
The entry point to "WP Admin UI" version 1.9.10 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-admin-ui.php" instead of "wpadminui.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected12,118 lines of code in 54 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 1,114 | 319 | 6,486 |
CSS | 17 | 553 | 889 | 3,252 |
PO File | 2 | 894 | 1,092 | 1,660 |
Sass | 11 | 150 | 5 | 532 |
JavaScript | 7 | 15 | 3 | 188 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 323.00 |
▷ Minimum class complexity | 323.00 |
▷ Maximum class complexity | 323.00 |
Average method complexity | 2.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 153 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 153 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 220 | |
▷ Named functions | 217 | 98.64% |
▷ Anonymous functions | 3 | 1.36% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
2 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/seopress.png | 78.85KB | 24.55KB | ▼ 68.86% |
assets/img/logo-wpui.png | 6.37KB | 3.10KB | ▼ 51.36% |