Benchmarks
Plugin footprint Passed 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.00MB] [CPU: ▼141.54ms] Passed 4 tests
Analyzing server-side resources used by WP Gravatar Https
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 35.93 ▲3.07 |
Dashboard /wp-admin | 3.06 ▲0.01 | 44.48 ▼4.79 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 40.66 ▼0.27 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 87.30 ▼559.48 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 33.20 ▼1.60 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
WP Gravatar Https: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,713 ▲107 | 15.99 ▲0.54 | 8.48 ▲0.61 | 42.04 ▼1.54 |
Dashboard /wp-admin | 2,967 ▲36 | 5.94 ▼0.04 | 133.13 ▼9.12 | 96.23 ▼10.72 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.82 ▲0.12 | 66.05 ▼0.41 | 82.10 ▼3.97 |
Add New Post /wp-admin/post-new.php | 1,498 ▼185 | 18.86 ▲0.36 | 376.72 ▲13.69 | 106.58 ▲3.81 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.01 ▼0.03 | 149.36 ▼3.24 | 107.99 ▼0.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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 SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: Add an image for screenshot #1 (Enable HTTPS. 启用HTTPS。)
wp-gravatar-https/wp-gravatar-https.php 92% from 13 tests
The main PHP script in "WP Gravatar Https" version 1.1 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 368 characters long)
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
There were no executable files found in this plugin8 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 2 | 12 | 8 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
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 | 1 | |
▷ Named functions | 1 | 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
1 PNG file occupies 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/screenshot-1.png | 98.24KB | 31.76KB | ▼ 67.67% |