88% wptobe-signinup

Code Review | Wptobe-signinup

WordPress plugin Wptobe-signinup scored 88% from 53 tests.

About plugin

  • Plugin page: wptobe-signinup
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.7
  • WordPress version: 5.8.1
  • First release: Jun 24, 2020
  • Latest release: Jul 12, 2021
  • Number of updates: 72
  • Update frequency: every 5.3 days
  • Top authors: wptobe (100%)

Code review

53 tests

User reviews

1 review

Install metrics

200+ active / 1,856 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.90MB] [CPU: ▼256.59ms] Passed 4 tests

Server-side resources used by Wptobe-signinup
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.9437.65 ▲5.60
Dashboard /wp-admin4.00 ▲0.9448.67 ▲7.15
Posts /wp-admin/edit.php4.04 ▲0.9446.88 ▲8.56
Add New Post /wp-admin/post-new.php6.30 ▲0.8798.17 ▼1,035.80
Media Library /wp-admin/upload.php3.88 ▲0.8735.41 ▼3.31

Server storage [IO: ▲9.29MB] [DB: ▲0.01MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 151 new files
Database: no new tables, 24 new options
New WordPress options
wtb_signin_noti_ko
wtb_profile_noti_ja
wtb_resetpw_noti_ko
wtb_signin_fields
wtb_signin_noti_ja
wtb_resetpw_email_ja
wtb_profile_noti_ko
wtb_signin_noti_en
wtb_signup_noti_ko
wtbsinup_lang
...

Browser metrics Passed 4 tests

A check of browser resources used by Wptobe-signinup
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,664 ▲5816.17 ▲0.618.95 ▲1.1948.24 ▲4.57
Dashboard /wp-admin2,942 ▲896.03 ▲0.17135.63 ▲4.6197.38 ▲5.44
Posts /wp-admin/edit.php2,721 ▲152.69 ▼0.0063.91 ▼2.4297.88 ▲5.95
Add New Post /wp-admin/post-new.php1,863 ▲20619.13 ▲0.33364.90 ▼7.45109.46 ▼1.16
Media Library /wp-admin/upload.php1,790 ▲184.99 ▼0.01146.38 ▼11.64110.25 ▼8.08

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wptobe-signinup/captcha/securimage_show.php
    • > /wp-content/plugins/wptobe-signinup/captcha/securimage_play.php
  • 31× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/wptobe-signinup/skin/enfold/profile-html.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wptobe-signinup/skin/astra/password-reset-html.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wptobe-signinup/skin/oceanwp/password-reset-html.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wptobe-signinup/skin/astra/sign-up-html.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wptobe-signinup/skin/default/sign-up-html.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Securimage' not found in wp-content/plugins/wptobe-signinup/captcha/config.inc.php:69
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wptobe-signinup/skin/default/sign-in-html.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wptobe-signinup/inc/class-email.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wptobe-signinup/skin/black/password-reset-html.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wptobe-signinup/skin/enfold/password-reset-html.php:2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: profile, sign in, login, sign up, memberships

wptobe-signinup/wptobe-signinup.php 92% from 13 tests

The principal PHP file in "Wptobe-signinup" v. 1.1.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected11,864 lines of code in 47 files:
LanguageFilesBlank linesComment linesLines of code
PHP191,4102,0807,682
CSS19113733,285
JavaScript686111547
Markdown1690175
PO File178228175
HTML1100

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity97.42
▷ Minimum class complexity1.00
▷ Maximum class complexity395.00
Average method complexity6.84
▷ Minimum method complexity1.00
▷ Maximum method complexity98.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods195
▷ Static methods147.18%
▷ Public methods13870.77%
▷ Protected methods5729.23%
▷ Private methods00.00%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants61
▷ Global constants1524.59%
▷ Class constants4675.41%
▷ Public constants46100.00%

Plugin size Passed 1 test

Image compression Passed 1 test

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
captcha/images/loading.png1.11KB1.10KB0.44%
captcha/images/refresh.png4.72KB2.44KB▼ 48.36%
captcha/backgrounds/bg6.png41.88KB29.04KB▼ 30.64%
captcha/images/audio_icon.png1.64KB2.04KB0.00%