10% user-identification

Code Review | User Identification

WordPress plugin User Identification scored10%from 54 tests.

About plugin

  • Plugin page: user-identification
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.5
  • WordPress version: 6.3.1
  • First release: Oct 18, 2020
  • Latest release: Oct 24, 2020
  • Number of updates: 6
  • Update frequency: every 1.8 days
  • Top authors: hirofumi2012 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /363 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/user-identification/user-identification.php+288
    Undefined variable: pagenow

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.04ms] Passed 4 tests

A check of server-side resources used by User Identification
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.56 ▼2.40
Dashboard /wp-admin3.32 ▲0.0248.44 ▼2.45
Posts /wp-admin/edit.php3.37 ▲0.0144.55 ▲0.86
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.96 ▼13.94
Media Library /wp-admin/upload.php3.24 ▲0.0133.81 ▼1.35

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for User Identification
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.19 ▼1.235.29 ▲3.2942.79 ▼3.43
Dashboard /wp-admin2,203 ▲125.83 ▼0.02104.57 ▲2.1439.07 ▼6.06
Posts /wp-admin/edit.php2,086 ▼31.98 ▼0.0236.24 ▲1.7030.22 ▼5.40
Add New Post /wp-admin/post-new.php1,538 ▲1923.28 ▲0.18679.04 ▼18.4053.01 ▼4.56
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0395.99 ▼14.8640.56 ▼7.16

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 fix the following items
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/user-identification/views/settings-field.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-identification/user-identification.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/user-identification/views/output.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/user-identification/views/input.php:1

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 Passed 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
1 plugin tags: identification

user-identification/user-identification.php Passed 13 tests

The entry point to "User Identification" version 1.0.0 is a PHP file that has certain tags in its header comment area
43 characters long description:
Upload the Identification file with safety.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin200 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP44373200

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin