84% juvo-ws-form-login

Code Review | JUVO Login for WS-Form

WordPress plugin JUVO Login for WS-Form scored 84% from 54 tests.

About plugin

  • Plugin page: juvo-ws-form-login
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.1
  • WordPress version: 6.3.1
  • First release: Dec 22, 2022
  • Latest release: Jan 10, 2023
  • Number of updates: 6
  • Update frequency: every 3.2 days
  • Top authors: juvodesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 202 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.14MB] [CPU: ▼5.49ms] Passed 4 tests

This is a short check of server-side resources used by JUVO Login for WS-Form
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.90 ▼3.96
Dashboard /wp-admin3.47 ▲0.1649.11 ▲0.31
Posts /wp-admin/edit.php3.51 ▲0.1649.78 ▼6.34
Add New Post /wp-admin/post-new.php6.06 ▲0.1886.69 ▼11.98
Media Library /wp-admin/upload.php3.39 ▲0.1635.88 ▲4.62
WS-Forms Login /wp-admin/options-general.php?page=wsform_login3.7637.12

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

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

Browser metrics Passed 4 tests

JUVO Login for WS-Form: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,936 ▲19013.70 ▼0.945.70 ▲3.8345.04 ▲8.44
Dashboard /wp-admin2,234 ▲465.03 ▲0.09109.87 ▲0.4939.38 ▼6.43
Posts /wp-admin/edit.php2,121 ▲322.41 ▲0.3641.30 ▼2.0034.58 ▼2.21
Add New Post /wp-admin/post-new.php1,696 ▲17722.35 ▼0.83656.52 ▲29.9338.11 ▼9.33
Media Library /wp-admin/upload.php1,416 ▲314.37 ▲0.14102.72 ▼1.0642.45 ▼3.32
WS-Forms Login /wp-admin/options-general.php?page=wsform_login9432.1833.2028.61

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 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 39× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/juvo-ws-form-login/vendor/cmb2/cmb2/includes/types/CMB2_Type_Oembed.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/juvo-ws-form-login/vendor/cmb2/cmb2/includes/types/CMB2_Type_Colorpicker.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Select' not found in wp-content/plugins/juvo-ws-form-login/vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Select_Hierarchical.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_REST_Controller_Boxes' not found in wp-content/plugins/juvo-ws-form-login/vendor/cmb2/cmb2/includes/rest-api/CMB2_REST_Controller_Fields.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/juvo-ws-form-login/vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/juvo-ws-form-login/vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Radio.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_REST_Controller' not found in wp-content/plugins/juvo-ws-form-login/vendor/cmb2/cmb2/includes/rest-api/CMB2_REST_Controller_Boxes.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/juvo-ws-form-login/vendor/cmb2/cmb2/example-functions.php:105
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/juvo-ws-form-login/vendor/cmb2/cmb2/includes/types/CMB2_Type_Picker_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/juvo-ws-form-login/vendor/cmb2/cmb2/includes/types/CMB2_Type_Text.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: comments, spam

juvo-ws-form-login/wsform-login.php 85% from 13 tests

The primary PHP file in "JUVO Login for WS-Form" version 1.0.4 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • 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
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("juvo-ws-form-login.php" instead of "wsform-login.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin75,265 lines of code in 262 files:
LanguageFilesBlank linesComment linesLines of code
PO File12014,31518,50232,323
JSON70025,989
PHP812,5407,2328,448
CSS142551,1914,581
JavaScript153845991,574
Sass19306291,419
Markdown52880915
XML10016

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity17.73
▷ Minimum class complexity1.00
▷ Maximum class complexity188.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes83
▷ Abstract classes910.84%
▷ Concrete classes7489.16%
▷ Final classes00.00%
Methods622
▷ Static methods11117.85%
▷ Public methods52283.92%
▷ Protected methods8914.31%
▷ Private methods111.77%
Functions41
▷ Named functions3995.12%
▷ Anonymous functions24.88%
Constants14
▷ Global constants750.00%
▷ Class constants750.00%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/cmb2/cmb2/images/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%
vendor/cmb2/cmb2/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
vendor/cmb2/cmb2/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
vendor/cmb2/cmb2/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
vendor/cmb2/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%