84% login-form-anywhere

Code Review | Login Form Anywhere

WordPress plugin Login Form Anywhere scored84%from 54 tests.

About plugin

  • Plugin page: login-form-anywhere
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4
  • WordPress version: 6.3.1
  • First release: Sep 9, 2015
  • Latest release: Feb 22, 2016
  • Number of updates: 25
  • Update frequency: every 6.6 days
  • Top authors: rizwanchaudhry (56%)BCSWPplugins (48%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,374 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.10ms] Passed 4 tests

This is a short check of server-side resources used by Login Form Anywhere
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.34 ▼4.89
Dashboard /wp-admin3.32 ▲0.0245.65 ▼7.07
Posts /wp-admin/edit.php3.37 ▲0.0245.59 ▼0.57
Add New Post /wp-admin/post-new.php5.90 ▲0.0292.09 ▲0.14
Media Library /wp-admin/upload.php3.24 ▲0.0239.51 ▲4.18

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Login Form Anywhere
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲9113.20 ▼1.391.80 ▲0.1240.34 ▼5.68
Dashboard /wp-admin2,228 ▲405.83 ▲0.0495.41 ▼19.1668.93 ▲24.67
Posts /wp-admin/edit.php2,117 ▲282.15 ▲0.1437.12 ▲0.9735.24 ▲2.28
Add New Post /wp-admin/post-new.php1,690 ▲15422.73 ▼0.45716.17 ▲41.1258.98 ▲2.07
Media Library /wp-admin/upload.php1,404 ▲194.12 ▼0.15109.44 ▲9.9451.94 ▲2.73

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% 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 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/login-form-anywhere/loginfrom.php:55

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 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: login form shortcode, add login form to page, add login form to post, embed login form, add login form to widget

login-form-anywhere/loginfrom.php 85% from 13 tests

"Login Form Anywhere" version 1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("login-form-anywhere.php" instead of "loginfrom.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 198 characters long)

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
No dangerous file extensions were detected94 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1352185
HTML1109

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.49
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 PNG files occupy 0.17MB with 0.13MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png39.07KB10.60KB▼ 72.88%
assets/screenshot-2.png74.23KB20.02KB▼ 73.03%
assets/screenshot-3.png65.33KB16.56KB▼ 74.66%