Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼300.39ms] Passed 4 tests
Analyzing server-side resources used by 3D Avatar User Profile
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.03 | 56.58 ▲4.02 |
Dashboard /wp-admin | 3.44 ▲0.04 | 36.26 ▼34.02 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 44.60 ▲6.24 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.06 | 99.14 ▼1,175.07 |
Media Library /wp-admin/upload.php | 3.32 ▲0.03 | 28.52 ▲3.53 |
Server storage [IO: ▲1.68MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for 3D Avatar User Profile
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲72 | 15.89 ▲0.60 | 6.11 ▼0.08 | 2.83 ▲0.64 |
Dashboard /wp-admin | 2,892 ▲31 | 6.15 ▼0.02 | 116.95 ▼14.39 | 180.29 ▲11.19 |
Posts /wp-admin/edit.php | 2,691 ▼0 | 3.24 ▲0.00 | 61.81 ▼34.71 | 145.71 ▼3.48 |
Add New Post /wp-admin/post-new.php | 1,779 ▲89 | 21.59 ▲0.91 | 457.57 ▼24.26 | 192.36 ▲31.03 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.51 ▼0.02 | 132.03 ▼17.81 | 183.70 ▼8.00 |
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 successfully, without leaving any zombie files or tables
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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/3d-avatar-user-profile/avatar-3d-user-profile.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/3d-avatar-user-profile/avatar-3d-user-profile.php:14
- > PHP Warning
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 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: There are too many tags (19 tag instead of maximum 10)
3d-avatar-user-profile/avatar-3d-user-profile.php 92% from 13 tests
The entry point to "3D Avatar User Profile" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("3d-avatar-user-profile.php" instead of "avatar-3d-user-profile.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin3,511 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 1,897 | 338 | 2,912 |
PHP | 1 | 125 | 33 | 488 |
CSS | 1 | 15 | 0 | 111 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 89.00 |
▷ Minimum class complexity | 89.00 |
▷ Maximum class complexity | 89.00 |
Average method complexity | 4.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.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 | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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.32MB with 0.21MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 158.15KB | 53.51KB | ▼ 66.17% |
screenshot-2.png | 92.42KB | 31.73KB | ▼ 65.66% |
screenshot-1.png | 72.17KB | 23.69KB | ▼ 67.17% |