79% nvv-login-control

Code Review | NVV Login Control

WordPress plugin NVV Login Control scored79%from 54 tests.

About plugin

  • Plugin page: nvv-login-control
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.7.1
  • WordPress version: 6.3.1
  • First release: Apr 14, 2021
  • Latest release: Apr 15, 2021
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: nvvdesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /387 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲1.55MB] [CPU: ▲2.81ms] Passed 4 tests

A check of server-side resources used by NVV Login Control
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /5.01 ▲1.5555.27 ▲11.78
Dashboard /wp-admin4.86 ▲1.5673.41 ▲15.60
Posts /wp-admin/edit.php4.97 ▲1.6166.59 ▲17.95
Add New Post /wp-admin/post-new.php7.45 ▲1.57101.34 ▼30.75
Media Library /wp-admin/upload.php4.76 ▲1.5351.02 ▲14.62
NVV Login Control options /wp-admin/options-general.php?page=nvv_login_control_options4.8972.65

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 469 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for NVV Login Control
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,061 ▲30018.55 ▲4.021.65 ▼0.0742.02 ▼3.70
Dashboard /wp-admin2,470 ▲2908.88 ▲3.21170.00 ▲70.5837.65 ▼9.29
Posts /wp-admin/edit.php2,401 ▲2986.09 ▲4.1176.07 ▲41.5834.41 ▼1.29
Add New Post /wp-admin/post-new.php1,601 ▲7519.82 ▼3.56731.09 ▲26.5938.38 ▼14.54
Media Library /wp-admin/upload.php1,538 ▲1416.52 ▲2.31107.89 ▲2.2544.14 ▼2.31
NVV Login Control options /wp-admin/options-general.php?page=nvv_login_control_options1,87710.06283.1437.10

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/nvv-login-control/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
  • 112× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/nvv-login-control/vendor/htmlburger/carbon-fields/core/Field/Media_Gallery_Field.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Fulfillable\\Translator\\Translator' not found in wp-content/plugins/nvv-login-control/vendor/htmlburger/carbon-fields/core/Container/Fulfillable/Translator/Array_Translator.php:10
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/nvv-login-control/vendor/htmlburger/carbon-fields/templates/Container/nav_menu_item.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/nvv-login-control/vendor/htmlburger/carbon-fields/core/Field/Broken_Field.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Predefined_Options_Field' not found in wp-content/plugins/nvv-login-control/vendor/htmlburger/carbon-fields/core/Field/Multiselect_Field.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Service\\Service' not found in wp-content/plugins/nvv-login-control/vendor/htmlburger/carbon-fields/core/Service/Legacy_Storage_Service_v_1_5.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/nvv-login-control/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Ancestor_ID_Condition.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/nvv-login-control/vendor/htmlburger/carbon-fields/core/Field/Textarea_Field.php:8
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/nvv-login-control/vendor/htmlburger/carbon-fields/templates/Container/widget.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/nvv-login-control/vendor/htmlburger/carbon-fields/core/Container/Condition/Term_Condition.php:30

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 Passed 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
8 plugin tags: control, toolbar, redirect, authorization, multilanguage...

nvv-login-control/nvv-login-control.php Passed 13 tests

The entry point to "NVV Login Control" version 1.0.0 is a PHP file that has certain tags in its header comment area
130 characters long description:
Customizable authorization page. Authorization on the site on behalf of any user. Recaptcha V3. Site closure for maintenance. SEO.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin28,373 lines of code in 414 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1715,1878,45912,922
PHP1542,6506,6579,264
PO File278741,0752,337
Sass4833801,764
CSS73251,1391,658
JSON400360
Markdown324068

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity8.31
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity2.04
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces22
Interfaces5
Traits0
Classes121
▷ Abstract classes119.09%
▷ Concrete classes11090.91%
▷ Final classes10.91%
Methods898
▷ Static methods9010.02%
▷ Public methods72981.18%
▷ Protected methods16518.37%
▷ Private methods40.45%
Functions140
▷ Named functions5438.57%
▷ Anonymous functions8661.43%
Constants29
▷ Global constants620.69%
▷ Class constants2379.31%
▷ Public constants23100.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
PNG images were not found in this plugin