Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.31ms] Passed 4 tests
An overview of server-side resources used by Buddypress Upload Avatar Ajax
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 38.41 ▼3.13 |
Dashboard /wp-admin | 3.36 ▲0.06 | 41.55 ▼7.12 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 45.30 ▼0.23 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 85.22 ▼1.96 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.88 ▼1.04 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Buddypress Upload Avatar Ajax
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,949 ▲203 | 14.25 ▼0.03 | 18.27 ▲15.79 | 42.34 ▼19.30 |
Dashboard /wp-admin | 2,203 ▲15 | 5.83 ▼0.06 | 102.16 ▼14.85 | 38.10 ▼4.25 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.00 ▲0.01 | 34.29 ▼3.16 | 34.08 ▲0.06 |
Add New Post /wp-admin/post-new.php | 1,537 ▲9 | 23.11 ▼0.07 | 676.49 ▼2.56 | 54.91 ▲2.20 |
Media Library /wp-admin/upload.php | 1,382 ▼9 | 4.18 ▼0.06 | 98.54 ▼6.34 | 42.00 ▼2.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
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)
Even though everything seems fine, this is not an exhaustive test
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 fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-upload-avatar-ajax/bp-signup-avatar.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/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 your attention:
- Tested up to: Invalid version format
- Screenshots: These screenshots have no corresponding images in /assets: #1 (This shows avatar upload button screenshot-1.png), #2 (This shows crop new avatar screenshot-2.png), #3 (This shows success avatar screenshot-3.png), #4 (This shows success avatar screenshot-4.png)
- Requires at least: Invalid version format
buddypress-upload-avatar-ajax/bp-signup-avatar.php 92% from 13 tests
Analyzing the main PHP file in "Buddypress Upload Avatar Ajax" version 1.0.1
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("buddypress-upload-avatar-ajax.php" instead of "bp-signup-avatar.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected415 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 71 | 40 | 277 |
JavaScript | 1 | 34 | 15 | 138 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
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 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.41MB with 0.23MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 294.61KB | 75.02KB | ▼ 74.54% |
screenshot-3.png | 57.14KB | 19.18KB | ▼ 66.44% |
screenshot-4.png | 59.88KB | 20.01KB | ▼ 66.59% |
screenshot-1.png | 8.04KB | 6.61KB | ▼ 17.88% |