Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼2.70ms] Passed 4 tests
Server-side resources used by Disable and Remove Google Fonts
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 45.87 ▲6.86 |
Dashboard /wp-admin | 3.38 ▲0.07 | 46.95 ▼5.41 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 48.80 ▲2.79 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 84.55 ▼11.09 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.20 ▲2.90 |
Google Fonts /wp-admin/themes.php?page=drgf | 3.25 | 33.86 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
dismissed-drgf-welcome |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Disable and Remove Google Fonts
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲58 | 14.24 ▲0.08 | 1.54 ▼0.29 | 37.87 ▼6.12 |
Dashboard /wp-admin | 2,228 ▲51 | 5.67 ▲0.01 | 94.62 ▼6.22 | 42.00 ▼5.47 |
Posts /wp-admin/edit.php | 2,131 ▲28 | 2.04 ▲0.09 | 39.89 ▼0.13 | 37.08 ▲3.64 |
Add New Post /wp-admin/post-new.php | 1,550 ▲24 | 23.39 ▲0.22 | 689.57 ▲9.95 | 59.63 ▲0.47 |
Media Library /wp-admin/upload.php | 1,427 ▲24 | 4.23 ▲0.04 | 99.73 ▼2.11 | 45.20 ▲3.34 |
Google Fonts /wp-admin/themes.php?page=drgf | 874 | 1.67 | 25.55 | 67.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- can_compress_scripts
- dismissed-drgf-welcome
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/disable-remove-google-fonts/admin/class-drgf-notice.php:97
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/disable-remove-google-fonts/admin/class-drgf-admin.php:107
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/disable-remove-google-fonts/inc/remove-google-fonts.php:21
- > 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)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
8 plugin tags: speed, google, disable google fonts, optimize, google fonts...
disable-remove-google-fonts/disable-remove-google-fonts.php Passed 13 tests
The entry point to "Disable and Remove Google Fonts" version 1.5.7 is a PHP file that has certain tags in its header comment area
70 characters long description:
Optimize frontend performance by removing Google Fonts. GDPR-friendly.
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
No dangerous file extensions were detected403 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 73 | 170 | 307 |
CSS | 1 | 10 | 0 | 59 |
JavaScript | 1 | 1 | 7 | 19 |
XML | 1 | 10 | 17 | 18 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 13 | 81.25% |
▷ Anonymous functions | 3 | 18.75% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected