Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.38ms] Passed 4 tests
An overview of server-side resources used by Google-Fonts-Wrapper
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.89 ▲3.41 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.57 ▲3.21 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 44.03 ▼4.92 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 78.43 ▼18.15 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.42 ▲2.36 |
Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please fix the following
- Illegal file modification found: 2 files (0.00KB) outside of "wp-content/plugins/wrap-google-fonts/" and "wp-content/uploads/"
- (new file) wp-content/fonts/.empty
- (new file) wp-content/cache/.empty
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Google-Fonts-Wrapper
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲73 | 13.56 ▼1.05 | 1.73 ▲0.10 | 46.16 ▲5.33 |
Dashboard /wp-admin | 2,214 ▲22 | 5.79 ▲0.85 | 104.57 ▼4.11 | 42.13 ▼3.42 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.06 ▲0.02 | 37.03 ▲2.31 | 33.40 ▼4.94 |
Add New Post /wp-admin/post-new.php | 1,518 ▼1 | 17.50 ▼5.51 | 697.12 ▲49.29 | 53.03 ▼2.45 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.22 ▼0.01 | 101.96 ▲6.43 | 44.00 ▼0.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 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 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
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wrap-google-fonts/index.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: googlefonts, dsgvo, fonts, webfonts, privacy...
wrap-google-fonts/index.php 85% from 13 tests
The main PHP script in "Google-Fonts-Wrapper" version 0.4.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wrap-google-fonts.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected125 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 89 | 79 | 125 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 1 | 100.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 11 | 100.00% |
▷ Public methods | 6 | 54.55% |
▷ Protected methods | 5 | 45.45% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin