90% force-members-logon

Code Review | Force Members Logon

WordPress plugin Force Members Logon scored90%from 54 tests.

About plugin

  • Plugin page: force-members-logon
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.0.3
  • WordPress version: 6.3.1
  • First release: Feb 27, 2016
  • Latest release: Jan 10, 2019
  • Number of updates: 5
  • Update frequency: every 209.6 days
  • Top authors: Dean Radish (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,155 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Force Members Logon
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0034.71 ▼7.08
Dashboard /wp-admin3.31 ▼0.0447.36 ▼18.90
Posts /wp-admin/edit.php3.36 ▲0.0044.34 ▼7.95
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.97 ▼12.02
Media Library /wp-admin/upload.php3.24 ▲0.0037.68 ▲2.87

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Force Members Logon
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.31 ▼1.341.58 ▼0.0638.16 ▼1.82
Dashboard /wp-admin2,209 ▲215.91 ▲1.0394.41 ▼27.0639.95 ▼6.51
Posts /wp-admin/edit.php2,086 ▼32.04 ▲0.0334.36 ▼3.1533.39 ▼0.06
Add New Post /wp-admin/post-new.php1,514 ▼1417.62 ▼0.76689.25 ▲82.6364.53 ▲13.94
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0297.85 ▼5.2342.45 ▼2.67

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Looking good! No server-side errors or output on direct access of PHP files

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

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: members, force logon, force login, logon, justin tadlock...

force-members-logon/force-members-logon.php 92% from 13 tests

The primary PHP file in "Force Members Logon" version 1.0.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 262 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin20 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP191320

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code1.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin