62% uikar-registration

Code Review | UIkar Registration plugin

WordPress plugin UIkar Registration plugin scored 62% from 54 tests.

About plugin

  • Plugin page: uikar-registration
  • Plugin version: 2.1.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3.0
  • WordPress version: 6.3.1
  • First release: Aug 4, 2019
  • Latest release: Aug 9, 2023
  • Number of updates: 8
  • Update frequency: every 183.8 days
  • Top authors: samooel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 430 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.89MB] [CPU: ▼32.87ms] Passed 4 tests

This is a short check of server-side resources used by UIkar Registration plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0840.93 ▼1.33
Dashboard /wp-admin3.05 ▼0.2523.76 ▼22.61
Posts /wp-admin/edit.php3.05 ▼0.3023.25 ▼24.82
Add New Post /wp-admin/post-new.php3.05 ▼2.8322.90 ▼72.19
Media Library /wp-admin/upload.php3.05 ▼0.1721.72 ▼11.87
Edit Registration Settings /wp-admin/options-general.php?page=uikar3.0623.01

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for UIkar Registration plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲413.72 ▼1.062.25 ▲0.3444.98 ▲0.50
Dashboard /wp-admin2,210 ▲44.88 ▲0.02110.89 ▲13.7242.68 ▲2.79
Posts /wp-admin/edit.php2,090 ▲12.04 ▲0.0335.46 ▲0.1631.70 ▼0.38
Add New Post /wp-admin/post-new.php1,545 ▲3119.23 ▲1.81610.94 ▼26.5756.94 ▲2.08
Media Library /wp-admin/upload.php1,395 ▲104.20 ▲0.0497.66 ▼4.4742.91 ▼1.40
Edit Registration Settings /wp-admin/options-general.php?page=uikar7772.0323.3626.06

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • landing_page_id
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=uikar
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

SRP 0% 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
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/uikar-registration/includes/captcha.php
  • 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Warning
      Use of undefined constant UIKAR_REGISTER_BUILDER_DIR - assumed 'UIKAR_REGISTER_BUILDER_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/uikar-registration/includes/landing.php on line 2
    • > PHP Warning
      require_once(UIKAR_REGISTER_BUILDER_DIRincludes/links.php): failed to open stream: No such file or directory in wp-content/plugins/uikar-registration/includes/landing.php on line 2
    • > PHP Warning
      Use of undefined constant UIKAR_REGISTER_BUILDER_DIR - assumed 'UIKAR_REGISTER_BUILDER_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/uikar-registration/includes/login.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/uikar-registration/includes/admin.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/uikar-registration/includes/functions.php:165
    • > PHP Fatal error
      require_once(): Failed opening required 'UIKAR_REGISTER_BUILDER_DIRincludes/links.php' (include_path='.:/usr/share/php') in wp-content/plugins/uikar-registration/includes/login.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'UIKAR_REGISTER_BUILDER_DIRincludes/links.php' (include_path='.:/usr/share/php') in wp-content/plugins/uikar-registration/includes/landing.php on line 2
    • > PHP Warning
      require_once(UIKAR_REGISTER_BUILDER_DIRincludes/links.php): failed to open stream: No such file or directory in wp-content/plugins/uikar-registration/includes/login.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/uikar-registration/includes/links.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/uikar-registration/includes/form.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: registration plugin, uikar, uikar registration

uikar-registration/registration.php 92% from 13 tests

The entry point to "UIkar Registration plugin" version 2.1.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("uikar-registration.php" instead of "registration.php")

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
Success! There were no dangerous files found in this plugin865 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP84937457
PO File2106115258
CSS415101
JavaScript3121849

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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