Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼134.76ms] Passed 4 tests
An overview of server-side resources used by Add New Default Avatar [Emrikol's Fork]
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 37.83 ▲13.01 |
Dashboard /wp-admin | 3.09 ▲0.04 | 75.93 ▲25.38 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 62.77 ▲15.27 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 95.76 ▼566.57 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 36.60 ▼0.76 |
Add New Avatar /wp-admin/themes.php?page=add-new-default-avatar | 3.01 | 34.12 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options |
---|
dws_anda |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Add New Default Avatar [Emrikol's Fork]
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,715 ▲119 | 15.82 ▲0.18 | 10.07 ▲0.80 | 56.52 ▲3.92 |
Dashboard /wp-admin | 2,980 ▲43 | 5.94 ▲0.00 | 167.62 ▲15.95 | 140.27 ▲24.52 |
Posts /wp-admin/edit.php | 2,752 ▲13 | 2.72 ▼0.01 | 85.88 ▲14.54 | 104.44 ▲4.88 |
Add New Post /wp-admin/post-new.php | 1,692 ▲9 | 18.76 ▲0.08 | 400.78 ▼12.27 | 111.19 ▼3.92 |
Media Library /wp-admin/upload.php | 1,820 ▲13 | 5.04 ▲0.00 | 167.45 ▲3.83 | 125.71 ▲4.28 |
Add New Avatar /wp-admin/themes.php?page=add-new-default-avatar | 1,094 | 2.12 | 56.47 | 77.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-new-default-avatar-emrikols-fork/add-new-default-avatar-emrikols-fork.php:39
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (The plugin page showing a few added avatars.), #2 (The "Discussion" settings showing the available avatars.), #3 (twentysixteen theme showing the Hellow World post and comment with new avatar)
add-new-default-avatar-emrikols-fork/add-new-default-avatar-emrikols-fork.php Passed 13 tests
The main PHP script in "Add New Default Avatar [Emrikol's Fork]" version 3.0.0 is automatically included on every request by WordPress
42 characters long description:
Add new option to the Default Avatar list.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin168 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 33 | 76 | 168 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.14MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 92.73KB | 33.57KB | ▼ 63.80% |
screenshot-3.png | 21.03KB | 21.71KB | 0.00% |
screenshot-2.png | 31.32KB | 32.73KB | 0.00% |