Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.27MB] [CPU: ▼17.59ms] Passed 4 tests
An overview of server-side resources used by Google Webfont Optimizer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▼0.55 | 18.40 ▼19.14 |
Dashboard /wp-admin | 3.23 ▼0.08 | 40.46 ▼10.07 |
Posts /wp-admin/edit.php | 3.29 ▼0.06 | 36.62 ▼10.75 |
Add New Post /wp-admin/post-new.php | 5.48 ▼0.41 | 68.33 ▼30.40 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 28.01 ▼7.22 |
GWF Optimizer /wp-admin/options-general.php?page=gwf-optimizer | 3.20 | 28.21 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
google_webfont_optimizer_options |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Google Webfont Optimizer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.38 ▼0.15 | 1.74 ▲0.02 | 44.39 ▲5.05 |
Dashboard /wp-admin | 2,199 ▲19 | 5.61 ▲0.02 | 85.02 ▼6.10 | 38.00 ▼5.14 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.03 ▲0.03 | 34.75 ▼10.33 | 33.21 ▼3.33 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 22.77 ▼0.31 | 574.11 ▼84.67 | 58.35 ▲4.83 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.28 ▲0.07 | 96.41 ▼15.12 | 42.33 ▼4.66 |
GWF Optimizer /wp-admin/options-general.php?page=gwf-optimizer | 800 | 2.04 | 24.43 | 28.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=gwf-optimizer
- > User deprecated in wp-includes/functions.php+5828
Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
- > GET request to /wp-admin/options-general.php?page=gwf-optimizer
- > 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/options-general.php?page=gwf-optimizer
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 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
Almost there! Just fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/google-webfont-optimizer/scb/Widget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/google-webfont-optimizer/google-webfont-optimizer.php:377
- > PHP Fatal error
Uncaught Error: Class 'scbAdminPage' not found in wp-content/plugins/google-webfont-optimizer/scb/BoxesPage.php:5
- > PHP Fatal error
Uncaught Error: Class 'scbAdminPage' not found in wp-content/plugins/google-webfont-optimizer/adminpage.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: There are too many tags (15 tag instead of maximum 10)
google-webfont-optimizer/google-webfont-optimizer.php Passed 13 tests
The principal PHP file in "Google Webfont Optimizer" v. 0.2.4 is loaded by WordPress automatically on each request
104 characters long description:
This plugin optimizes the way Google Fonts loads on your webpage, increasing your website's performance.
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
Success! There were no dangerous files found in this plugin1,742 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 625 | 878 | 1,720 |
JSON | 1 | 0 | 0 | 22 |
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.38 |
Average class complexity | 11.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 5 | 22.73% |
▷ Concrete classes | 17 | 77.27% |
▷ Final classes | 0 | 0.00% |
Methods | 181 | |
▷ Static methods | 58 | 32.04% |
▷ Public methods | 143 | 79.01% |
▷ Protected methods | 27 | 14.92% |
▷ Private methods | 11 | 6.08% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 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
PNG images were not found in this plugin