93% 1account-age-verification

Code Review | 1account Age Verification

WordPress plugin 1account Age Verification scored 93% from 54 tests.

About plugin

  • Plugin page: 1account-age-veri...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5
  • WordPress version: 5.9.2
  • First release: Oct 1, 2020
  • Latest release: Nov 17, 2020
  • Number of updates: 8
  • Update frequency: every 6.8 days
  • Top authors: 1account (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 475 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.02MB] [CPU: ▼295.54ms] Passed 4 tests

An overview of server-side resources used by 1account Age Verification
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0155.11 ▲5.03
Dashboard /wp-admin3.42 ▲0.0131.99 ▼8.87
Posts /wp-admin/edit.php3.65 ▲0.0138.05 ▼0.04
Add New Post /wp-admin/post-new.php6.90 ▼0.0897.68 ▼1,167.22
Media Library /wp-admin/upload.php3.30 ▼0.0025.86 ▼6.02

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for 1account Age Verification
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.85 ▼0.126.07 ▼0.902.14 ▼0.25
Dashboard /wp-admin2,895 ▲346.11 ▼0.06120.76 ▼15.18154.81 ▼4.26
Posts /wp-admin/edit.php2,694 ▼03.23 ▼0.0062.39 ▼2.90141.50 ▼0.40
Add New Post /wp-admin/post-new.php1,752 ▼2116.60 ▼5.10445.71 ▼20.22157.13 ▼0.54
Media Library /wp-admin/upload.php1,701 ▲35.53 ▲0.01137.69 ▼18.49185.21 ▼17.05

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Oneacc\\Base\\BaseVarsController' not found in wp-content/plugins/1account-age-verification/includes/Api/UserController.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Oneacc\\Base\\BaseVarsController' not found in wp-content/plugins/1account-age-verification/includes/Base/Enqueue.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Oneacc\\Base\\BaseVarsController' not found in wp-content/plugins/1account-age-verification/includes/Admin/PluginSettingsLink.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Oneacc\\Base\\BaseVarsController' not found in wp-content/plugins/1account-age-verification/includes/Api/OrderController.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Oneacc\\Base\\BaseVarsController' not found in wp-content/plugins/1account-age-verification/includes/Admin/PluginSettingsForm.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Oneacc\\Base\\BaseVarsController' not found in wp-content/plugins/1account-age-verification/includes/Admin/OrdersTable.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Oneacc\\Base\\BaseVarsController' not found in wp-content/plugins/1account-age-verification/includes/User/UserSettings.php:11

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)
Everything seems fine on the user side


Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: 1account store, verification-by-age, age-verification, shop

1account-age-verification/one-account-age-verification.php 77% from 13 tests

This is the main PHP file of "1account Age Verification" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Git Repository: There should be no Git repositories present in your plugin
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("1account-age-verification.php" instead of "one-account-age-verification.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 detected887 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity6.92
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.45
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes18.33%
▷ Static methods714.00%
▷ Public methods4896.00%
▷ Protected methods00.00%
▷ Private methods24.00%
▷ Named functions375.00%
▷ Anonymous functions125.00%
▷ Global constants00.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 were not PNG files found in your plugin