Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼10.49ms] Passed 4 tests
Server-side resources used by FV Gravatar Cache
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 32.32 ▼7.06 |
Dashboard /wp-admin | 3.44 ▲0.10 | 51.98 ▼15.69 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 44.98 ▼3.79 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 91.11 ▼15.41 |
Media Library /wp-admin/upload.php | 3.36 ▲0.14 | 34.05 ▼0.66 |
FV Gravatar Cache /wp-admin/options-general.php?page=fv-gravatar-cache | 3.33 | 32.31 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_gravatars |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
fv_gravatar_cache_nag |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
fv_gravatar_cache |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for FV Gravatar Cache
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲65 | 13.18 ▼1.21 | 1.75 ▼0.04 | 43.01 ▼2.62 |
Dashboard /wp-admin | 2,217 ▲29 | 5.80 ▼0.24 | 98.05 ▼3.90 | 36.90 ▼6.74 |
Posts /wp-admin/edit.php | 2,099 ▲7 | 2.13 ▲0.12 | 39.28 ▼1.99 | 33.09 ▼2.85 |
Add New Post /wp-admin/post-new.php | 1,524 ▼4 | 17.64 ▼0.54 | 630.85 ▲22.38 | 65.22 ▼2.43 |
Media Library /wp-admin/upload.php | 1,396 ▲11 | 4.25 ▲0.12 | 96.98 ▼6.79 | 41.01 ▼2.00 |
FV Gravatar Cache /wp-admin/options-general.php?page=fv-gravatar-cache | 943 | 2.17 | 22.49 | 28.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_gravatars
- The uninstall procedure has failed, leaving 8 options in the database
- theysaidso_admin_options
- fv_gravatar_cache
- can_compress_scripts
- fv_gravatar_cache_nag
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=fv-gravatar-cache
- > Notice in wp-content/plugins/fv-gravatar-cache/fv-gravatar-cache.php+667
Undefined index: default
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
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/fv-gravatar-cache/fv-gravatar-cache.php:877
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 97% 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
These attributes need your attention:
- Screenshots: Screenshot #1 (FV Gravatar Cache screen) image required
fv-gravatar-cache/fv-gravatar-cache.php Passed 13 tests
"FV Gravatar Cache" version 0.4.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
120 characters long description:
Speeds up your website by making sure the gravatars are stored on your website and not loading from the gravatar server.
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
No dangerous file extensions were detected655 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 145 | 172 | 648 |
Markdown | 1 | 5 | 0 | 7 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 109.00 |
▷ Minimum class complexity | 109.00 |
▷ Maximum class complexity | 109.00 |
Average method complexity | 5.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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.11MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 111.88KB | 42.39KB | ▼ 62.12% |