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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.11MB] [CPU: ▼5.03ms] Passed 4 tests
An overview of server-side resources used by Custom Profile Avatar
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 37.92 ▲0.71 |
Dashboard /wp-admin | 3.42 ▲0.07 | 45.37 ▼10.38 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 48.03 ▲3.99 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 83.77 ▼14.42 |
Media Library /wp-admin/upload.php | 3.34 ▲0.12 | 36.22 ▲4.74 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Custom Profile Avatar
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲80 | 13.25 ▼1.39 | 4.75 ▲2.92 | 39.46 ▼0.94 |
Dashboard /wp-admin | 2,235 ▲49 | 5.86 ▼0.03 | 96.95 ▼13.24 | 80.63 ▲35.80 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 2.03 ▲0.04 | 38.45 ▲3.78 | 37.61 ▲2.40 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 17.77 ▼5.38 | 698.45 ▲57.23 | 52.95 ▲3.68 |
Media Library /wp-admin/upload.php | 1,417 ▲29 | 4.22 ▲0.01 | 95.15 ▼5.87 | 66.88 ▲23.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/custom-profile-avatar/modules/menu_setup.php+38
Trying to get property 'roles' of non-object
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: gravatar, custom profile avatar, disable gravatar, choose avatar, change avatar...
custom-profile-avatar/index.php 92% from 13 tests
The main PHP script in "Custom Profile Avatar" version 1.3.1 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("custom-profile-avatar.php" instead of "index.php")
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
Success! There were no dangerous files found in this plugin1,039 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 188 | 261 | 581 |
CSS | 1 | 58 | 26 | 325 |
JavaScript | 2 | 17 | 40 | 133 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.73 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 4.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 | 1 | |
▷ Static methods | 1 | 100.00% |
▷ Public methods | 1 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/remove.png | 7.08KB | 3.51KB | ▼ 50.41% |
assets/img/edit.png | 10.33KB | 3.82KB | ▼ 63.06% |
assets/img/icon.png | 1.25KB | 1.33KB | 0.00% |
assets/img/icon-128x128.png | 9.85KB | 4.40KB | ▼ 55.36% |