Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.60MB] [CPU: ▼0.26ms] Passed 4 tests
A check of server-side resources used by Self-Hosted Google Fonts
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.11 | 39.62 ▲0.21 |
Dashboard /wp-admin | 4.10 ▲0.77 | 52.75 ▼0.34 |
Posts /wp-admin/edit.php | 4.19 ▲0.80 | 56.36 ▲6.78 |
Add New Post /wp-admin/post-new.php | 6.69 ▲0.77 | 90.38 ▼7.70 |
Media Library /wp-admin/upload.php | 4.03 ▲0.76 | 89.14 ▲53.97 |
Delete Cache /wp-admin/admin.php?page=sgf-delete-cache | 3.93 | 63.76 |
Self-Hosted Google Fonts /wp-admin/options-general.php?page=sgf_options | 4.34 | 72.79 |
Server storage [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: no files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Self-Hosted Google Fonts
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,853 ▲107 | 13.33 ▼1.22 | 1.93 ▲0.12 | 42.40 ▲1.17 |
Dashboard /wp-admin | 2,231 ▲40 | 5.90 ▲0.00 | 94.06 ▼7.22 | 41.87 ▼2.11 |
Posts /wp-admin/edit.php | 2,117 ▲25 | 2.07 ▲0.07 | 41.51 ▲3.77 | 34.80 ▲2.59 |
Add New Post /wp-admin/post-new.php | 1,537 ▲18 | 23.24 ▼0.18 | 669.37 ▲8.79 | 60.99 ▲8.45 |
Media Library /wp-admin/upload.php | 1,404 ▲13 | 4.30 ▲0.11 | 378.94 ▲283.27 | 189.80 ▲144.79 |
Delete Cache /wp-admin/admin.php?page=sgf-delete-cache | 674 | 1.14 | 13.67 | 45.58 |
Self-Hosted Google Fonts /wp-admin/options-general.php?page=sgf_options | 989 | 1.88 | 60.00 | 61.40 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 40× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/selfhost-google-fonts/vendor/cmb2/includes/helper-functions.php:127
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/selfhost-google-fonts/vendor/cmb2/includes/types/CMB2_Type_Taxonomy_Select.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/selfhost-google-fonts/vendor/cmb2/init.php:127
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Radio' not found in wp-content/plugins/selfhost-google-fonts/vendor/cmb2/includes/types/CMB2_Type_Multicheck.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Multicheck' not found in wp-content/plugins/selfhost-google-fonts/vendor/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck_Hierarchical.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/selfhost-google-fonts/vendor/cmb2/includes/types/CMB2_Type_Oembed.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Select' not found in wp-content/plugins/selfhost-google-fonts/vendor/cmb2/includes/types/CMB2_Type_Select_Timezone.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/selfhost-google-fonts/vendor/cmb2/includes/types/CMB2_Type_Colorpicker.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/selfhost-google-fonts/vendor/cmb2/includes/types/CMB2_Type_Textarea.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/selfhost-google-fonts/vendor/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: typography, gdpr, google fonts, dsgvo
selfhost-google-fonts/selfhost-google-fonts.php 92% from 13 tests
"Self-Hosted Google Fonts" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin55,061 lines of code in 239 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 13,787 | 17,868 | 31,576 |
PHP | 72 | 2,461 | 6,560 | 9,358 |
JSON | 5 | 0 | 0 | 5,955 |
CSS | 13 | 1,165 | 1,144 | 4,650 |
JavaScript | 9 | 374 | 470 | 1,527 |
Sass | 16 | 300 | 25 | 1,374 |
Markdown | 4 | 217 | 0 | 621 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 18.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 181.00 |
Average method complexity | 3.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 77 | |
▷ Abstract classes | 8 | 10.39% |
▷ Concrete classes | 69 | 89.61% |
▷ Final classes | 0 | 0.00% |
Methods | 597 | |
▷ Static methods | 91 | 15.24% |
▷ Public methods | 504 | 84.42% |
▷ Protected methods | 89 | 14.91% |
▷ Private methods | 4 | 0.67% |
Functions | 49 | |
▷ Named functions | 37 | 75.51% |
▷ Anonymous functions | 12 | 24.49% |
Constants | 14 | |
▷ Global constants | 4 | 28.57% |
▷ Class constants | 10 | 71.43% |
▷ Public constants | 10 | 100.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
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/cmb2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
vendor/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
vendor/cmb2/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
vendor/cmb2/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendor/cmb2/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |