Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.58MB] [CPU: ▲334.92ms] 75% from 4 tests
Analyzing server-side resources used by Real ID: Identity Verification for WooCommerce
It is recommended to improve the following
- Extra CPU: Extra CPU usage should be kept under 200.00ms (currently 334.92ms on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.01 ▲0.55 | 507.61 ▲469.60 |
Dashboard /wp-admin | 3.87 ▲0.57 | 387.36 ▲338.17 |
Posts /wp-admin/edit.php | 3.98 ▲0.63 | 395.61 ▲349.96 |
Add New Post /wp-admin/post-new.php | 6.96 ▲1.07 | 412.39 ▲329.75 |
Media Library /wp-admin/upload.php | 3.79 ▲0.56 | 354.60 ▲321.81 |
Server storage [IO: ▲14.57MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 932 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Real ID: Identity Verification for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,446 ▼316 | 14.30 ▼0.41 | 0.54 ▼1.14 | 18.11 ▼28.58 |
Dashboard /wp-admin | 2,197 ▲17 | 5.57 ▼0.07 | 90.60 ▼9.18 | 41.36 ▼1.78 |
Posts /wp-admin/edit.php | 2,102 ▲2 | 1.92 ▼0.05 | 38.87 ▼5.07 | 34.43 ▼3.82 |
Add New Post /wp-admin/post-new.php | 1,527 ▼7 | 21.10 ▼4.05 | 662.05 ▲61.43 | 61.54 ▲0.59 |
Media Library /wp-admin/upload.php | 1,399 ▲2 | 4.15 ▼0.07 | 109.84 ▲6.04 | 45.37 ▲2.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
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
- 472× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'DI\\Definition\\Resolver\\DefinitionResolver' not found in wp-content/plugins/identity-verification-for-woocommerce/vendor/php-di/php-di/src/Definition/Resolver/DecoratorResolver.php:18
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/identity-verification-for-woocommerce/vendor/yohang/finite/tests/Finite/Test/Event/TransitionEventTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'DI\\Container' not found in wp-content/plugins/identity-verification-for-woocommerce/vendor/php-di/php-di/src/CompiledContainer.php:25
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/identity-verification-for-woocommerce/vendor/yohang/finite/tests/Finite/Test/Event/Callback/CallbackSpecificationTest.php:14
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractSyslogHandler' not found in wp-content/plugins/identity-verification-for-woocommerce/vendor/monolog/monolog/src/Monolog/Handler/SyslogHandler.php:30
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/identity-verification-for-woocommerce/vendor/guzzlehttp/psr7/src/LazyOpenStream.php:14
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/identity-verification-for-woocommerce/vendor/monolog/monolog/src/Monolog/Handler/ErrorLogHandler.php:24
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/identity-verification-for-woocommerce/vendor/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php:32
- > PHP Fatal error
Uncaught Error: Interface 'Finite\\Transition\\PropertiesAwareTransitionInterface' not found in wp-content/plugins/identity-verification-for-woocommerce/vendor/yohang/finite/src/Finite/Transition/Transition.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/identity-verification-for-woocommerce/vendor/guzzlehttp/guzzle/src/Exception/GuzzleException.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 86% from 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
5 plugin tags: id checks, fraud prevention, id verification, woocommerce, age restriction
identity-verification-for-woocommerce/realid.php 69% from 13 tests
The main PHP script in "Real ID: Identity Verification for WooCommerce" version 1.8.2 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("identity-verification-for-woocommerce.php" instead of "realid.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Requires at least: The required version number did not match the one declared in readme.txt ("4.8" instead of "3.0")
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
These items require your attention
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/identity-verification-for-woocommerce/vendor/yohang/finite/docs/make.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 726 | 11,595 | 23,212 | 61,980 |
JavaScript | 66 | 338 | 461 | 9,075 |
Markdown | 19 | 1,166 | 0 | 3,787 |
JSON | 33 | 0 | 0 | 3,653 |
DOS Batch | 1 | 34 | 2 | 227 |
SVG | 10 | 0 | 1 | 182 |
make | 1 | 30 | 6 | 156 |
reStructuredText | 6 | 215 | 419 | 152 |
XML | 4 | 17 | 5 | 100 |
Python | 1 | 74 | 178 | 44 |
YAML | 3 | 5 | 0 | 33 |
CSS | 1 | 2 | 4 | 10 |
HTML | 1 | 2 | 0 | 5 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 10.23 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 318.00 |
Average method complexity | 2.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.00 |
Code structure | ||
---|---|---|
Namespaces | 130 | |
Interfaces | 103 | |
Traits | 8 | |
Classes | 577 | |
▷ Abstract classes | 24 | 4.16% |
▷ Concrete classes | 553 | 95.84% |
▷ Final classes | 117 | 21.16% |
Methods | 3,565 | |
▷ Static methods | 299 | 8.39% |
▷ Public methods | 2,917 | 81.82% |
▷ Protected methods | 259 | 7.27% |
▷ Private methods | 389 | 10.91% |
Functions | 484 | |
▷ Named functions | 239 | 49.38% |
▷ Anonymous functions | 245 | 50.62% |
Constants | 337 | |
▷ Global constants | 23 | 6.82% |
▷ Class constants | 314 | 93.18% |
▷ Public constants | 245 | 78.03% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 2.21MB with 1.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
.wordpress-org/screenshot-6.png | 196.59KB | 73.15KB | ▼ 62.79% |
.wordpress-org/icon-128x128.png | 5.24KB | 3.63KB | ▼ 30.86% |
.wordpress-org/banner-1544x500.png | 191.56KB | 72.78KB | ▼ 62.01% |
.wordpress-org/screenshot-1.png | 637.17KB | 213.76KB | ▼ 66.45% |
.wordpress-org/screenshot-4.png | 141.32KB | 51.58KB | ▼ 63.50% |