Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼1.55ms] Passed 4 tests
This is a short check of server-side resources used by Age Verification
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 38.83 ▼2.10 |
Dashboard /wp-admin | 3.39 ▲0.09 | 46.87 ▼1.15 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 48.04 ▲1.49 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 84.39 ▲0.02 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 32.82 ▼2.98 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Age Verification
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,986 ▲240 | 13.65 ▼0.72 | 12.23 ▲10.49 | 48.49 ▲1.14 |
Dashboard /wp-admin | 2,206 ▲21 | 5.88 ▲0.02 | 107.79 ▼0.10 | 42.48 ▲1.25 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.00 ▼0.04 | 38.31 ▼2.96 | 36.07 ▼2.21 |
Add New Post /wp-admin/post-new.php | 1,519 ▼14 | 23.35 ▲0.10 | 676.25 ▲22.86 | 51.91 ▼6.44 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.19 ▼0.14 | 94.96 ▼9.14 | 43.09 ▼0.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/dispensary-age-verification/admin/partials/dispensary-age-verification-admin-display.php
- > /wp-content/plugins/dispensary-age-verification/public/partials/dispensary-age-verification-public-display.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/dispensary-age-verification/uninstall.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/dispensary-age-verification/dispensary-age-verification.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dispensary-age-verification/public/class-dispensary-age-verification-public.php:154
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dispensary-age-verification/includes/customizer.php:199
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (19 tag instead of maximum 10)
dispensary-age-verification/dispensary-age-verification.php 92% from 13 tests
The principal PHP file in "Age Verification" v. 2.9.1 is loaded by WordPress automatically on each request
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 155 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin1,452 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 8 | 196 | 256 | 627 |
PHP | 15 | 137 | 670 | 429 |
JavaScript | 3 | 13 | 49 | 208 |
CSS | 3 | 19 | 8 | 150 |
Markdown | 1 | 17 | 0 | 38 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 1.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 23 | |
▷ Static methods | 2 | 8.70% |
▷ Public methods | 18 | 78.26% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 21.74% |
Functions | 11 | |
▷ Named functions | 11 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin