Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.46MB] [CPU: ▼6.78ms] Passed 4 tests
Server-side resources used by User Profile Picture
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.92 ▲0.46 | 41.84 ▲2.34 |
Dashboard /wp-admin | 3.79 ▲0.44 | 47.13 ▼12.87 |
Posts /wp-admin/edit.php | 3.87 ▲0.52 | 49.96 ▼0.10 |
Add New Post /wp-admin/post-new.php | 6.34 ▲0.45 | 86.91 ▼15.24 |
Media Library /wp-admin/upload.php | 3.71 ▲0.48 | 38.67 ▲1.10 |
User Profile Picture /wp-admin/options-general.php?page=mpp | 3.68 | 34.64 |
Server storage [IO: ▲0.70MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for User Profile Picture
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,045 ▲284 | 13.48 ▼0.78 | 8.49 ▲6.16 | 38.56 ▼3.25 |
Dashboard /wp-admin | 2,343 ▲166 | 5.57 ▼0.09 | 87.63 ▼1.16 | 37.03 ▼1.18 |
Posts /wp-admin/edit.php | 2,252 ▲155 | 2.02 ▲0.03 | 37.54 ▼1.96 | 36.46 ▲3.45 |
Add New Post /wp-admin/post-new.php | 6,349 ▲4,822 | 26.30 ▲3.21 | 848.92 ▲126.53 | 72.95 ▲8.01 |
Media Library /wp-admin/upload.php | 1,546 ▲146 | 4.23 ▼0.02 | 97.88 ▼23.47 | 43.10 ▼6.68 |
User Profile Picture /wp-admin/options-general.php?page=mpp | 979 | 2.03 | 25.60 | 24.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/metronet-profile-picture/gutenberg/class-gutenberg.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/metronet-profile-picture/metronet-profile-picture.php:17
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: block, avatar, gravatar, blocks, users...
metronet-profile-picture/metronet-profile-picture.php 92% from 13 tests
"User Profile Picture" version 2.6.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Requires at least: The required version number must match the one declared in readme.txt ("3.5" instead of "4.6")
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
There were no executable files found in this plugin3,402 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 137 | 483 | 1,825 |
Sass | 2 | 30 | 0 | 1,371 |
JavaScript | 3 | 17 | 12 | 140 |
PO File | 2 | 13 | 21 | 61 |
CSS | 3 | 3 | 3 | 4 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 80.50 |
▷ Minimum class complexity | 72.00 |
▷ Maximum class complexity | 89.00 |
Average method complexity | 4.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 2 | 4.88% |
▷ Public methods | 38 | 92.68% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 7.32% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/mystery.png | 8.17KB | 4.21KB | ▼ 48.46% |