84% juiz-user-login-by-email

Code Review | Juiz User Log-in by email

WordPress plugin Juiz User Log-in by email scored84%from 54 tests.

About plugin

  • Plugin page: juiz-user-login-b...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.5
  • WordPress version: 6.3.1
  • First release: Sep 15, 2014
  • Latest release: Apr 3, 2016
  • Number of updates: 11
  • Update frequency: every 51.6 days
  • Top authors: CreativeJuiz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,300 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.99ms] Passed 4 tests

An overview of server-side resources used by Juiz User Log-in by email
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.27 ▲0.43
Dashboard /wp-admin3.31 ▲0.0145.27 ▼5.41
Posts /wp-admin/edit.php3.36 ▲0.0145.79 ▼2.59
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.30 ▼8.40
Media Library /wp-admin/upload.php3.24 ▲0.0140.03 ▲7.30

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Juiz User Log-in by email
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.20 ▼1.214.87 ▲3.0041.37 ▼5.52
Dashboard /wp-admin2,209 ▲215.91 ▲1.01101.65 ▼25.6838.85 ▼11.84
Posts /wp-admin/edit.php2,089 ▼32.01 ▼0.0035.47 ▼6.7831.10 ▼3.23
Add New Post /wp-admin/post-new.php1,534 ▼823.20 ▲4.69678.13 ▲74.6558.63 ▲5.04
Media Library /wp-admin/upload.php1,391 ▼04.24 ▼0.01109.11 ▲0.9946.08 ▲3.53

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 were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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 fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/juiz-user-login-by-email/juiz-user-login-by-email.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (The login box modified) image required
You can look at the official readme.txt

juiz-user-login-by-email/juiz-user-login-by-email.php Passed 13 tests

Analyzing the main PHP file in "Juiz User Log-in by email" version 1.0.3
60 characters long description:
Allows user to log in with its email address OR its username

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 plugin135 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PO File54701,063104
PHP2143931

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.64
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png4.99KB4.91KB▼ 1.49%