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.20MB] [CPU: ▼2.33ms] Passed 4 tests
Server-side resources used by Ultimate Fonts
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.32 ▲0.86 | 38.83 ▼0.89 |
Dashboard /wp-admin | 3.74 ▲0.44 | 52.38 ▲1.58 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 48.01 ▼1.81 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 93.69 ▼8.18 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.43 ▲5.03 |
Ultimate Fonts /wp-admin/options-general.php?page=ultimate-fonts | 3.29 | 31.87 |
Server storage [IO: ▲0.09MB] [DB: ▲0.04MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
ultimate-fonts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Ultimate Fonts
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,909 ▲163 | 14.40 ▼0.34 | 2.09 ▲0.39 | 42.93 ▲2.92 |
Dashboard /wp-admin | 2,285 ▲94 | 4.84 ▼0.09 | 112.87 ▲4.81 | 41.60 ▲3.05 |
Posts /wp-admin/edit.php | 2,096 ▲28 | 2.00 ▼0.02 | 36.41 ▲0.93 | 31.84 ▼4.83 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.15 ▲0.14 | 614.96 ▼14.53 | 68.12 ▲20.85 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.21 ▲0.00 | 100.49 ▼6.42 | 44.20 ▲2.88 |
Ultimate Fonts /wp-admin/options-general.php?page=ultimate-fonts | 955 | 1.88 | 29.34 | 30.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.04MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- ultimate-fonts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 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
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/ultimate-fonts/inc/class-ultimate-fonts-font-family-control.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/ultimate-fonts/inc/config.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
- Screenshots: These screenshots lack descriptions #2, #3 in ultimate-fonts/assets to your readme.txt
ultimate-fonts/ultimate-fonts.php Passed 13 tests
The main PHP file in "Ultimate Fonts" ver. 1.0.5 adds more information about the plugin and also serves as the entry point for this plugin
40 characters long description:
Easily add Google Fonts to your website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,423 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 80 | 300 | 1,305 |
JavaScript | 2 | 22 | 21 | 66 |
CSS | 2 | 3 | 0 | 52 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 7.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 3 | 9.09% |
▷ Public methods | 23 | 69.70% |
▷ Protected methods | 10 | 30.30% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin