Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼6.05ms] Passed 4 tests
An overview of server-side resources used by Easy Google Fonts
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 35.20 ▼7.15 |
Dashboard /wp-admin | 3.37 ▲0.07 | 46.68 ▼2.27 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 46.07 ▼5.71 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.16 | 93.82 ▼9.05 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.26 ▲3.36 |
Easy Google Fonts /wp-admin/options-general.php?page=easy-google-fonts | 3.29 | 33.43 |
Server storage [IO: ▲2.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 87 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
egf_version |
db_upgraded |
egf_show_admin_pointer |
egf_force_user_redirect |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Easy Google Fonts
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,864 ▲107 | 13.31 ▼1.10 | 1.69 ▼0.40 | 41.20 ▼0.03 |
Dashboard /wp-admin | 2,263 ▲72 | 4.97 ▼0.96 | 111.44 ▲12.98 | 41.29 ▼5.47 |
Posts /wp-admin/edit.php | 2,151 ▲62 | 2.50 ▲0.49 | 42.18 ▼0.06 | 35.89 ▼0.37 |
Add New Post /wp-admin/post-new.php | 1,543 ▲9 | 18.24 ▼5.06 | 587.59 ▼15.29 | 58.44 ▲6.44 |
Media Library /wp-admin/upload.php | 1,447 ▲56 | 4.45 ▲0.25 | 102.17 ▲1.36 | 41.48 ▼3.13 |
Easy Google Fonts /wp-admin/options-general.php?page=easy-google-fonts | 1,094 | 8.99 | 188.38 | 36.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function EGF\\Data\\add_action() in wp-content/plugins/easy-google-fonts/src/includes/data.php:46
- > PHP Fatal error
Uncaught Error: Call to undefined function EGF\\Api\\add_action() in wp-content/plugins/easy-google-fonts/src/includes/api.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function EGF\\Settings\\add_action() in wp-content/plugins/easy-google-fonts/src/includes/settings.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function EGF\\Customizer\\add_action() in wp-content/plugins/easy-google-fonts/src/includes/customizer.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function EGF\\Admin\\add_action() in wp-content/plugins/easy-google-fonts/src/includes/admin.php:42
- > PHP Fatal error
Uncaught Error: Call to undefined function EGF\\Deprecated\\add_filter() in wp-content/plugins/easy-google-fonts/src/includes/deprecated.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function EGF\\Frontend\\add_action() in wp-content/plugins/easy-google-fonts/src/includes/frontend.php:26
- > 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 Passed 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
10 plugin tags: webfonts, google fonts wordpress, theme fonts, wordpress webfonts, typography...
easy-google-fonts/easy-google-fonts.php Passed 13 tests
The primary PHP file in "Easy Google Fonts" version 2.0.4 is used by WordPress to initiate all plugin functionality
66 characters long description:
A simple and easy way to add google fonts to your WordPress theme.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected31,355 lines of code in 85 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 1 | 0 | 0 | 16,295 |
CSS | 5 | 701 | 60 | 8,565 |
JavaScript | 62 | 595 | 463 | 4,953 |
PHP | 16 | 247 | 621 | 1,524 |
SVG | 1 | 0 | 0 | 18 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
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 | 11 | |
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 | 87 | |
▷ Named functions | 59 | 67.82% |
▷ Anonymous functions | 28 | 32.18% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.23MB with 0.16MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/images/main-pic.png | 230.83KB | 67.89KB | ▼ 70.59% |