Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼10.09ms] Passed 4 tests
This is a short check of server-side resources used by Custom Post Avatar
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 44.29 ▼1.03 |
Dashboard /wp-admin | 3.38 ▲0.04 | 49.38 ▼19.47 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 51.17 ▼5.49 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 95.70 ▼14.35 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 37.46 ▲2.91 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Custom Post Avatar
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,784 ▲38 | 14.36 ▼0.01 | 1.89 ▲0.12 | 43.28 ▲3.69 |
Dashboard /wp-admin | 2,192 ▲24 | 5.62 ▲0.09 | 91.77 ▼1.06 | 45.17 ▼0.01 |
Posts /wp-admin/edit.php | 2,106 ▲46 | 2.56 ▲0.51 | 56.07 ▲17.29 | 36.32 ▲3.30 |
Add New Post /wp-admin/post-new.php | 6,232 ▲4,697 | 21.00 ▲2.93 | 875.00 ▲172.98 | 72.96 ▲3.17 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.16 ▲0.02 | 94.83 ▼6.10 | 42.79 ▼1.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: replacement, user image, gravatar, local avatar, avatar
custom-post-avatar/custom-post-avatar.php Passed 13 tests
The main file in "Custom Post Avatar" v. 0.9.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
113 characters long description:
This Plugin gives you the possibility to replace your default avatar by a custom image on each post individually.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected625 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 57 | 34 | 458 |
JavaScript | 1 | 17 | 6 | 85 |
CSS | 1 | 12 | 1 | 82 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 37.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 85.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 15.00% |
Functions | 8 | |
▷ Named functions | 8 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
default.png | 2.52KB | 2.78KB | 0.00% |