10% active-auth

Code Review | ActiveAuth

WordPress plugin ActiveAuth scored 10% from 54 tests.

About plugin

  • Plugin page: active-auth
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3
  • WordPress version: 5.9.2
  • First release: Nov 18, 2014
  • Latest release: Nov 25, 2014
  • Number of updates: 18
  • Update frequency: every 0.4 days
  • Top authors: ActiveAuth (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,155 total downloads


Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/active-auth/activeauth.php+345
    Undefined offset: 58

Server metrics [RAM: ▼1.40MB] [CPU: ▼337.42ms] Passed 4 tests

This is a short check of server-side resources used by ActiveAuth
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.09 ▼0.4318.04 ▼37.97
Dashboard /wp-admin2.95 ▼0.4614.77 ▼18.43
Posts /wp-admin/edit.php2.95 ▼0.6915.14 ▼19.99
Add New Post /wp-admin/post-new.php2.95 ▼4.0215.97 ▼1,273.29
Media Library /wp-admin/upload.php2.95 ▼0.3514.06 ▼10.59
Active Auth /wp-admin/options-general.php?page=aca-settings2.9515.43

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

ActiveAuth: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,791 ▲3716.07 ▲0.276.80 ▼0.222.44 ▲0.11
Dashboard /wp-admin2,897 ▲396.33 ▼0.13118.86 ▼25.14164.85 ▼10.46
Posts /wp-admin/edit.php2,696 ▲113.43 ▼0.0062.23 ▼6.43142.23 ▼11.55
Add New Post /wp-admin/post-new.php1,714 ▼4421.08 ▲3.68455.64 ▲31.71168.87 ▲6.04
Media Library /wp-admin/upload.php1,703 ▲55.74 ▲0.02167.72 ▲19.90185.60 ▼6.43
Active Auth /wp-admin/options-general.php?page=aca-settings1,0702.7554.03127.39

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
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/active-auth/activeauth.php+168
    Trying to access array offset on value of type bool

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=aca-settings
    • > Notice in wp-content/plugins/active-auth/includes/ActiveAuthSettings.php+252
    Trying to access array offset on value of type bool

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× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/active-auth/activeauth.php:360

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: login, two factor authentication, security

active-auth/activeauth.php 92% from 13 tests

The main file in "ActiveAuth" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("active-auth.php" instead of "activeauth.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected550 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity13.50
▷ Minimum class complexity6.00
▷ Maximum class complexity21.00
Average method complexity2.47
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods1588.24%
▷ Protected methods00.00%
▷ Private methods211.76%
▷ Named functions15100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.10MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png60.84KB20.01KB▼ 67.12%
screenshot-1.png43.57KB10.57KB▼ 75.75%