84% simple-login-form

Code Review | Simple Login Form

WordPress plugin Simple Login Form scored84%from 54 tests.

About plugin

  • Plugin page: simple-login-form
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Aug 22, 2015
  • Latest release: Jul 25, 2022
  • Number of updates: 21
  • Update frequency: every 120.4 days
  • Top authors: amu02aftab (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /9,285 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
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼6.77ms] Passed 4 tests

Server-side resources used by Simple Login Form
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0133.48 ▼6.86
Dashboard /wp-admin3.32 ▼0.0342.02 ▼12.70
Posts /wp-admin/edit.php3.37 ▲0.0144.92 ▲2.74
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.06 ▼10.10
Media Library /wp-admin/upload.php3.24 ▲0.0137.45 ▲2.60

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Simple Login Form
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲10613.17 ▼1.212.32 ▲0.4843.16 ▲0.03
Dashboard /wp-admin2,206 ▲185.90 ▲0.03112.78 ▲10.0942.46 ▲6.39
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0538.48 ▼2.5534.70 ▼4.67
Add New Post /wp-admin/post-new.php1,533 ▲1923.13 ▲5.54651.07 ▲36.6258.30 ▲0.92
Media Library /wp-admin/upload.php1,391 ▲64.23 ▼0.08110.71 ▼13.9348.19 ▼0.01

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • 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 plugin_dir_url() in wp-content/plugins/simple-login-form/simple-login-form.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Front end login form) image required
Please take inspiration from this readme.txt

simple-login-form/simple-login-form.php Passed 13 tests

The primary PHP file in "Simple Login Form" version 1.0.1 is used by WordPress to initiate all plugin functionality
59 characters long description:
Put simple login form on page or template using shortcode .

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin88 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1111651
CSS119537

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
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

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png3.86KB2.24KB▼ 42.02%