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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 42.20 ▲3.84 |
Dashboard /wp-admin | 3.32 ▲0.01 | 45.08 ▲0.79 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.00 ▲0.31 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 93.29 ▼1.58 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.60 ▲1.57 |
Admin Font /wp-admin/options-general.php?page=admin-custom-font-settings | 3.21 | 31.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲33 | 13.31 ▼1.54 | 1.83 ▲0.05 | 46.26 ▲1.45 |
Dashboard /wp-admin | 2,216 ▲7 | 5.86 ▲1.02 | 97.04 ▼0.33 | 40.48 ▲3.37 |
Posts /wp-admin/edit.php | 2,099 ▲7 | 2.04 ▲0.00 | 37.74 ▲1.06 | 39.28 ▲7.74 |
Add New Post /wp-admin/post-new.php | 1,523 ▼14 | 23.54 ▲0.20 | 595.15 ▼15.89 | 66.80 ▲5.68 |
Media Library /wp-admin/upload.php | 1,398 ▲13 | 4.17 ▼0.08 | 92.68 ▼7.42 | 41.44 ▼7.40 |
Admin Font /wp-admin/options-general.php?page=admin-custom-font-settings | 7,648 | 2.03 | 24.87 | 28.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: ""
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:
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
No complexity issues 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
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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
media/screenshot-6.png | 35.16KB | 22.90KB | ▼ 34.86% |
media/icon-256x256.png | 141.83KB | 53.77KB | ▼ 62.09% |
media/screenshot-7.png | 41.23KB | 27.83KB | ▼ 32.50% |
media/screenshot-9.png | 32.78KB | 21.45KB | ▼ 34.57% |
media/icon-128x128.png | 36.72KB | 15.21KB | ▼ 58.58% |