Benchmarks
Plugin footprint 82% 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.19MB] [CPU: ▼2.88ms] Passed 4 tests
A check of server-side resources used by WP Google Fonts
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 41.22 ▲1.50 |
Dashboard /wp-admin | 3.50 ▲0.16 | 53.41 ▼6.75 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 48.52 ▼0.18 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.22 | 88.09 ▼6.10 |
Media Library /wp-admin/upload.php | 3.42 ▲0.20 | 36.55 ▲2.57 |
AppSumo /wp-admin/admin.php?page=gf_go_appsumo_pro | 3.22 | 27.18 |
Other Tools /wp-admin/admin.php?page=gf-plugin-other-tools | 3.39 | 32.15 |
Google Fonts /wp-admin/admin.php?page=google-fonts | 3.37 | 32.38 |
Server storage [IO: ▲0.69MB] [DB: ▲1.49MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
googlefonts_data |
theysaidso_admin_options |
googlefonts_options |
widget_theysaidso_widget |
wp_google_fonts_global_notification |
db_upgraded |
can_compress_scripts |
Browser metrics 75% from 4 tests
Checking browser requirements for WP Google Fonts
Please improve the following
- Nodes: For the best user experience, please reduce the number of DOM nodes under 25,000 (currently 48,842 on /wp-admin/admin.php?page=google-fonts)
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲81 | 14.26 ▼0.36 | 1.69 ▲0.01 | 33.30 ▼5.77 |
Dashboard /wp-admin | 2,236 ▲56 | 5.60 ▼0.05 | 83.97 ▼2.74 | 46.23 ▲4.23 |
Posts /wp-admin/edit.php | 2,138 ▲38 | 2.03 ▲0.09 | 32.25 ▼3.35 | 36.20 ▲3.54 |
Add New Post /wp-admin/post-new.php | 1,557 ▲31 | 23.33 ▼0.06 | 669.63 ▼10.80 | 51.58 ▼4.28 |
Media Library /wp-admin/upload.php | 1,438 ▲41 | 4.19 ▼0.02 | 93.36 ▼7.33 | 47.67 ▲1.71 |
AppSumo /wp-admin/admin.php?page=gf_go_appsumo_pro | 2,256 | 15.16 | 627.90 | 168.08 |
Other Tools /wp-admin/admin.php?page=gf-plugin-other-tools | 1,015 | 2.04 | 24.00 | 46.10 |
Google Fonts /wp-admin/admin.php?page=google-fonts | 48,842 | 1.47 | 45.30 | 55.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲1.49MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 8 options
- can_compress_scripts
- widget_theysaidso_widget
- googlefonts_options
- widget_recent-comments
- db_upgraded
- googlefonts_data
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=gf_go_appsumo_pro
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
- > GET request to /wp-admin/admin.php?page=gf-plugin-other-tools
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/admin.php?page=gf-plugin-other-tools
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/admin.php?page=google-fonts
- > Notice in wp-content/plugins/wp-google-fonts/google-fonts.php+1101
Undefined index: wp_google_fonts_global_notification
SRP 0% 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× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-google-fonts/appsumo-capture-form.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_thickbox() in wp-content/plugins/wp-google-fonts/appsumo.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_thickbox() in wp-content/plugins/wp-google-fonts/other_tools.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_thickbox() in wp-content/plugins/wp-google-fonts/other_plugins.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-google-fonts/google-fonts.php:28
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=gf_go_appsumo_pro
- > Network (severe)
https://appsumo.com/tools/wordpress/?utm_source=sumo&utm_medium=wp-widget&utm_campaign=wp-google-fonts - Failed to load resource: the server responded with a status of 404 ()
- > GET request to /wp-admin/admin.php?page=gf_go_appsumo_pro
- > Javascript (severe) in unknown
https://appsumo2-cdn.appsumo.com/static/dist/js/vue_bridge.61ea1a9c.js 6:75186 Uncaught TypeError: (void 0) is not a function
- > GET request to /wp-admin/admin.php?page=gf_go_appsumo_pro
- > Console-api (warning) in unknown
https://accounts.google.com/gsi/client 41:457 "[GSI_LOGGER]: Relative login_uri was provided. Use absolute url instead. Relative login_uri may be considered invalid in the future."
Optimizations
Plugin configuration 90% 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:
- Screenshots: Screenshot #1 (This screenshot shows the "settings" panel for the WP Google Fonts plugin.) image not found
- Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wp-google-fonts/google-fonts.php 92% from 13 tests
Analyzing the main PHP file in "WP Google Fonts" version 3.1.5
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-google-fonts.php" instead of "google-fonts.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected9,555 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 228 | 161 | 8,360 |
PO File | 5 | 200 | 504 | 471 |
SVG | 4 | 0 | 2 | 403 |
CSS | 2 | 34 | 2 | 314 |
JavaScript | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 171.00 |
▷ Minimum class complexity | 171.00 |
▷ Maximum class complexity | 171.00 |
Average method complexity | 5.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 40 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.16MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/products/recent-tweets-widget-logo.png | 34.12KB | 25.86KB | ▼ 24.22% |
images/products/sumo-logo.png | 6.58KB | 3.19KB | ▼ 51.51% |
images/products/appsumo-logo.png | 5.92KB | 6.11KB | 0.00% |
images/products/social-media-widget-logo.png | 75.72KB | 28.07KB | ▼ 62.93% |
images/products/google-analyticator-logo.png | 12.53KB | 2.97KB | ▼ 76.27% |