83% custom-user-profile-photo

Code Review | Custom User Profile Photo

WordPress plugin Custom User Profile Photo scored83%from 54 tests.

About plugin

  • Plugin page: custom-user-profi...
  • Plugin version: 0.5.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1-4.7.3
  • WordPress version: 6.3.1
  • First release: Nov 1, 2013
  • Latest release: May 24, 2017
  • Number of updates: 67
  • Update frequency: every 36.5 days
  • Top authors: 3five (98.51%)dd32 (2.99%)

Code review

54 tests

User reviews

26 reviews

Install metrics

10,000+ active /141,806 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0541.82 ▼2.08
Dashboard /wp-admin3.34 ▲0.0444.94 ▼6.07
Posts /wp-admin/edit.php3.39 ▲0.0348.46 ▲3.78
Add New Post /wp-admin/post-new.php5.94 ▲0.0586.86 ▼3.31
Media Library /wp-admin/upload.php3.26 ▲0.0336.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.30 ▼1.131.91 ▲0.1242.53 ▼0.12
Dashboard /wp-admin2,210 ▲224.85 ▼0.03107.44 ▼7.9838.19 ▼7.23
Posts /wp-admin/edit.php2,093 ▲12.03 ▲0.0239.65 ▲0.2534.86 ▲1.47
Add New Post /wp-admin/post-new.php1,527 ▲1318.30 ▲0.64585.58 ▼65.0153.36 ▲0.29
Media Library /wp-admin/upload.php1,389 ▲44.24 ▲0.0897.55 ▼8.8940.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

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 === )
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP144117151
PO File32727129
CSS112791
JavaScript1161561

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 code0.35
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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