Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.16ms] Passed 4 tests
This is a short check of server-side resources used by Age Restriction 18+ for Checkout Fields
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.03 | 40.33 ▼4.57 |
Dashboard /wp-admin | 3.67 ▲0.10 | 51.40 ▼7.45 |
Posts /wp-admin/edit.php | 3.72 ▲0.04 | 53.54 ▼2.23 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.04 | 100.10 ▼10.40 |
Media Library /wp-admin/upload.php | 3.53 ▲0.04 | 39.63 ▼1.40 |
Age +18 Restriction /wp-admin/admin.php?page=age-restriction-18-for-checkout-fields | 3.49 | 33.77 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Age Restriction 18+ for Checkout Fields
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.71 ▲0.34 | 1.75 ▼0.21 | 37.11 ▼13.03 |
Dashboard /wp-admin | 2,198 ▲24 | 5.66 ▲0.08 | 95.45 ▼5.39 | 43.49 ▼0.11 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.03 | 41.00 ▲1.34 | 36.53 ▲1.63 |
Add New Post /wp-admin/post-new.php | 1,546 ▲20 | 23.10 ▲5.38 | 677.72 ▲44.78 | 52.58 ▼7.50 |
Media Library /wp-admin/upload.php | 1,394 ▼3 | 4.22 ▼0.03 | 103.63 ▲0.21 | 43.64 ▼5.64 |
Age +18 Restriction /wp-admin/admin.php?page=age-restriction-18-for-checkout-fields | 849 | 2.17 | 24.25 | 33.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: woocommerce extra checkout fields for brazil, woocomerce, age restrict woocommerce
age-restriction-18-for-checkout-fields/age-restriction-18-for-checkout-fields.php 92% from 13 tests
"Age Restriction 18+ for Checkout Fields" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 275 characters long)
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 detected197 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 41 | 124 | 197 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 7.33 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 3 | 16.67% |
▷ Public methods | 15 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 16.67% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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