90% force-user-login-by-webline

Code Review | Force Login by Webline

WordPress plugin Force Login by Webline scored90%from 54 tests.

About plugin

  • Plugin page: force-user-login-...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-6.1
  • WordPress version: 6.3.1
  • First release: Nov 14, 2014
  • Latest release: Feb 2, 2023
  • Number of updates: 19
  • Update frequency: every 158.0 days
  • Top authors: WeblineIndia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,110 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
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Force Login by Webline
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.00 ▼0.23
Dashboard /wp-admin3.32 ▲0.0144.80 ▼5.81
Posts /wp-admin/edit.php3.37 ▲0.0142.63 ▼1.07
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.16 ▼18.29
Media Library /wp-admin/upload.php3.24 ▲0.0136.16 ▼0.57

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
fl_version
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Force Login by Webline
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.23 ▼0.491.71 ▲0.0744.41 ▲1.18
Dashboard /wp-admin2,211 ▲345.57 ▼0.0087.62 ▼12.7540.46 ▼5.44
Posts /wp-admin/edit.php2,116 ▲161.95 ▼0.0536.03 ▼1.1032.33 ▼3.45
Add New Post /wp-admin/post-new.php1,539 ▲223.00 ▲4.79671.85 ▲72.2062.65 ▼4.60
Media Library /wp-admin/upload.php1,416 ▲224.19 ▼0.09109.40 ▲10.5647.91 ▲3.94

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 7 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • fl_version
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
2 plugin tags: login restriction, force login

force-user-login-by-webline/force-user-login-by-webline.php Passed 13 tests

Analyzing the main PHP file in "Force Login by Webline" version 1.0.4
114 characters long description:
This plugin provides a feature to make your site restricted and user is required to login to view protected pages.

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
Success! There were no dangerous files found in this plugin90 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2351690

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.53
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%
Functions10
▷ Named functions10100.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
No PNG files were detected