Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲4.68MB] [CPU: ▲25.28ms] 75% from 4 tests
An overview of server-side resources used by TK Google Fonts GDPR Compliant
It is recommended to improve the following
- CPU: Total CPU usage should be kept under 500.00ms (currently 1,725.41ms on /wp-admin/themes.php?page=tk-google-fonts-options)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.34 ▲4.88 | 70.64 ▲25.95 |
Dashboard /wp-admin | 8.36 ▲5.06 | 76.35 ▲26.79 |
Posts /wp-admin/edit.php | 8.36 ▲5.01 | 77.76 ▲30.63 |
Add New Post /wp-admin/post-new.php | 9.68 ▲3.79 | 112.43 ▲17.76 |
Media Library /wp-admin/upload.php | 8.36 ▲5.13 | 75.48 ▲40.96 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 8.36 | 56.61 |
TK Google Fonts /wp-admin/themes.php?page=tk-google-fonts-options | 8.37 | 1,725.41 |
Go Pro /wp-admin/themes.php?page=tk-google-fonts-optionss | 8.37 | 56.11 |
Server storage [IO: ▲3.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 205 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
fs_debug_mode |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
fs_active_plugins |
widget_recent-comments |
fs_accounts |
Browser metrics Passed 4 tests
A check of browser resources used by TK Google Fonts GDPR Compliant
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲86 | 14.43 ▲0.13 | 1.75 ▲0.12 | 44.83 ▲3.44 |
Dashboard /wp-admin | 2,255 ▲77 | 5.00 ▼0.69 | 103.30 ▼6.98 | 43.09 ▲2.89 |
Posts /wp-admin/edit.php | 2,159 ▲56 | 2.40 ▲0.46 | 38.89 ▼0.96 | 42.75 ▲5.40 |
Add New Post /wp-admin/post-new.php | 1,598 ▲71 | 24.53 ▲1.39 | 633.89 ▼49.34 | 31.02 ▼36.22 |
Media Library /wp-admin/upload.php | 1,449 ▲52 | 4.57 ▲0.37 | 114.08 ▲5.42 | 48.93 ▲2.60 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,156 | 2.12 | 29.65 | 31.00 |
TK Google Fonts /wp-admin/themes.php?page=tk-google-fonts-options | 1,043 | 2.07 | 30.50 | 65.88 |
Go Pro /wp-admin/themes.php?page=tk-google-fonts-optionss | 1,141 | 2.03 | 28.86 | 60.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/tk-google-fonts/includes/resources/freemius/includes/class-freemius.php+127
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 9 options in the database
- fs_active_plugins
- theysaidso_admin_options
- fs_accounts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- fs_debug_mode
- widget_recent-posts
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
The smoke test was a success, however most plugin functionality was not tested
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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: fonts, webfonts, google fonts
tk-google-fonts/tk-google-fonts.php Passed 13 tests
Analyzing the main PHP file in "TK Google Fonts GDPR Compliant" version 2.2.13
36 characters long description:
Google Fonts UI for WordPress Themes
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected10,268 lines of code in 151 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 123 | 1,419 | 747 | 8,295 |
JavaScript | 11 | 119 | 94 | 1,670 |
CSS | 16 | 49 | 3 | 294 |
JSON | 1 | 0 | 0 | 9 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 84.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 53 | |
▷ Abstract classes | 2 | 3.77% |
▷ Concrete classes | 51 | 96.23% |
▷ Final classes | 0 | 0.00% |
Methods | 1,280 | |
▷ Static methods | 199 | 15.55% |
▷ Public methods | 880 | 68.75% |
▷ Protected methods | 17 | 1.33% |
▷ Private methods | 383 | 29.92% |
Functions | 123 | |
▷ Named functions | 123 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 146 | |
▷ Global constants | 99 | 67.81% |
▷ Class constants | 47 | 32.19% |
▷ Public constants | 47 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.93MB with 0.59MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/resources/font-select/images/fs-sprite.png | 1.07KB | 0.18KB | ▼ 82.82% |
includes/admin/media/gdpr-thumbnail.png | 843.49KB | 268.90KB | ▼ 68.12% |
includes/resources/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
includes/admin/media/choose-bundle.png | 67.96KB | 16.06KB | ▼ 76.36% |
includes/resources/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |