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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.40ms] Passed 4 tests
Server-side resources used by Age Verify UK
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.10 ▼8.09 |
Dashboard /wp-admin | 3.31 ▲0.00 | 52.35 ▼0.78 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.20 ▼5.71 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.32 ▼11.02 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.84 ▲0.79 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Age Verify UK
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.75 ▲0.39 | 1.81 ▲0.15 | 45.63 ▲5.64 |
Dashboard /wp-admin | 2,195 ▲27 | 5.55 ▼0.03 | 84.39 ▼10.31 | 43.86 ▼2.18 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▲0.01 | 38.57 ▲0.27 | 37.68 ▲1.19 |
Add New Post /wp-admin/post-new.php | 1,526 ▼5 | 23.53 ▲0.69 | 660.79 ▼4.57 | 70.76 ▲21.93 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.23 ▼0.16 | 94.90 ▼17.95 | 43.86 ▼1.71 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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 fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/t2a-age-verify/admin/templates/demo.php
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/t2a-age-verify/includes/includes.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/t2a-age-verify/admin/templates/advanced.php:4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/t2a-age-verify/admin/templates/nokey.php:49
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/t2a-age-verify/admin/templates/admin.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/t2a-age-verify/admin/templates/users.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Plugin Name: Please specify the plugin name on the first line (
=== t2a-age-verify ===
)
t2a-age-verify/t2a-age-verify.php Passed 13 tests
This is the main PHP file of "Age Verify UK" version 1.3.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
136 characters long description:
Verify the age of your UK customers at point of registration, point of sale and in bulk. Age restrict your products or your entire shop.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,625 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 245 | 462 | 1,217 |
JavaScript | 4 | 25 | 22 | 311 |
CSS | 3 | 13 | 11 | 51 |
SVG | 1 | 0 | 1 | 46 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 12.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 2 | 4.17% |
▷ Public methods | 37 | 77.08% |
▷ Protected methods | 4 | 8.33% |
▷ Private methods | 7 | 14.58% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/avuk.png | 0.41KB | 0.33KB | ▼ 20.53% |
admin/img/t2a.png | 0.35KB | 0.28KB | ▼ 21.49% |