83% miniorange-radius-client

Code Review | RADIUS Client (RADIUS Login)

WordPress plugin RADIUS Client (RADIUS Login) scored 83% from 54 tests.

About plugin

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,190 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.21MB] [CPU: ▼8.18ms] Passed 4 tests

An overview of server-side resources used by RADIUS Client (RADIUS Login)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2068.03 ▼9.61
Dashboard /wp-admin3.52 ▲0.2191.00 ▼3.01
Posts /wp-admin/edit.php3.63 ▲0.2789.25 ▼17.73
Add New Post /wp-admin/post-new.php6.12 ▲0.23160.67 ▼2.36
Media Library /wp-admin/upload.php3.44 ▲0.2165.64 ▲4.35
Upgrade Plan /wp-admin/admin.php?page=mo_radius_licence3.4157.92
Support /wp-admin/admin.php?page=mo_radius_support3.4166.65
Configure Radius /wp-admin/admin.php?page=mo_radius_settings3.4159.93
Account Setup /wp-admin/admin.php?page=mo_radius_account_setup3.4166.26

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 31 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
host_name
new_registration
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for RADIUS Client (RADIUS Login)
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9513.31 ▼0.9412.01 ▲8.4174.31 ▼2.46
Dashboard /wp-admin2,231 ▲464.98 ▼0.96185.62 ▼0.80141.01 ▲52.02
Posts /wp-admin/edit.php2,129 ▲342.09 ▲0.0767.89 ▼6.2369.58 ▼7.44
Add New Post /wp-admin/post-new.php1,445 ▲4817.88 ▲0.041,022.37 ▲43.2492.69 ▲20.54
Media Library /wp-admin/upload.php1,425 ▲434.23 ▲0.03179.10 ▼27.82135.37 ▲33.59
Upgrade Plan /wp-admin/admin.php?page=mo_radius_licence1,0721.7246.0894.91
Support /wp-admin/admin.php?page=mo_radius_support2,2772.1963.3660.62
Configure Radius /wp-admin/admin.php?page=mo_radius_settings1,1751.7447.0356.79
Account Setup /wp-admin/admin.php?page=mo_radius_account_setup2,3852.2165.8957.11

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Crypt_CHAP' not found in wp-content/plugins/miniorange-radius-client/includes/lib/Crypt/CHAP/class-crypt-chap-msv1.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Crypt_CHAP_MSv1' not found in wp-content/plugins/miniorange-radius-client/includes/lib/Crypt/CHAP/class-crypt-chap-msv2.php:18

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)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots need descriptions #2, #3 in miniorange-radius-client/assets to your readme.txt
  • Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
Please take inspiration from this readme.txt

miniorange-radius-client/mo_rad_settings.php 92% from 13 tests

Analyzing the main PHP file in "RADIUS Client (RADIUS Login)" version 2.2
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("miniorange-radius-client.php" instead of "mo_rad_settings.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected3,062 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP242561,4353,059
CSS2002
JavaScript1001

PHP code Passed 2 tests

A brief analysis 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.24
Average class complexity23.55
▷ Minimum class complexity1.00
▷ Maximum class complexity127.00
Average method complexity3.07
▷ Minimum method complexity1.00
▷ Maximum method complexity58.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods120
▷ Static methods97.50%
▷ Public methods10688.33%
▷ Protected methods43.33%
▷ Private methods108.33%
Functions10
▷ Named functions990.00%
▷ Anonymous functions110.00%
Constants187
▷ Global constants10.53%
▷ Class constants18699.47%
▷ Public constants186100.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.06MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
resource/images/flags16.png61.80KB19.90KB▼ 67.79%
resource/images/miniorange.png0.44KB0.35KB▼ 18.61%
resource/images/xecurify.png0.93KB0.91KB▼ 2.00%