Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.46ms] Passed 4 tests
This is a short check of server-side resources used by Simple Google Fonts Japanese
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.29 ▼0.04 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.69 ▼2.13 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 43.25 ▼5.76 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 85.25 ▼13.90 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.28 ▲1.91 |
Simple Google Fonts Japanese /wp-admin/options-general.php?page=simple-google-fonts-japanese | 3.21 | 31.79 |
Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Google Fonts Japanese
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲15 | 14.16 ▼0.19 | 1.91 ▼0.06 | 48.21 ▲0.65 |
Dashboard /wp-admin | 2,198 ▲21 | 5.55 ▼0.12 | 82.46 ▼11.17 | 36.17 ▼11.26 |
Posts /wp-admin/edit.php | 2,106 ▲3 | 1.97 ▲0.03 | 35.65 ▼0.50 | 32.04 ▼1.12 |
Add New Post /wp-admin/post-new.php | 1,537 ▲9 | 23.42 ▲0.41 | 605.90 ▼0.06 | 73.02 ▲12.37 |
Media Library /wp-admin/upload.php | 1,403 ▲9 | 4.19 ▲0.03 | 98.63 ▼0.41 | 46.76 ▲3.27 |
Simple Google Fonts Japanese /wp-admin/options-general.php?page=simple-google-fonts-japanese | 1,087 | 1.69 | 32.31 | 40.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
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)
Everything seems fine, however 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
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-google-fonts-japanese/sgfj-admin.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-google-fonts-japanese/sgfj-generate.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-google-fonts-japanese/simple-google-fonts-japanese.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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
These attributes need to be fixed:
- Requires php: Version not formatted correctly
simple-google-fonts-japanese/simple-google-fonts-japanese.php Passed 13 tests
"Simple Google Fonts Japanese" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
99 characters long description:
Change the site font to Japanese Google font. You can change the font type and weight as an option.
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
Good job! No executable or dangerous file extensions detected346 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 43 | 10 | 219 |
CSS | 2 | 2 | 0 | 127 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.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 | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.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 | 11 | |
▷ Named functions | 11 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin