84% login-registration-kit

Code Review | Login Registration Kit

WordPress plugin Login Registration Kit scored84%from 54 tests.

About plugin

  • Plugin page: login-registratio...
  • Plugin version: 1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.8.1
  • WordPress version: 6.3.1
  • First release: Sep 27, 2021
  • Latest release: Nov 10, 2021
  • Number of updates: 5
  • Update frequency: every 10.8 days
  • Top authors: liondekam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /379 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▲1.01ms] Passed 4 tests

Server-side resources used by Login Registration Kit
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2247.41 ▲0.98
Dashboard /wp-admin3.37 ▲0.0650.76 ▲1.35
Posts /wp-admin/edit.php3.42 ▲0.0755.73 ▲9.09
Add New Post /wp-admin/post-new.php5.91 ▲0.0295.58 ▼4.16
Media Library /wp-admin/upload.php3.31 ▲0.0840.92 ▲5.85

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Login Registration Kit
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,112 ▲36613.58 ▼0.667.22 ▲5.4138.72 ▼2.75
Dashboard /wp-admin2,224 ▲364.83 ▼1.18104.70 ▼4.7339.59 ▼0.56
Posts /wp-admin/edit.php2,107 ▲182.01 ▲0.0139.39 ▲3.7735.04 ▼0.43
Add New Post /wp-admin/post-new.php6,604 ▲5,06222.07 ▲3.91923.49 ▲304.6262.20 ▲10.16
Media Library /wp-admin/upload.php1,403 ▲154.21 ▼0.0297.45 ▼0.6545.19 ▼1.50

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • user_registration_kit_account_page
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_permalink() in wp-content/plugins/login-registration-kit/includes/frontend/views/my-account.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/login-registration-kit/includes/frontend/views/sign-form.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/login-registration-kit/includes/frontend/views/register-form.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: frontend login, user profile, login form, frontend registration, registration

login-registration-kit/login-registration-kit.php 92% from 13 tests

The primary PHP file in "Login Registration Kit" version 1.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 246 characters long)

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
Everything looks great! No dangerous files found in this plugin10,832 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript61,3873725,872
PHP93233302,882
CSS58524893
Sass141445874
JSX151311

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.47
Average class complexity85.20
▷ Minimum class complexity4.00
▷ Maximum class complexity214.00
Average method complexity6.85
▷ Minimum method complexity1.00
▷ Maximum method complexity56.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods72
▷ Static methods1825.00%
▷ Public methods6286.11%
▷ Protected methods22.78%
▷ Private methods811.11%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.11MB with 0.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png71.54KB26.51KB▼ 62.94%
assets/icon-256x256.png40.92KB14.98KB▼ 63.39%
(invalid) img/default-avatar.png2.64KB0.00KB▼ 100.00%