84% acf-login

Code Review | Advanced Custom Fields: Login

WordPress plugin Advanced Custom Fields: Login scored84%from 54 tests.

About plugin

  • Plugin page: acf-login
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Jun 1, 2022
  • Latest release: Jun 1, 2022
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: samaphp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /297 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Advanced Custom Fields: Login
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.65 ▼3.17
Dashboard /wp-admin3.31 ▲0.0048.30 ▼1.99
Posts /wp-admin/edit.php3.36 ▲0.0047.00 ▼7.79
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.10 ▼20.55
Media Library /wp-admin/upload.php3.23 ▲0.0040.60 ▲2.76

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Advanced Custom Fields: Login: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.60 ▼0.782.08 ▲0.0446.20 ▲3.69
Dashboard /wp-admin2,209 ▲575.89 ▲0.2398.25 ▼16.7340.34 ▼3.61
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.2039.46 ▲1.1236.15 ▲1.06
Add New Post /wp-admin/post-new.php1,514 ▼1921.63 ▼1.52698.26 ▼9.0462.99 ▲5.67
Media Library /wp-admin/upload.php1,385 ▼04.12 ▼0.01107.09 ▲1.2946.36 ▼2.21

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
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/acf-login/acf-login.php

User-side errors Passed 1 test

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


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: acf, login, authentication, advanced custom fields

acf-login/acf-login.php Passed 13 tests

The entry point to "Advanced Custom Fields: Login" version 1.0.0 is a PHP file that has certain tags in its header comment area
66 characters long description:
Login by a custom field using the (Advanced custom fields) plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected327 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity20.50
▷ Minimum class complexity20.00
▷ Maximum class complexity21.00
Average method complexity3.29
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods17100.00%
▷ Public methods1694.12%
▷ Protected methods00.00%
▷ Private methods15.88%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants2100.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
There are no PNG files in this plugin