89% admin-custom-font

Code Review | Admin Custom Font

WordPress plugin Admin Custom Font scored 89% 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-6.2
  • WordPress version: 6.3.1
  • First release: Aug 22, 2016
  • Latest release: Mar 30, 2023
  • Number of updates: 108
  • Update frequency: every 22.3 days
  • Top authors: Darko A7 (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

1,000+ active / 18,765 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▲0.27ms] Passed 4 tests

Analyzing server-side resources used by Admin Custom Font
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.20 ▲3.84
Dashboard /wp-admin3.32 ▲0.0145.08 ▲0.79
Posts /wp-admin/edit.php3.37 ▲0.0146.00 ▲0.31
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.29 ▼1.58
Media Library /wp-admin/upload.php3.24 ▲0.0135.60 ▲1.57
Admin Font /wp-admin/options-general.php?page=admin-custom-font-settings3.2131.08

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, 10 new options
New WordPress options
admin_custom_font_version
admin_custom_font_size
admin_custom_font_family
theysaidso_admin_options
admin_custom_font_weight
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Admin Custom Font
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲3313.31 ▼1.541.83 ▲0.0546.26 ▲1.45
Dashboard /wp-admin2,216 ▲75.86 ▲1.0297.04 ▼0.3340.48 ▲3.37
Posts /wp-admin/edit.php2,099 ▲72.04 ▲0.0037.74 ▲1.0639.28 ▲7.74
Add New Post /wp-admin/post-new.php1,523 ▼1423.54 ▲0.20595.15 ▼15.8966.80 ▲5.68
Media Library /wp-admin/upload.php1,398 ▲134.17 ▼0.0892.68 ▼7.4241.44 ▼7.40
Admin Font /wp-admin/options-general.php?page=admin-custom-font-settings7,6482.0324.8728.94

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

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

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 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Donate link: Invalid url: ""
The official readme.txt might help

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

The main PHP script in "Admin Custom Font" version 2.5.2 is automatically included on every request by WordPress
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
Good job! No executable or dangerous file extensions detected414 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP110153329
PO File2242482
CSS3003

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues 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
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
13 PNG files occupy 1.15MB with 0.51MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
media/screenshot-6.png35.16KB22.90KB▼ 34.86%
media/icon-256x256.png141.83KB53.77KB▼ 62.09%
media/screenshot-7.png41.23KB27.83KB▼ 32.50%
media/screenshot-9.png32.78KB21.45KB▼ 34.57%
media/icon-128x128.png36.72KB15.21KB▼ 58.58%