Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.10ms] Passed 4 tests
This is a short check of server-side resources used by Custom User Profile Photo
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.05 | 41.82 ▼2.08 |
Dashboard /wp-admin | 3.34 ▲0.04 | 44.94 ▼6.07 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.46 ▲3.78 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 86.86 ▼3.31 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.39 ▼0.93 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Custom User Profile Photo
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.30 ▼1.13 | 1.91 ▲0.12 | 42.53 ▼0.12 |
Dashboard /wp-admin | 2,210 ▲22 | 4.85 ▼0.03 | 107.44 ▼7.98 | 38.19 ▼7.23 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.03 ▲0.02 | 39.65 ▲0.25 | 34.86 ▲1.47 |
Add New Post /wp-admin/post-new.php | 1,527 ▲13 | 18.30 ▲0.64 | 585.58 ▼65.01 | 53.36 ▲0.29 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.24 ▲0.08 | 97.55 ▼8.89 | 40.26 ▼5.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-user-profile-photo/3five_cupp.php:62
- > 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 on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Donate link: Invalid URI found ("")
- Plugin Name: You should set the name of your plugin on the first line (
=== custom-user-profile-photo ===
)
custom-user-profile-photo/3five_cupp.php 92% from 13 tests
Analyzing the main PHP file in "Custom User Profile Photo" version 0.5.3
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("custom-user-profile-photo.php" instead of "3five_cupp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected432 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 44 | 117 | 151 |
PO File | 3 | 27 | 27 | 129 |
CSS | 1 | 12 | 7 | 91 |
JavaScript | 1 | 16 | 15 | 61 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
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 | 7 | |
▷ Named functions | 7 | 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
There are no PNG files in this plugin