Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.19MB] [CPU: ▼16.59ms] Passed 4 tests
Server-side resources used by Better Gravatar generated icons
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.40 ▼0.06 | 29.16 ▼15.80 |
Dashboard /wp-admin | 3.13 ▼0.17 | 34.20 ▼19.93 |
Posts /wp-admin/edit.php | 3.26 ▼0.09 | 36.29 ▼18.67 |
Add New Post /wp-admin/post-new.php | 5.46 ▼0.43 | 83.35 ▼11.96 |
Media Library /wp-admin/upload.php | 3.20 ▼0.03 | 36.78 ▲2.65 |
Better Avatar /wp-admin/options-general.php?page=betavat-menu-settings | 3.11 | 32.35 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Better Gravatar generated icons: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,874 ▲88 | 13.46 ▼0.92 | 9.02 ▲6.95 | 44.37 ▼0.03 |
Dashboard /wp-admin | 2,200 ▲23 | 5.58 ▲0.02 | 84.45 ▼19.51 | 66.25 ▲18.42 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.01 ▲0.05 | 38.99 ▲0.97 | 31.46 ▼3.74 |
Add New Post /wp-admin/post-new.php | 1,687 ▲161 | 22.09 ▼1.03 | 756.26 ▲54.35 | 70.08 ▲7.94 |
Media Library /wp-admin/upload.php | 1,402 ▼1 | 4.26 ▲0.06 | 101.13 ▲2.30 | 73.08 ▲29.60 |
Better Avatar /wp-admin/options-general.php?page=betavat-menu-settings | 856 | 2.04 | 26.28 | 25.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=betavat-menu-settings
- > Notice in wp-content/plugins/better-gravatar-generated-icons/index.php+56
Undefined variable: newavatar
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× 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/better-gravatar-generated-icons/index.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% 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 require attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== better-gravatar-generated-icons ===
)
better-gravatar-generated-icons/index.php 85% from 13 tests
The main file in "Better Gravatar generated icons" v. 1... serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("better-gravatar-generated-icons.php" instead of "index.php")
- Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "1...")
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
Everything looks great! No dangerous files found in this plugin108 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 25 | 14 | 78 |
JavaScript | 1 | 6 | 0 | 28 |
CSS | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
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
PNG images were not found in this plugin