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
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.73ms] Passed 4 tests
Server-side resources used by Local Avatars by Nocksoft
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.48 ▼13.23 |
Dashboard /wp-admin | 3.38 ▲0.08 | 54.27 ▼0.21 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 59.46 ▲4.73 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 88.30 ▼10.20 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 40.68 ▲6.02 |
Local Avatars /wp-admin/options-general.php?page=nstla | 3.29 | 39.93 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
nstla_setting_localavatar_default |
widget_recent-posts |
can_compress_scripts |
nstla_setting_redirectgravatar_all |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Local Avatars by Nocksoft
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,932 ▲171 | 14.43 ▲0.15 | 1.84 ▲0.24 | 43.81 ▼0.40 |
Dashboard /wp-admin | 2,341 ▲161 | 6.19 ▲0.59 | 119.69 ▲30.43 | 43.09 ▲1.88 |
Posts /wp-admin/edit.php | 2,269 ▲169 | 3.33 ▲1.37 | 53.31 ▲17.56 | 37.55 ▲1.19 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.21 ▲0.28 | 625.13 ▼12.05 | 36.87 ▼21.39 |
Media Library /wp-admin/upload.php | 1,406 ▲12 | 4.09 ▼0.03 | 79.71 ▼20.38 | 42.29 ▼0.57 |
Local Avatars /wp-admin/options-general.php?page=nstla | 1,009 | 3.08 | 39.24 | 62.86 |
Uninstaller [IO: ▲0.15MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attentionZombie WordPress options were found after uninstall: 8 options
- Incomplete uninstall procedure, leaving 14 files (0.15MB) in the plugin directory
- (new file) js/imagepicker.js
- (new file) php/settings-global.php
- (new file) php/settings-defaults.php
- (new file) languages/local-avatars-by-nocksoft-de_DE.po
- (new file) img/local-avatar-pingu.png
- (new file) languages/local-avatars-by-nocksoft-de_DE.mo
- (new file) img/local-avatar-mystery.png
- (new file) local-avatars-by-nocksoft.php
- (new file) php/avatars.php
- (new file) LICENSE
- ...
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- nstla_setting_redirectgravatar_all
- nstla_setting_localavatar_default
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/local-avatars-by-nocksoft/php/avatars.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/local-avatars-by-nocksoft/php/settings-global.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/local-avatars-by-nocksoft/php/settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/local-avatars-by-nocksoft/local-avatars-by-nocksoft.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/local-avatars-by-nocksoft/php/settings-user.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: avatar, gravatar, local avatar
local-avatars-by-nocksoft/local-avatars-by-nocksoft.php Passed 13 tests
The principal PHP file in "Local Avatars by Nocksoft" v. 1.0.0 is loaded by WordPress automatically on each request
31 characters long description:
Adds support for local avatars.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected312 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 74 | 36 | 247 |
JavaScript | 1 | 9 | 0 | 37 |
PO File | 1 | 13 | 14 | 28 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
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 | 15 | |
▷ Named functions | 14 | 93.33% |
▷ Anonymous functions | 1 | 6.67% |
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
2 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/local-avatar-pingu.png | 97.43KB | 34.96KB | ▼ 64.12% |
img/local-avatar-mystery.png | 18.56KB | 9.16KB | ▼ 50.62% |