Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.27MB] [CPU: ▲423.64ms] 50% from 4 tests
Server-side resources used by Meta Age Verification
Please fix the following
- CPU: Try to keep total CPU usage under 500.00ms (currently 633.74ms on /wp-admin/admin.php?page=meta-age-settings)
- Extra CPU: The extra CPU usage should be kept under 200.00ms (currently 423.64ms on /wp-admin/admin.php?page=meta-age-settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 29.68 ▼7.37 |
Dashboard /wp-admin | 3.62 ▲0.28 | 628.80 ▲571.00 |
Posts /wp-admin/edit.php | 3.67 ▲0.32 | 624.05 ▲576.59 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.26 | 646.16 ▲554.34 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 660.92 ▲628.49 |
Plugin Activation /wp-admin/admin.php?page=meta-age-activation | 3.61 | 611.78 |
Meta Age Verification /wp-admin/admin.php?page=meta-age-tos | 3.45 | 623.73 |
Settings /wp-admin/admin.php?page=meta-age-settings | 3.45 | 633.74 |
Server storage [IO: ▲2.78MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 63 new files
Database: 2 new tables, 8 new options
New tables |
---|
meta_wallet_connections |
meta_age_sessions |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
meta_private_key |
widget_recent-comments |
meta_public_key |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Meta Age Verification
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,001 ▲255 | 18.67 ▲3.99 | 258.31 ▲256.67 | 46.54 ▲8.13 |
Dashboard /wp-admin | 2,250 ▲62 | 5.78 ▲0.87 | 96.53 ▼9.00 | 43.76 ▼0.18 |
Posts /wp-admin/edit.php | 2,135 ▲46 | 2.03 ▲0.01 | 58.35 ▲14.38 | 38.86 ▼5.96 |
Add New Post /wp-admin/post-new.php | 1,550 ▲20 | 17.88 ▼0.65 | 644.49 ▲47.30 | 55.41 ▲5.62 |
Media Library /wp-admin/upload.php | 1,438 ▲47 | 4.26 ▲0.11 | 94.62 ▼5.36 | 44.69 ▲0.57 |
Plugin Activation /wp-admin/admin.php?page=meta-age-activation | 860 | 1.77 | 23.42 | 27.24 |
Meta Age Verification /wp-admin/admin.php?page=meta-age-tos | 969 | 2.18 | 22.87 | 27.92 |
Settings /wp-admin/admin.php?page=meta-age-settings | 961 | 2.15 | 24.54 | 32.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure failed, leaving 2 tables in the database
- meta_age_sessions
- meta_wallet_connections
- This plugin does not fully uninstall, leaving 8 options in the database
- can_compress_scripts
- db_upgraded
- meta_private_key
- widget_theysaidso_widget
- widget_recent-comments
- meta_public_key
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/meta-age/common/shortcode.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/meta-age/admin/hooks.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/meta-age/frontend/templates/popup.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/meta-age/common/hooks.php:42
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/meta-age/admin/class-settings-page.php:57
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/meta-age/meta-age.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/meta-age/admin/class-terms-page.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/meta-age/frontend/hooks.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/meta-age/admin/class-plugin-activator.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
6 plugin tags: protected, protect, private, content-locker, age-restrict...
meta-age/meta-age.php Passed 13 tests
The main file in "Meta Age Verification" v. 1.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
38 characters long description:
Verify users' age with crypto wallets.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin12,810 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 5 | 0 | 0 | 8,106 |
PHP | 30 | 519 | 1,032 | 3,602 |
JavaScript | 10 | 93 | 71 | 647 |
Markdown | 3 | 87 | 0 | 338 |
Sass | 2 | 20 | 0 | 116 |
CSS | 2 | 1 | 0 | 1 |
PHP code Passed 2 tests
An overview of 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.39 |
Average class complexity | 17.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 71.00 |
Average method complexity | 3.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 4 | 26.67% |
Methods | 104 | |
▷ Static methods | 55 | 52.88% |
▷ Public methods | 81 | 77.88% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 23 | 22.12% |
Functions | 19 | |
▷ Named functions | 17 | 89.47% |
▷ Anonymous functions | 2 | 10.53% |
Constants | 19 | |
▷ Global constants | 5 | 26.32% |
▷ Class constants | 14 | 73.68% |
▷ Public constants | 6 | 42.86% |
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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/walletconnect.png | 29.91KB | 12.08KB | ▼ 59.61% |