10% youme-id

Code Review | YouMe ID

WordPress plugin YouMe ID scored10%from 54 tests.

About plugin

  • Plugin page: youme-id
  • Plugin version: 0.8.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.2.2
  • WordPress version: 6.3.1
  • First release: Sep 1, 2019
  • Latest release: Jan 9, 2020
  • Number of updates: 15
  • Update frequency: every 8.9 days
  • Top authors: youmeid (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /654 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/youme-id/ym_login.php+17
    Undefined index: unbind

Server metrics [RAM: ▼1.78MB] [CPU: ▼52.59ms] Passed 4 tests

Server-side resources used by YouMe ID
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.21 ▼1.265.66 ▼35.98
Dashboard /wp-admin2.23 ▼1.086.97 ▼43.49
Posts /wp-admin/edit.php2.23 ▼1.137.32 ▼46.57
Add New Post /wp-admin/post-new.php2.23 ▼3.667.24 ▼84.32
Media Library /wp-admin/upload.php2.23 ▼1.005.73 ▼33.35
YouMe ID /wp-admin/options-general.php?page=youme-id/admin.php2.236.72

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 14 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
ymid_failed_login_allow
ymid_redirect_option
ymid_ym_login
ymid_captcha_secret
ymid_forms
ymid_captcha_key
ymid_redirect_page
theysaidso_admin_options
...

Browser metrics Passed 4 tests

YouMe ID: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.28 ▼0.081.75 ▲0.2144.03 ▼3.35
Dashboard /wp-admin2,199 ▲195.56 ▲0.0390.32 ▲1.1341.34 ▲0.80
Posts /wp-admin/edit.php2,107 ▲72.05 ▲0.0440.65 ▼1.6234.24 ▼2.83
Add New Post /wp-admin/post-new.php1,529 ▲323.32 ▼0.02619.79 ▼77.6265.32 ▲14.35
Media Library /wp-admin/upload.php1,401 ▼24.17 ▼0.07105.31 ▲5.1443.54 ▼0.54
YouMe ID /wp-admin/options-general.php?page=youme-id/admin.php1,0122.1724.1431.01

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/youme-id/ym_login.php+17
    Undefined index: unbind
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=youme-id/admin.php
    • > Notice in wp-content/plugins/youme-id/ym_login.php+17
    Undefined index: unbind

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/youme-id/admin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/youme-id/account.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: comments, bots, login, password, lastcaptcha...

youme-id/youme-id.php 85% from 13 tests

The main file in "YouMe ID" v. 0.8.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin861 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP711269851
CSS11010

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity25.00
▷ Minimum class complexity6.00
▷ Maximum class complexity44.00
Average method complexity4.27
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods22
▷ Static methods1986.36%
▷ Public methods1881.82%
▷ Protected methods00.00%
▷ Private methods418.18%
Functions11
▷ Named functions11100.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
6 PNG files occupy 0.15MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/screenshort/screenshot-4.png18.65KB7.30KB▼ 60.84%
assets/images/screenshort/screenshot-3.png25.11KB10.30KB▼ 58.98%
assets/images/screenshort/screenshot-2.png35.12KB13.55KB▼ 61.41%
assets/images/screenshort/screenshot-1.png19.03KB7.86KB▼ 58.71%
assets/images/screenshort/screenshot-5.png20.11KB8.29KB▼ 58.80%