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
This plugin's installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼5.90ms] Passed 4 tests
An overview of server-side resources used by Embed Google Fonts
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.40 ▼0.06 | 31.17 ▼12.07 |
Dashboard /wp-admin | 3.32 ▲0.02 | 52.55 ▲0.57 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.36 ▼1.39 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 87.92 ▼9.30 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.44 ▼0.83 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
These are issues you should consider
- The plugin illegally modified 152 files (24,255.64KB) outside of "wp-content/plugins/embed-google-fonts/" and "wp-content/uploads/"
- (new file) wp-content/cache/embed-google-fonts/noto-serif/noto-serif-v22-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese-100.ttf
- (new file) wp-content/cache/embed-google-fonts/noto-serif/noto-serif-v22-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese-100italic.ttf
- (new file) wp-content/cache/embed-google-fonts/noto-serif/noto-serif-v22-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese-100.svg
- (new file) wp-content/cache/embed-google-fonts/noto-serif/noto-serif-v22-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese-100.woff2
- (new file) wp-content/cache/embed-google-fonts/noto-serif/noto-serif-v22-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese-100italic.svg
- (new file) wp-content/cache/embed-google-fonts/noto-serif/_font.css
- (new file) wp-content/cache/embed-google-fonts/noto-serif/noto-serif-v22-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese-100.eot
- (new file) wp-content/cache/embed-google-fonts/noto-serif/noto-serif-v22-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese-100.woff
- (new file) wp-content/cache/embed-google-fonts/noto-serif/noto-serif-v22-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese-100italic.woff
- (new file) wp-content/cache/embed-google-fonts/noto-serif/noto-serif-v22-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese-100italic.eot
- ...
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Embed Google Fonts: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,783 ▲22 | 14.72 ▲0.36 | 2.07 ▼0.07 | 45.22 ▼3.39 |
Dashboard /wp-admin | 2,195 ▲21 | 5.58 ▲0.03 | 97.22 ▼7.54 | 47.62 ▲1.47 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.94 ▼0.03 | 37.31 ▲0.88 | 36.45 ▼2.63 |
Add New Post /wp-admin/post-new.php | 1,553 ▲27 | 18.17 ▼5.03 | 649.27 ▼2.01 | 73.36 ▲21.21 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.30 ▲0.16 | 104.81 ▼0.20 | 46.17 ▼2.42 |
Uninstaller [IO: ▲23.69MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/embed-google-fonts/includes/class.embed-google-fonts-proxy.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: gdpr, google fonts, embed
embed-google-fonts/embed-google-fonts.php 92% from 13 tests
This is the main PHP file of "Embed Google Fonts" version 3.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.9" instead of "6.0")
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
There were no executable files found in this plugin286 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 56 | 28 | 286 |
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.36 |
Average class complexity | 21.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 4.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 92.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.69% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
PNG images were not found in this plugin