Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.27 | 56.86 ▲4.92 |
Dashboard /wp-admin | 3.62 ▲0.21 | 33.32 ▲1.23 |
Posts /wp-admin/edit.php | 3.84 ▲0.20 | 37.11 ▲0.94 |
Add New Post /wp-admin/post-new.php | 7.08 ▲0.11 | 94.37 ▼1,191.84 |
Media Library /wp-admin/upload.php | 3.50 ▲0.20 | 23.99 ▼0.66 |
Admin Font /wp-admin/options-general.php?page=admin-custom-font-settings | 3.46 | 25.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 |
---|
admin_custom_font_version |
admin_custom_font_family |
admin_custom_font_weight |
admin_custom_font_size |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Admin Custom Font
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,819 ▲75 | 15.85 ▲0.19 | 6.36 ▼0.34 | 2.54 ▲0.41 |
Dashboard /wp-admin | 2,909 ▲48 | 6.11 ▼0.10 | 118.03 ▼19.91 | 64.69 ▼95.10 |
Posts /wp-admin/edit.php | 2,702 ▲14 | 3.24 ▼0.00 | 63.89 ▼2.08 | 59.75 ▼87.64 |
Add New Post /wp-admin/post-new.php | 1,670 ▲9 | 16.11 ▼0.29 | 397.41 ▼26.29 | 125.96 ▼32.52 |
Media Library /wp-admin/upload.php | 1,712 ▲17 | 5.54 ▲0.07 | 144.70 ▲8.30 | 80.76 ▼100.69 |
Admin Font /wp-admin/options-general.php?page=admin-custom-font-settings | 7,880 | 2.38 | 56.02 | 56.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
Optimizations
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: ""
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 101 | 53 | 329 |
PO File | 2 | 24 | 24 | 82 |
CSS | 3 | 0 | 0 | 3 |
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 code | 0.73 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
media/screenshot-4.png | 31.90KB | 21.21KB | ▼ 33.50% |
media/screenshot-7.png | 41.23KB | 27.83KB | ▼ 32.50% |
media/banner-772x250.png | 173.63KB | 61.71KB | ▼ 64.46% |
media/screenshot-9.png | 32.78KB | 21.45KB | ▼ 34.57% |
media/screenshot-6.png | 35.16KB | 22.90KB | ▼ 34.86% |