78% bbaton-anonymous-age-verification

Code Review | 비바톤 – 익명 성인인증 (Anonymous Age Verification

WordPress plugin 비바톤 – 익명 성인인증 (Anonymous Age Verification scored78%from 54 tests.

About plugin

  • Plugin page: bbaton-anonymous-...
  • Plugin version: 2.10
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.8.2
  • WordPress version: 6.3.1
  • First release: Sep 11, 2020
  • Latest release: Nov 8, 2023
  • Number of updates: 57
  • Update frequency: every 20.3 days
  • Top authors: bbaton (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,269 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.24MB] [CPU: ▼16.94ms] Passed 4 tests

A check of server-side resources used by 비바톤 – 익명 성인인증 (Anonymous Age Verification
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0939.20 ▼2.77
Dashboard /wp-admin3.41 ▲0.1055.71 ▼2.08
Posts /wp-admin/edit.php3.53 ▲0.1650.29 ▼0.05
Add New Post /wp-admin/post-new.php4.68 ▼1.2145.48 ▼62.86
Media Library /wp-admin/upload.php3.31 ▲0.0840.65 ▲5.11

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

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

Browser metrics Passed 4 tests

A check of browser resources used by 비바톤 – 익명 성인인증 (Anonymous Age Verification
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,063 ▲30114.91 ▲0.5713.26 ▲11.4336.57 ▼7.87
Dashboard /wp-admin2,349 ▲1726.14 ▲0.49109.97 ▲11.4240.22 ▼6.54
Posts /wp-admin/edit.php2,277 ▲1773.31 ▲1.3052.57 ▲16.8731.26 ▼10.13
Add New Post /wp-admin/post-new.php1,692 ▲16522.15 ▼0.91586.12 ▼113.7037.58 ▼14.13
Media Library /wp-admin/upload.php1,411 ▲84.17 ▲0.0181.73 ▼17.8242.19 ▼1.98

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • bbaa_scroll_to_show

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/bbaton-anonymous-age-verification/bbaton-ananoymous-age-verification.php
    • > /wp-content/plugins/bbaton-anonymous-age-verification/login-page.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbaton-anonymous-age-verification/bbaa_front/bbaa_login_process.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbaton-anonymous-age-verification/bbaa_back/bbaa_api_settings.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 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: board, bbaton, age verification, forum

bbaton-anonymous-age-verification/bbaton-ananoymous-age-verification.php 85% from 13 tests

The main PHP script in "비바톤 – 익명 성인인증 (Anonymous Age Verification" version 2.10 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bbaton-anonymous-age-verification.php" instead of "bbaton-ananoymous-age-verification.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
No dangerous file extensions were detected746 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP46337567
JavaScript3711107
CSS13072

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.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
5 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/promo.png5.39KB5.41KB0.00%
assets/iamport.png1.88KB0.88KB▼ 53.22%
assets/exit_button.png1.87KB0.87KB▼ 53.43%
assets/logo_company.png2.19KB1.49KB▼ 31.88%
assets/BBaton_Logo_Login_KR_v2.png2.65KB1.12KB▼ 57.58%