Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.04ms] Passed 4 tests
Server-side resources used by Google Web Fonts Customizer (GWFC)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.04 ▼7.65 |
Dashboard /wp-admin | 3.34 ▲0.04 | 44.34 ▼6.55 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 47.90 ▲3.29 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 82.52 ▼2.80 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.46 ▼3.15 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Google Web Fonts Customizer (GWFC): an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲77 | 14.47 ▼0.18 | 1.74 ▼0.44 | 40.46 ▼6.88 |
Dashboard /wp-admin | 2,218 ▲30 | 4.85 ▼0.01 | 102.73 ▼13.91 | 38.70 ▼9.24 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.05 ▲0.05 | 39.37 ▲4.53 | 36.13 ▼2.12 |
Add New Post /wp-admin/post-new.php | 1,552 ▲33 | 18.46 ▼4.65 | 677.20 ▲7.52 | 54.57 ▼2.71 |
Media Library /wp-admin/upload.php | 1,400 ▲9 | 4.24 ▲0.08 | 96.37 ▼6.67 | 40.50 ▼10.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Please take a closer look at the following
- 4× 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/google-web-fonts-customizer-gwfc/output.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/google-web-fonts-customizer-gwfc/register.php:170
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/google-web-fonts-customizer-gwfc/gwfc.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/google-web-fonts-customizer-gwfc/controls.php:46
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: fonts, google fonts wordpress, google webfonts, wordpress google fonts plugin, theme fonts plugin...
google-web-fonts-customizer-gwfc/gwfc.php 85% from 13 tests
The main PHP script in "Google Web Fonts Customizer (GWFC)" version 1.0.2 is automatically included on every request by WordPress
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 235 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("google-web-fonts-customizer-gwfc.php" instead of "gwfc.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin12,398 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 1 | 0 | 0 | 11,356 |
JavaScript | 2 | 623 | 112 | 822 |
PHP | 4 | 94 | 97 | 196 |
CSS | 1 | 7 | 6 | 24 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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 files were detected