10% ciusan-register-login

Code Review | Ciusan Register Login

WordPress plugin Ciusan Register Login scored10%from 54 tests.

About plugin

  • Plugin page: ciusan-register-l...
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.1.1
  • WordPress version: 6.3.1
  • First release: Feb 12, 2015
  • Latest release: Mar 29, 2015
  • Number of updates: 24
  • Update frequency: every 1.9 days
  • Top authors: k0z3y (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

50+ active /17,643 total downloads

Benchmarks

Plugin footprint 40% 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
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/ciusan-register-login/functions.php+1
    Use of undefined constant ciusan_submit_donation - assumed 'ciusan_submit_donation' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼1.84MB] [CPU: ▼52.94ms] Passed 4 tests

Server-side resources used by Ciusan Register Login
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.314.54 ▼35.11
Dashboard /wp-admin2.17 ▼1.136.79 ▼41.89
Posts /wp-admin/edit.php2.17 ▼1.187.60 ▼45.27
Add New Post /wp-admin/post-new.php2.17 ▼3.717.68 ▼89.49
Media Library /wp-admin/upload.php2.17 ▼1.066.17 ▼25.72
Submit a Donation /wp-admin/admin.php?page=ciusan-submit-donation2.176.54
Register Login /wp-admin/admin.php?page=ciusan-register-login2.177.49

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ciusan Register Login
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,106 ▲34515.03 ▲0.8412.69 ▲10.9243.01 ▲1.94
Dashboard /wp-admin2,221 ▲415.79 ▲0.11100.64 ▲10.6784.40 ▲44.32
Posts /wp-admin/edit.php2,144 ▲412.83 ▲0.8450.54 ▲13.9935.99 ▲1.17
Add New Post /wp-admin/post-new.php1,564 ▲3623.82 ▲0.74618.43 ▼80.5433.27 ▼29.48
Media Library /wp-admin/upload.php1,438 ▲385.34 ▲0.95105.94 ▼7.0375.13 ▲27.21
Submit a Donation /wp-admin/admin.php?page=ciusan-submit-donation9402.7131.5528.09
Register Login /wp-admin/admin.php?page=ciusan-register-login1,0592.6930.1329.48

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
    • > Warning in wp-content/plugins/ciusan-register-login/functions.php+1
    Use of undefined constant ciusan_submit_donation - assumed 'ciusan_submit_donation' (this will throw an Error in a future version of PHP)
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ciusan-register-login
    • > Warning in wp-content/plugins/ciusan-register-login/functions.php+1
    Use of undefined constant ciusan_submit_donation - assumed 'ciusan_submit_donation' (this will throw an Error in a future version of PHP)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ciusan-register-login
    • > Warning in wp-content/plugins/ciusan-register-login/ciusan-register-login.php+50
    Use of undefined constant ciusan_admin__head - assumed 'ciusan_admin__head' (this will throw an Error in a future version of PHP)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ciusan-register-login
    • > User deprecated in wp-includes/functions.php+5453
    Function add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead.
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ciusan-register-login
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/admin.php?page=ciusan-register-login
    • > Warning in wp-content/plugins/ciusan-register-login/admin_menu.php+14
    Use of undefined constant login_title - assumed 'login_title' (this will throw an Error in a future version of PHP)
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ciusan-register-login
    • > Notice in wp-content/plugins/ciusan-register-login/admin_menu.php+94
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/admin.php?page=ciusan-register-login
    • > Warning in wp-content/plugins/ciusan-register-login/admin_menu.php+19
    Use of undefined constant register_title - assumed 'register_title' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/admin.php?page=ciusan-register-login
    • > Warning in wp-content/plugins/ciusan-register-login/admin_menu.php+24
    Use of undefined constant forgot_password_title - assumed 'forgot_password_title' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/admin.php?page=ciusan-register-login
    • > Warning in wp-content/plugins/ciusan-register-login/admin_menu.php+39
    Use of undefined constant button_login - assumed 'button_login' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/admin.php?page=ciusan-register-login
    • > Warning in wp-content/plugins/ciusan-register-login/admin_menu.php+44
    Use of undefined constant button_register - assumed 'button_register' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/admin.php?page=ciusan-register-login
    • > Warning in wp-content/plugins/ciusan-register-login/admin_menu.php+49
    Use of undefined constant button_forgot_password - assumed 'button_forgot_password' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/admin.php?page=ciusan-register-login
    • > Warning in wp-content/plugins/ciusan-register-login/admin_menu.php+54
    Use of undefined constant button_class - assumed 'button_class' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/admin.php?page=ciusan-register-login
    • > Warning in wp-content/plugins/ciusan-register-login/admin_menu.php+69
    Use of undefined constant login_redirect_URL - assumed 'login_redirect_URL' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/admin.php?page=ciusan-register-login
    • > Warning in wp-content/plugins/ciusan-register-login/admin_menu.php+74
    Use of undefined constant register_redirect_URL - assumed 'register_redirect_URL' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/admin.php?page=ciusan-register-login
    • > Warning in wp-content/plugins/ciusan-register-login/admin_menu.php+89
    Use of undefined constant Google_Site_Key - assumed 'Google_Site_Key' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/admin.php?page=ciusan-register-login
    • > Warning in wp-content/plugins/ciusan-register-login/admin_menu.php+94
    Use of undefined constant Google_Secret_Key - assumed 'Google_Secret_Key' (this will throw an Error in a future version of PHP)

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
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ciusan-register-login/ciusan-register-login.php:53
    • > PHP Warning
      Use of undefined constant ciusan_submit_donation - assumed 'ciusan_submit_donation' (this will throw an Error in a future version of PHP) in wp-content/plugins/ciusan-register-login/functions.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ciusan-register-login/admin_menu.php:1
    • > PHP Warning
      Use of undefined constant ciusan_submit_donation - assumed 'ciusan_submit_donation' (this will throw an Error in a future version of PHP) in wp-content/plugins/ciusan-register-login/functions.php on line 1

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ciusan-register-login
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/ciusan-register-login/assets/js/ciusan-register-login.js?ver=6.3.1:3:36)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ciusan-register-login
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function
    • > GET request to /wp-admin/admin.php?page=ciusan-submit-donation
    • > Network (severe)
    https://www.skrill.com/fileadmin/templates/images/skrill-logo.svg/ - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (Login form.), #2 (Registration form.), #3 (Forgot password form.), #4 (All fields required.), #5 (Error form.), #6 (All settings on WP Dashboard.)
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

ciusan-register-login/ciusan-register-login.php Passed 13 tests

"Ciusan Register Login" version 2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
68 characters long description:
Showing login, register or lost password form modal popup with ajax.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,712 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript31541241,136
PHP44642415
CSS200161

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.30MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png40.99KB21.92KB▼ 46.51%
screenshot-4.png45.94KB23.91KB▼ 47.94%
screenshot-1.png40.91KB21.98KB▼ 46.28%
screenshot-5.png41.77KB22.08KB▼ 47.13%
screenshot-6.png62.74KB25.27KB▼ 59.73%