99% admin-custom-font

Code Review | Admin Custom Font

WordPress plugin Admin Custom Font scored 99% from 54 tests.

About plugin

  • Plugin page: admin-custom-font
  • Plugin version: 2.5.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9
  • WordPress version: 5.9.2
  • First release: Aug 22, 2016
  • Latest release: Feb 3, 2022
  • Number of updates: 102
  • Update frequency: every 19.5 days
  • Top authors: Darko A7 (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

1,000+ active / 14,791 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼297.58ms] Passed 4 tests

This is a short check of server-side resources used by Admin Custom Font
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.2756.86 ▲4.92
Dashboard /wp-admin3.62 ▲0.2133.32 ▲1.23
Posts /wp-admin/edit.php3.84 ▲0.2037.11 ▲0.94
Add New Post /wp-admin/post-new.php7.08 ▲0.1194.37 ▼1,191.84
Media Library /wp-admin/upload.php3.50 ▲0.2023.99 ▼0.66
Admin Font /wp-admin/options-general.php?page=admin-custom-font-settings3.4625.02

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 4 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Admin Custom Font
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,819 ▲7515.85 ▲0.196.36 ▼0.342.54 ▲0.41
Dashboard /wp-admin2,909 ▲486.11 ▼0.10118.03 ▼19.9164.69 ▼95.10
Posts /wp-admin/edit.php2,702 ▲143.24 ▼0.0063.89 ▼2.0859.75 ▼87.64
Add New Post /wp-admin/post-new.php1,670 ▲916.11 ▼0.29397.41 ▼26.29125.96 ▼32.52
Media Library /wp-admin/upload.php1,712 ▲175.54 ▲0.07144.70 ▲8.3080.76 ▼100.69
Admin Font /wp-admin/options-general.php?page=admin-custom-font-settings7,8802.3856.0256.60

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

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


Plugin configuration 97% from 29 tests

readme.txt 94% 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
Attributes that need to be fixed:
  • Donate link: Please fix this invalid url: ""
You can look at the official readme.txt

admin-custom-font/admin-custom-font.php Passed 13 tests

The primary PHP file in "Admin Custom Font" version 2.5.2 is used by WordPress to initiate all plugin functionality
83 characters long description:
Simple plugin to customize and replace system font(s) in WordPress Admin Dashboard.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin414 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PO File2242482

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.73
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions12100.00%
▷ Anonymous functions00.00%
▷ Global constants3100.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
13 PNG files occupy 1.15MB with 0.46MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
media/screenshot-4.png31.90KB21.21KB▼ 33.50%
media/screenshot-7.png41.23KB27.83KB▼ 32.50%
media/banner-772x250.png173.63KB61.71KB▼ 64.46%
media/screenshot-9.png32.78KB21.45KB▼ 34.57%
media/screenshot-6.png35.16KB22.90KB▼ 34.86%