67% dx-login-register

Code Review | DX Login Register

WordPress plugin DX Login Register scored 67% from 54 tests.

About plugin

  • Plugin page: dx-login-register
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.8
  • WordPress version: 6.3.1
  • First release: Oct 31, 2013
  • Latest release: Dec 20, 2013
  • Number of updates: 10
  • Update frequency: every 5.0 days
  • Top authors: daxiawp (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active / 12,246 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▲0.21ms] Passed 4 tests

A check of server-side resources used by DX Login Register
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1540.92 ▲3.08
Dashboard /wp-admin3.47 ▲0.1748.87 ▲2.52
Posts /wp-admin/edit.php3.58 ▲0.2347.40 ▲1.71
Add New Post /wp-admin/post-new.php6.05 ▲0.1784.17 ▼6.48
Media Library /wp-admin/upload.php3.39 ▲0.1737.94 ▲3.09
DX Login Register /wp-admin/options-general.php?page=dx_login_register3.3633.77

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for DX Login Register
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4913.31 ▼1.434.60 ▲2.8140.61 ▼1.69
Dashboard /wp-admin2,210 ▲215.80 ▼0.1898.78 ▼22.1937.69 ▼0.67
Posts /wp-admin/edit.php2,090 ▲12.06 ▲0.0135.25 ▲1.1134.90 ▼1.16
Add New Post /wp-admin/post-new.php1,537 ▲1723.45 ▲0.46650.75 ▼43.6463.97 ▲13.26
Media Library /wp-admin/upload.php1,389 ▲44.21 ▲0.02102.34 ▲2.8646.15 ▲0.57
DX Login Register /wp-admin/options-general.php?page=dx_login_register1,1453.0450.4130.95

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=dx_login_register
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=dx_login_register
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/dx-login-register/extends/captcha/captcha.php
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dx-login-register/extends/class-verify.php:9
    • > PHP Notice
      Undefined variable: code in wp-content/plugins/dx-login-register/extends/captcha/class-captcha.php on line 67
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/dx-login-register/dx-login-register.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dx-login-register/extends/class-custom-form.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/dx-login-register/class-settings.php:73

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=dx_login_register
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/options-general.php?page=dx_login_register:55:34)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&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,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/options-general.php?page=dx_login_register
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: register captcha, sign, register, custom register, login register...

dx-login-register/dx-login-register.php 92% from 13 tests

This is the main PHP file of "DX Login Register" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 206 characters long)

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
Success! There were no dangerous files found in this plugin790 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP679158643
PO File14550115
JavaScript16032

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity35.75
▷ Minimum class complexity14.00
▷ Maximum class complexity65.00
Average method complexity4.09
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods45
▷ Static methods00.00%
▷ Public methods3986.67%
▷ Protected methods00.00%
▷ Private methods613.33%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
donate.png2.61KB1.73KB▼ 33.66%