84% fancy-admin-ui

Code Review | Fancy Admin UI

WordPress plugin Fancy Admin UI scored84%from 54 tests.

About plugin

  • Plugin page: fancy-admin-ui
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.0-4.9.1
  • WordPress version: 6.3.1
  • First release: Jul 3, 2014
  • Latest release: Dec 27, 2017
  • Number of updates: 28
  • Update frequency: every 45.5 days
  • Top authors: boborchard (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

3,000+ active /46,135 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.76ms] Passed 4 tests

Analyzing server-side resources used by Fancy Admin UI
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.07 ▼4.18
Dashboard /wp-admin3.33 ▲0.0252.05 ▲1.09
Posts /wp-admin/edit.php3.38 ▲0.0251.32 ▼6.72
Add New Post /wp-admin/post-new.php5.93 ▲0.0492.88 ▼5.21
Media Library /wp-admin/upload.php3.25 ▲0.0240.76 ▲2.37

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Fancy Admin UI
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲5513.42 ▼0.951.98 ▼0.0538.74 ▼6.98
Dashboard /wp-admin2,194 ▲66.07 ▲1.22104.72 ▼5.4336.49 ▼5.77
Posts /wp-admin/edit.php2,094 ▲22.30 ▲0.2941.31 ▼0.8930.72 ▼4.80
Add New Post /wp-admin/post-new.php1,539 ▲1623.14 ▼0.15678.62 ▲18.7835.42 ▼24.99
Media Library /wp-admin/upload.php1,379 ▼124.53 ▲0.3298.73 ▼3.4642.36 ▼7.10

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fancy-admin-ui/inc/fau_settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fancy-admin-ui/inc/fau_settings.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add an image for screenshot #1 (Screenshot of the basic admin panel)
  • Plugin Name: You should set the name of your plugin on the first line ( === fancy-admin-ui === )
The official readme.txt might help

fancy-admin-ui/fancy-admin-ui.php Passed 13 tests

"Fancy Admin UI" version 2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
94 characters long description:
Super clean, blue admin panel theme with the ability to change the color in General > Settings

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected467 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS3736297
PHP23621170

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.14
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.19MB with 0.13MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png190.65KB58.11KB▼ 69.52%