Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.29MB] [CPU: ▼7.37ms] Passed 4 tests
Server-side resources used by Google Font Fix
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 37.61 ▼2.96 |
Dashboard /wp-admin | 3.60 ▲0.29 | 48.18 ▼4.66 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 53.15 ▲1.48 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.38 | 78.12 ▼19.30 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 35.35 ▼2.55 |
Google Font Fix /wp-admin/options-general.php?page=google-font-fix | 3.43 | 30.16 |
Server storage [IO: ▲3.18MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Google Font Fix
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.32 ▼1.20 | 1.66 ▲0.10 | 41.07 ▼5.24 |
Dashboard /wp-admin | 2,210 ▲22 | 4.88 ▼0.93 | 109.54 ▲5.10 | 40.26 ▼3.51 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 1.97 ▼0.08 | 38.60 ▲3.39 | 33.80 ▼0.86 |
Add New Post /wp-admin/post-new.php | 1,546 ▲13 | 18.55 ▼4.53 | 618.49 ▼70.87 | 52.65 ▼7.30 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.18 ▼0.02 | 98.18 ▼5.93 | 42.02 ▼4.79 |
Google Font Fix /wp-admin/options-general.php?page=google-font-fix | 851 | 2.04 | 28.06 | 29.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=google-font-fix
- > Notice in wp-content/plugins/google-font-fix/google-font-fix-options.php+43
Undefined index: google-service
- > GET request to /wp-admin/options-general.php?page=google-font-fix
- > Notice in wp-content/plugins/google-font-fix/google-font-fix-options.php+44
Undefined index: gravatar-service
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
Please fix the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/google-font-fix/google-font-fix-options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/google-font-fix/google-font-fix.php:12
- > 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)
Everything seems fine on the user side
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:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== google-font-fix ===
)
google-font-fix/google-font-fix.php Passed 13 tests
The main file in "Google Font Fix" v. 2.3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
56 characters long description:
Replace Google and Gravatar resources for Chinese users.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,994 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 60 | 45 | 1,940 |
PO File | 1 | 10 | 10 | 37 |
Markdown | 1 | 12 | 0 | 17 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.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 | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 37 | |
▷ Named functions | 35 | 94.59% |
▷ Anonymous functions | 2 | 5.41% |
Constants | 49 | |
▷ Global constants | 49 | 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
1 PNG file occupies 0.27MB with 0.19MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot.png | 272.41KB | 78.91KB | ▼ 71.03% |