Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼319.73ms] Passed 4 tests
Server-side resources used by DoppelMe Avatar Buddypress Integration
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 56.16 ▼55.15 |
Dashboard /wp-admin | 3.42 ▲0.01 | 57.97 ▲21.77 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 40.83 ▲1.24 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.09 | 94.50 ▼1,226.65 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 28.44 ▲1.65 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for DoppelMe Avatar Buddypress Integration
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,767 ▲45 | 15.77 ▼0.19 | 5.78 ▲0.05 | 2.01 ▼0.47 |
Dashboard /wp-admin | 2,895 ▲41 | 6.11 ▼0.03 | 118.83 ▼27.32 | 170.75 ▲6.54 |
Posts /wp-admin/edit.php | 2,691 ▲6 | 3.23 ▼0.00 | 66.22 ▲0.35 | 145.31 ▲3.02 |
Add New Post /wp-admin/post-new.php | 1,655 ▼96 | 20.99 ▼0.04 | 453.91 ▼18.35 | 176.84 ▼20.24 |
Media Library /wp-admin/upload.php | 1,692 ▼5 | 5.52 ▼0.00 | 138.35 ▼53.98 | 191.10 ▲1.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/doppelme-avatars/templates/members/single/plugins.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/doppelme-avatars/includes/bp-doppelme-avatar.php:81
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/doppelme-avatars/doppelme.php:19
- > PHP Fatal error
Uncaught Error: Class 'DoppelMe' not found in wp-content/plugins/doppelme-avatars/includes/bp-doppelme-admin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/doppelme-avatars/includes/bp-doppelme-avatar.php:81
- > PHP Fatal error
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 86% from 29 tests
readme.txt 81% 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 to be fixed:
- Donate link: Invalid URI ("")
- Requires at least: The plugin version is formatted incorrectly
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The avatar editor as part of the users profile area), #2 (Updating your avatar), #3 (Users' avatars used on the site)
doppelme-avatars/doppelme.php 92% from 13 tests
Analyzing the main PHP file in "DoppelMe Avatar Buddypress Integration" version 1.04
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("doppelme-avatars.php" instead of "doppelme.php")
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
Good job! No executable or dangerous file extensions detected774 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 193 | 93 | 774 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
3 PNG files occupy 0.18MB with 0.13MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 49.44KB | 15.55KB | ▼ 68.55% |
screenshot-1.png | 63.37KB | 17.99KB | ▼ 71.61% |
screenshot-2.png | 71.77KB | 21.39KB | ▼ 70.20% |