84% tismy-user-profile-upload

Code Review | Tismy User Profile Upload

WordPress plugin Tismy User Profile Upload scored84%from 54 tests.

About plugin

  • Plugin page: tismy-user-profil...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5
  • WordPress version: 6.3.1
  • First release: Apr 21, 2015
  • Latest release: Apr 19, 2016
  • Number of updates: 11
  • Update frequency: every 33.1 days
  • Top authors: erichmond (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

70+ active /3,620 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼10.51ms] Passed 4 tests

An overview of server-side resources used by Tismy User Profile Upload
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.97 ▼10.68
Dashboard /wp-admin3.34 ▼0.0052.96 ▼16.05
Posts /wp-admin/edit.php3.46 ▲0.1053.54 ▼0.18
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.08 ▼15.12
Media Library /wp-admin/upload.php3.24 ▲0.0140.31 ▲2.45

Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Tismy User Profile Upload
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,058 ▲31215.13 ▲0.767.43 ▲5.6041.75 ▼6.83
Dashboard /wp-admin2,354 ▲1666.48 ▲1.57133.60 ▲14.7843.81 ▲2.24
Posts /wp-admin/edit.php2,260 ▲1683.39 ▲1.3855.27 ▲18.9041.42 ▲8.23
Add New Post /wp-admin/post-new.php1,676 ▲15722.14 ▼1.08627.36 ▼28.1131.80 ▼33.75
Media Library /wp-admin/upload.php1,399 ▲114.22 ▲0.0183.35 ▼38.0143.87 ▼5.10

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/tismy-user-profile-upload/public/partials/tismy-user-profile-upload-public-display.php
    • > /wp-content/plugins/tismy-user-profile-upload/admin/partials/tismy-user-profile-upload-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === tismy-user-profile-upload === )
Please take inspiration from this readme.txt

tismy-user-profile-upload/tismy-user-profile-upload.php Passed 13 tests

The main file in "Tismy User Profile Upload" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
124 characters long description:
Upload your own user profile picture rather than falling back to the default or having your users create a Gravatar account.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin321 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP12139547246
JavaScript34111265
CSS31810

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity1.52
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods27
▷ Static methods27.41%
▷ Public methods2281.48%
▷ Protected methods00.00%
▷ Private methods518.52%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin