10% wp-login-register

Code Review | WP Login Register

WordPress plugin WP Login Register scored10%from 54 tests.

About plugin

  • Plugin page: wp-login-register
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 10, 2018
  • Latest release: Jan 10, 2018
  • Number of updates: 10
  • Update frequency: every 0.1 days
  • Top authors: kriss73 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /712 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/wp-login-register/wp-login-register.php+133
    Undefined variable: wpdb

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.04ms] Passed 4 tests

A check of server-side resources used by WP Login Register
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.84 ▼2.24
Dashboard /wp-admin3.31 ▲0.0049.20 ▲1.21
Posts /wp-admin/edit.php3.36 ▲0.0047.41 ▼4.46
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.84 ▼15.04
Media Library /wp-admin/upload.php3.23 ▲0.0035.01 ▼2.40

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by WP Login Register
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▲0.161.58 ▼0.1341.13 ▼1.01
Dashboard /wp-admin2,198 ▲245.61 ▼0.0686.03 ▼5.6740.00 ▲1.28
Posts /wp-admin/edit.php2,100 ▼01.98 ▲0.0337.35 ▼3.1733.91 ▼5.70
Add New Post /wp-admin/post-new.php1,535 ▲918.33 ▼4.77657.15 ▼28.1877.80 ▲8.84
Media Library /wp-admin/upload.php1,403 ▼04.18 ▼0.0698.07 ▼7.4751.01 ▲5.19

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/wp-login-register/wp-login-register.php+133
    Undefined variable: wpdb
  • The plugin did not uninstall successfully, leaving 2 files (0.01MB) in the plugin directory
    • (new file) readme.txt
    • (new file) wp-login-register.php
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • recovery_mode_email_last_sent
    • can_compress_scripts
    • 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
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-login-register/wp-login-register.php:46

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 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
These attributes need to be fixed:
  • Requires at least: Version not formatted correctly
  • Requires php: Version not formatted correctly
The official readme.txt is a good inspiration

wp-login-register/wp-login-register.php 77% from 13 tests

Analyzing the main PHP file in "WP Login Register" version 1.0.2
You should first fix the following items:
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("")
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Domain Path: Prefix the domain path with a forward slash character ("/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected186 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13658186

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods571.43%
▷ Protected methods00.00%
▷ Private methods228.57%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin