10% rkm-login

Code Review | RKM Custom Login

WordPress plugin RKM Custom Login scored10%from 54 tests.

About plugin

  • Plugin page: rkm-login
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.0.2
  • WordPress version: 6.3.1
  • First release: Sep 22, 2022
  • Latest release: Sep 27, 2022
  • Number of updates: 13
  • Update frequency: every 0.5 days
  • Top authors: krajesh0018 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,514 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/rkm-login/rkmlogin.php+230
    Trying to get property 'post_content' of non-object

Server metrics [RAM: ▼1.96MB] [CPU: ▼59.05ms] Passed 4 tests

An overview of server-side resources used by RKM Custom Login
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.445.02 ▼41.36
Dashboard /wp-admin2.05 ▼1.266.16 ▼50.14
Posts /wp-admin/edit.php2.05 ▼1.318.62 ▼48.94
Add New Post /wp-admin/post-new.php2.05 ▼3.848.02 ▼95.74
Media Library /wp-admin/upload.php2.05 ▼1.188.01 ▼29.17

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
rkm_post_slug
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by RKM Custom Login
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲4013.31 ▼1.074.82 ▲2.7248.64 ▲7.26
Dashboard /wp-admin2,202 ▲114.83 ▼0.09122.08 ▲5.1483.08 ▲39.94
Posts /wp-admin/edit.php2,106 ▲172.05 ▼0.0141.37 ▲2.2137.27 ▲2.65
Add New Post /wp-admin/post-new.php1,533 ▲523.34 ▲5.43747.81 ▲95.7956.48 ▼2.33
Media Library /wp-admin/upload.php1,390 ▲54.18 ▲0.00105.69 ▼5.2482.40 ▲32.47

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/rkm-login/rkmlogin.php+230
    Trying to get property 'post_content' of non-object
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • rkm_post_slug
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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
The following issues need your attention
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/rkm-login/uninstall.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rkm-login/rkmlogin.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: login page, login, custom login, login customize, create login

rkm-login/rkmlogin.php 77% from 13 tests

This is the main PHP file of "RKM Custom Login" version 1.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("rkm-login.php" instead of "rkmlogin.php")
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Domain Path: The domain path folder was not found ("/languages")

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
There were no executable files found in this plugin221 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23252221

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.34MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/rkmlogin.png0.71KB0.76KB0.00%
assets/img/rkmbcakground.png309.69KB183.00KB▼ 40.91%
assets/img/rkmlogin02.png1.09KB1.05KB▼ 3.50%
assets/img/rkmlogin2.png25.71KB11.37KB▼ 55.80%
assets/img/login.png12.00KB5.96KB▼ 50.35%