79% jvh-easy-login

Code Review | JVH Easy login

WordPress plugin JVH Easy login scored79%from 54 tests.

About plugin

  • Plugin page: jvh-easy-login
  • Plugin version: 1.3.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2
  • WordPress version: 6.3.1
  • First release: Mar 13, 2020
  • Latest release: Mar 28, 2023
  • Number of updates: 23
  • Update frequency: every 48.3 days
  • Top authors: Lars- (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,072 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.00MB] [CPU: ▲0.55ms] Passed 4 tests

An overview of server-side resources used by JVH Easy login
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0137.42 ▼3.32
Dashboard /wp-admin3.31 ▲0.0144.82 ▼4.22
Posts /wp-admin/edit.php3.36 ▲0.0047.11 ▲4.13
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.70 ▲8.54
Media Library /wp-admin/upload.php3.23 ▲0.0037.74 ▲5.62

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

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

Browser metrics Passed 4 tests

Checking browser requirements for JVH Easy login
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.33 ▼1.251.61 ▼0.3240.69 ▼7.55
Dashboard /wp-admin2,206 ▲184.82 ▼0.09109.63 ▼6.5043.95 ▼2.25
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0339.92 ▲2.0838.12 ▲5.37
Add New Post /wp-admin/post-new.php1,547 ▲1318.40 ▼4.82652.63 ▲24.5072.16 ▲5.77
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.04109.67 ▲13.6446.72 ▲4.30

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/jvh-easy-login/templates/login.php
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Undefined variable: token in wp-content/plugins/jvh-easy-login/templates/login.php on line 74
    • > PHP Notice
      Undefined variable: token in wp-content/plugins/jvh-easy-login/templates/login.php on line 58
    • > PHP Notice
      Undefined variable: approvalUuid in wp-content/plugins/jvh-easy-login/templates/login.php on line 67
    • > PHP Notice
      Undefined variable: token in wp-content/plugins/jvh-easy-login/templates/login.php on line 48
    • > PHP Notice
      Undefined variable: token in wp-content/plugins/jvh-easy-login/templates/login.php on line 70
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/jvh-easy-login/jvh-easy-login.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: jvh

jvh-easy-login/jvh-easy-login.php Passed 13 tests

Analyzing the main PHP file in "JVH Easy login" version 1.3.1
65 characters long description:
This plugin is for JVH webbouw to securely login to this website.

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
Success! There were no dangerous files found in this plugin3,396 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS31821003,187
PHP44142191
SVG10018

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods114.29%
▷ Protected methods00.00%
▷ Private methods685.71%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected