Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲6.57MB] [CPU: ▲31.56ms] 75% from 4 tests
Server-side resources used by Fonts Plugin | Google Fonts Typography
It is recommended to improve the following
- Extra RAM: Extra memory usage must be kept under 5MB (currently 6.57MB on /wp-admin/admin.php?page=fonts-plugin-typekit)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 10.15 ▲6.68 | 72.97 ▲31.70 |
Dashboard /wp-admin | 9.94 ▲6.63 | 80.12 ▲25.28 |
Posts /wp-admin/edit.php | 10.01 ▲6.65 | 83.13 ▲35.32 |
Add New Post /wp-admin/post-new.php | 12.19 ▲6.30 | 132.78 ▲35.87 |
Media Library /wp-admin/upload.php | 9.95 ▲6.72 | 70.29 ▲33.92 |
Fonts Plugin /wp-admin/admin.php?page=fonts-plugin | 9.92 | 59.02 |
Adobe Fonts /wp-admin/admin.php?page=fonts-plugin-typekit | 9.92 | 59.67 |
Server storage [IO: ▲0.87MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 65 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Fonts Plugin | Google Fonts Typography
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,926 ▲164 | 14.19 ▼0.04 | 1.67 ▼0.02 | 40.14 ▼5.74 |
Dashboard /wp-admin | 2,324 ▲147 | 5.69 ▼0.00 | 100.26 ▼2.35 | 46.20 ▲3.30 |
Posts /wp-admin/edit.php | 2,157 ▲57 | 2.03 ▲0.07 | 42.76 ▲3.92 | 38.08 ▲3.38 |
Add New Post /wp-admin/post-new.php | 6,418 ▲4,892 | 28.24 ▲5.22 | 940.27 ▲266.98 | 41.26 ▼15.75 |
Media Library /wp-admin/upload.php | 1,456 ▲56 | 4.23 ▲0.00 | 98.95 ▼3.36 | 42.80 ▼1.22 |
Fonts Plugin /wp-admin/admin.php?page=fonts-plugin | 892 | 1.65 | 26.63 | 39.14 |
Adobe Fonts /wp-admin/admin.php?page=fonts-plugin-typekit | 840 | 1.67 | 26.46 | 25.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
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
Even though no errors were found, this is by no means 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
The following issues need your attention
- 26× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/olympus-google-fonts/includes/class-ogf-notifications.php:260
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/olympus-google-fonts/class-olympus-google-fonts.php:46
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/olympus-google-fonts/admin/class-ogf-upload-fonts-screen.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/olympus-google-fonts/compatibility/thewordpressteam.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/olympus-google-fonts/includes/class-ogf-clear-cache.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/olympus-google-fonts/olympus-google-fonts.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/olympus-google-fonts/includes/class-ogf-reset.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/olympus-google-fonts/compatibility/themefreesia.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/olympus-google-fonts/compatibility/woocommerce.php:114
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/olympus-google-fonts/includes/customizer/settings.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
olympus-google-fonts/olympus-google-fonts.php Passed 13 tests
"Fonts Plugin | Google Fonts Typography" version 3.4.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
100 characters long description:
The easiest to use Google Fonts Plugin. No coding required. Optimized for Speed. 1000+ font choices.
Code Analysis Passed 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 detected12,561 lines of code in 54 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 7,422 |
PHP | 35 | 621 | 1,284 | 3,260 |
JavaScript | 13 | 166 | 140 | 1,055 |
CSS | 2 | 165 | 20 | 806 |
XML | 1 | 10 | 17 | 18 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 9.84 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 2.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 121 | |
▷ Static methods | 8 | 6.61% |
▷ Public methods | 112 | 92.56% |
▷ Protected methods | 7 | 5.79% |
▷ Private methods | 2 | 1.65% |
Functions | 44 | |
▷ Named functions | 44 | 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 Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 compressed PNG files occupy 0.07MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/fontsplugin-icon.png | 0.61KB | 0.81KB | 0.00% |
admin/fonts-plugin-quickstart-guide.png | 69.24KB | 74.41KB | 0.00% |
assets/images/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
assets/images/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |