Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.86MB] [CPU: ▼35.03ms] Passed 4 tests
Server-side resources used by Google Webfonts Integrate
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 43.29 ▲3.56 |
Dashboard /wp-admin | 3.09 ▼0.22 | 26.88 ▼25.49 |
Posts /wp-admin/edit.php | 3.09 ▼0.27 | 23.71 ▼26.08 |
Add New Post /wp-admin/post-new.php | 3.09 ▼2.80 | 24.55 ▼77.35 |
Media Library /wp-admin/upload.php | 3.09 ▼0.14 | 25.25 ▼11.21 |
Google WebFonts Integrate /wp-admin/options-general.php?page=gwi | 3.09 | 23.00 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
OPTIONS |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Google Webfonts Integrate
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲66 | 13.28 ▼1.11 | 1.85 ▲0.00 | 44.11 ▼0.78 |
Dashboard /wp-admin | 2,225 ▲25 | 4.81 ▼0.23 | 101.74 ▼0.80 | 43.21 ▼5.26 |
Posts /wp-admin/edit.php | 2,107 ▲25 | 1.97 ▼0.01 | 43.99 ▲7.85 | 44.88 ▲7.84 |
Add New Post /wp-admin/post-new.php | 1,552 ▲20 | 23.08 ▲0.09 | 665.19 ▼32.31 | 67.15 ▲10.92 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.21 ▼0.06 | 100.11 ▼9.24 | 45.76 ▼0.04 |
Google WebFonts Integrate /wp-admin/options-general.php?page=gwi | 6,426 | 3.31 | 68.24 | 81.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- OPTIONS
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=gwi
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/options-general.php?page=gwi
- > Notice in wp-content/plugins/google-webfonts-integrate/admin-area.php+14
Undefined index: gwi_font
- > GET request to /wp-admin/options-general.php?page=gwi
- > Notice in wp-content/plugins/google-webfonts-integrate/admin-area.php+15
Undefined index: gwi_script
- > GET request to /wp-admin/options-general.php?page=gwi
- > Notice in wp-content/plugins/google-webfonts-integrate/admin-area.php+16
Undefined index: use_style_where
- > GET request to /wp-admin/options-general.php?page=gwi
- > Notice in wp-content/plugins/google-webfonts-integrate/admin-area.php+17
Undefined index: use_style_where2
- > GET request to /wp-admin/options-general.php?page=gwi
- > Notice in wp-content/plugins/google-webfonts-integrate/admin-area.php+18
Undefined index: gwi_sl1
- > GET request to /wp-admin/options-general.php?page=gwi
- > Notice in wp-content/plugins/google-webfonts-integrate/admin-area.php+19
Undefined index: gwi_prvw
- > GET request to /wp-admin/options-general.php?page=gwi
- > Notice in wp-content/plugins/google-webfonts-integrate/admin-area.php+20
Undefined index: gwi_sub
- > GET request to /wp-admin/options-general.php?page=gwi
- > Notice in wp-content/plugins/google-webfonts-integrate/admin-area.php+21
Undefined index: gwi_my_gont
- > GET request to /wp-admin/options-general.php?page=gwi
- > Notice in wp-content/plugins/google-webfonts-integrate/admin-area.php+22
Undefined index: gwi_own
- > GET request to /wp-admin/options-general.php?page=gwi
- > Notice in wp-content/plugins/google-webfonts-integrate/admin-area.php+23
Undefined index: gwi_own_font
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
Almost there! Just fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/google-webfonts-integrate/admin-area.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/google-webfonts-integrate/google-webfonts-integrate.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/google-webfonts-integrate/right-side.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=gwi
- > Network (severe)
http://fonts.googleapis.com/css?family=&subset=latin,&v2 - Failed to load resource: the server responded with a status of 400 (Bad Request)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: Please add an image for screenshot #1 (Admin Area)
google-webfonts-integrate/google-webfonts-integrate.php 92% from 13 tests
The primary PHP file in "Google Webfonts Integrate" version 1.5 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected577 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 4 | 142 | 152 | 404 |
PHP | 3 | 26 | 24 | 173 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
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 | 5 | |
▷ Named functions | 5 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 45.16KB | 16.05KB | ▼ 64.47% |