83% agecheckernet

Code Review | Age Verification for your checkout page. Verify your customer's identity

WordPress plugin Age Verification for your checkout page. Verify your customer's identity scored83%from 54 tests.

About plugin

  • Plugin page: agecheckernet
  • Plugin version: 1.15.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Sep 27, 2016
  • Latest release: Oct 30, 2023
  • Number of updates: 78
  • Update frequency: every 33.2 days
  • Top authors: agechecker (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

500+ active /15,399 total downloads


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.01MB] [CPU: ▼4.90ms] Passed 4 tests

A check of server-side resources used by Age Verification for your checkout page. Verify your customer's identity
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.86 ▲1.00
Dashboard /wp-admin3.32 ▲0.0147.12 ▼1.65
Posts /wp-admin/edit.php3.37 ▲0.0146.14 ▼4.41
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.02 ▼10.32
Media Library /wp-admin/upload.php3.24 ▲0.0132.58 ▼3.22

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Age Verification for your checkout page. Verify your customer's identity: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.19 ▼0.431.78 ▲0.1946.08 ▲5.15
Dashboard /wp-admin2,192 ▲155.64 ▲0.04128.09 ▲34.3456.17 ▲13.81
Posts /wp-admin/edit.php2,103 ▲61.98 ▲0.0237.58 ▼0.4131.86 ▼2.44
Add New Post /wp-admin/post-new.php1,535 ▲718.27 ▼4.82615.60 ▼64.1373.55 ▲9.55
Media Library /wp-admin/upload.php1,394 ▼94.21 ▼0.0197.69 ▼6.2441.78 ▼2.70

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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 errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/agecheckernet/class-wc-integration-agechecker-integration.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/agecheckernet/agechecker.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: There are too many tags (11 tag instead of maximum 10)
Please take inspiration from this readme.txt

agecheckernet/agechecker.php 85% from 13 tests

The primary PHP file in "Age Verification for your checkout page. Verify your customer's identity" version 1.15.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 273 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("agecheckernet.php" instead of "agechecker.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,892 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity144.50
▷ Minimum class complexity3.00
▷ Maximum class complexity286.00
Average method complexity6.31
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods54100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin