Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 55.11 ▲5.03 |
Dashboard /wp-admin | 3.42 ▲0.01 | 31.99 ▼8.87 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 38.05 ▼0.04 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.08 | 97.68 ▼1,167.22 |
Media Library /wp-admin/upload.php | 3.30 ▼0.00 | 25.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲9 | 15.85 ▼0.12 | 6.07 ▼0.90 | 2.14 ▼0.25 |
Dashboard /wp-admin | 2,895 ▲34 | 6.11 ▼0.06 | 120.76 ▼15.18 | 154.81 ▼4.26 |
Posts /wp-admin/edit.php | 2,694 ▼0 | 3.23 ▼0.00 | 62.39 ▼2.90 | 141.50 ▼0.40 |
Add New Post /wp-admin/post-new.php | 1,752 ▼21 | 16.60 ▼5.10 | 445.71 ▼20.22 | 157.13 ▼0.54 |
Media Library /wp-admin/upload.php | 1,701 ▲3 | 5.53 ▲0.01 | 137.69 ▼18.49 | 185.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
- > PHP Fatal error
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
Optimizations
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 169 | 234 | 739 |
JavaScript | 1 | 13 | 9 | 128 |
JSON | 2 | 0 | 0 | 20 |
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 code | 0.40 |
Average class complexity | 6.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 1 | 8.33% |
Methods | 50 | |
▷ Static methods | 7 | 14.00% |
▷ Public methods | 48 | 96.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.00% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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