Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.12ms] Passed 4 tests
An overview of server-side resources used by Age Verification System for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.86 ▼3.58 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.31 ▼3.90 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 42.70 ▼3.20 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.87 ▼9.78 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.21 ▼2.63 |
Server storage [IO: ▲1.42MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 517 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Age Verification System for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▼0.00 | 1.73 ▲0.17 | 42.23 ▲0.44 |
Dashboard /wp-admin | 2,198 ▲21 | 5.62 ▼0.03 | 82.01 ▼5.05 | 36.95 ▼6.45 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.00 | 32.71 ▼1.97 | 34.86 ▼1.68 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.32 ▼0.22 | 672.67 ▼2.33 | 54.45 ▼2.96 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.19 ▲0.08 | 95.02 ▼19.53 | 40.40 ▼8.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
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 everything seems fine, this is not an exhaustive test
SRP 50% from 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
Almost there! Just fix the following items
- 138× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Twig_LoaderInterface' not found in wp-content/plugins/age-verification-for-woocommerce/core/includes/lib/vendor/twig/twig/lib/Twig/Loader/Chain.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/age-verification-for-woocommerce/core/includes/lib/vendor/twig/twig/lib/Twig/Node/Body.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression' not found in wp-content/plugins/age-verification-for-woocommerce/core/includes/lib/vendor/twig/twig/lib/Twig/Node/Expression/Conditional.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression' not found in wp-content/plugins/age-verification-for-woocommerce/core/includes/lib/vendor/twig/twig/lib/Twig/Node/Expression/GetAttr.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Call' not found in wp-content/plugins/age-verification-for-woocommerce/core/includes/lib/vendor/twig/twig/lib/Twig/Node/Expression/Test.php:11
- > PHP Fatal error
Uncaught Error: Class 'Twig_Sandbox_SecurityError' not found in wp-content/plugins/age-verification-for-woocommerce/core/includes/lib/vendor/twig/twig/lib/Twig/Sandbox/SecurityNotAllowedPropertyError.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/age-verification-for-woocommerce/core/includes/lib/vendor/twig/twig/lib/Twig/Node/Expression/Binary/Greater.php:11
- > PHP Fatal error
Uncaught Error: Class 'Twig_Extension' not found in wp-content/plugins/age-verification-for-woocommerce/core/includes/lib/vendor/twig/twig/lib/Twig/Extension/Debug.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Unary' not found in wp-content/plugins/age-verification-for-woocommerce/core/includes/lib/vendor/twig/twig/lib/Twig/Node/Expression/Unary/Neg.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/age-verification-for-woocommerce/core/includes/lib/vendor/twig/twig/lib/Twig/Node/Block.php:18
- > 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)
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots lack descriptions #2, #3, #4, #5 in age-verification-for-woocommerce/assets to your readme.txt
age-verification-for-woocommerce/age-verification-system-for-woocommerce.php 77% from 13 tests
"Age Verification System for WooCommerce" version 1.4.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("age-verification-for-woocommerce.php" instead of "age-verification-system-for-woocommerce.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: Please don't use more than 140 characters for the plugin description (currently 454 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected19,750 lines of code in 485 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 370 | 3,048 | 4,629 | 14,767 |
reStructuredText | 89 | 1,977 | 1,807 | 2,627 |
PO File | 3 | 234 | 234 | 871 |
CSS | 5 | 107 | 33 | 616 |
JavaScript | 6 | 69 | 26 | 346 |
JSON | 5 | 0 | 0 | 322 |
Twig | 4 | 25 | 2 | 155 |
XML | 1 | 4 | 0 | 29 |
Markdown | 2 | 8 | 0 | 17 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 4.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 142.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 24 | |
Interfaces | 27 | |
Traits | 0 | |
Classes | 331 | |
▷ Abstract classes | 11 | 3.32% |
▷ Concrete classes | 320 | 96.68% |
▷ Final classes | 48 | 15.00% |
Methods | 847 | |
▷ Static methods | 59 | 6.97% |
▷ Public methods | 722 | 85.24% |
▷ Protected methods | 58 | 6.85% |
▷ Private methods | 67 | 7.91% |
Functions | 100 | |
▷ Named functions | 91 | 91.00% |
▷ Anonymous functions | 9 | 9.00% |
Constants | 51 | |
▷ Global constants | 3 | 5.88% |
▷ Class constants | 48 | 94.12% |
▷ Public constants | 48 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.40MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/simple-day.png | 51.87KB | 14.63KB | ▼ 71.79% |
assets/img/lock.png | 8.29KB | 4.37KB | ▼ 47.29% |
assets/img/birthday-dark.png | 81.89KB | 26.19KB | ▼ 68.02% |
assets/img/simple-green.png | 51.41KB | 13.41KB | ▼ 73.92% |
assets/img/back.png | 5.41KB | 1.90KB | ▼ 64.92% |