10% baw-more-secure-login

Code Review | More Secure Login

WordPress plugin More Secure Login scored10%from 54 tests.

About plugin

  • Plugin page: baw-more-secure-l...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.3.2
  • WordPress version: 6.3.1
  • First release: Feb 6, 2012
  • Latest release: Oct 30, 2012
  • Number of updates: 17
  • Update frequency: every 15.9 days
  • Top authors: juliobox (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /5,113 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • Install procedure had errors
    • > Compile error in wp-content/plugins/baw-more-secure-login/bawmsl.php+331
    'continue' not in the 'loop' or 'switch' context

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

This is a short check of server-side resources used by More Secure Login
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0044.46 ▼0.12
Dashboard /wp-admin3.31 ▲0.0047.68 ▼8.89
Posts /wp-admin/edit.php3.36 ▲0.0050.29 ▲1.56
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.46 ▼8.15
Media Library /wp-admin/upload.php3.23 ▲0.0036.93 ▲2.73

Server storage [IO: ▲0.04MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

More Secure Login: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.42 ▼0.191.73 ▼0.1944.26 ▼1.60
Dashboard /wp-admin2,195 ▲215.51 ▼0.0898.12 ▼8.3540.28 ▼4.72
Posts /wp-admin/edit.php2,100 ▼01.97 ▲0.0136.83 ▼0.7836.27 ▼1.98
Add New Post /wp-admin/post-new.php1,526 ▼223.16 ▼0.07673.63 ▲24.0269.75 ▼0.06
Media Library /wp-admin/upload.php1,397 ▼64.19 ▼0.0198.04 ▼2.4644.48 ▲0.10

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      'continue' not in the 'loop' or 'switch' context in wp-content/plugins/baw-more-secure-login/bawmsl.php on line 331

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed: The official readme.txt might help

baw-more-secure-login/bawmsl.php 92% from 13 tests

The primary PHP file in "More Secure Login" version 1.0.4 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("baw-more-secure-login.php" instead of "bawmsl.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected422 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP122152325
PO File1345097

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions15
▷ Named functions15100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/help.png0.79KB0.79KB0.00%