Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/terms-popup-on-user-login/includes/models/class-woo-options.php+62
Trying to access array offset on value of type bool
Server metrics [RAM: ▲1.70MB] [CPU: ▲6.12ms] Passed 4 tests
An overview of server-side resources used by Terms and Conditions Popup on User Login or at WooCommerce checkout
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.16 ▲1.69 | 54.44 ▲12.61 |
Dashboard /wp-admin | 5.03 ▲1.68 | 59.29 ▼7.41 |
Posts /wp-admin/edit.php | 5.08 ▲1.72 | 61.37 ▲14.28 |
Add New Post /wp-admin/post-new.php | 7.64 ▲1.75 | 104.01 ▲7.90 |
Media Library /wp-admin/upload.php | 4.96 ▲1.72 | 46.48 ▲11.37 |
Terms Popup On User Login /wp-admin/options-general.php?page=terms_popup_on_user_login_options | 4.87 | 45.53 |
Server storage [IO: ▲1.53MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 241 new files
Database: no new tables, 11 new options
New WordPress options |
---|
tpul_settings_term_modal_options |
theysaidso_admin_options |
tpul_settings_general_options |
tpul_settings_term_modal_woo_options |
tpul_email_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
tpul_settings_term_modal_display_options |
db_upgraded |
... |
Browser metrics Passed 4 tests
Terms and Conditions Popup on User Login or at WooCommerce checkout: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲36 | 14.27 ▼0.08 | 1.69 ▼0.16 | 43.12 ▼0.55 |
Dashboard /wp-admin | 2,200 ▲23 | 5.61 ▼0.05 | 95.99 ▼3.05 | 43.71 ▼3.17 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.01 ▲0.00 | 46.02 ▲5.74 | 36.99 ▲3.72 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.34 ▲0.09 | 674.51 ▼3.71 | 58.29 ▲6.12 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.23 ▲0.07 | 95.88 ▲0.42 | 42.95 ▲0.77 |
Terms Popup On User Login /wp-admin/options-general.php?page=terms_popup_on_user_login_options | 1,032 | 2.24 | 41.12 | 30.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 11 options in the database
- tpul_settings_term_modal_display_options
- db_upgraded
- tpul_settings_term_modal_options
- tpul_email_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- tpul_settings_term_modal_woo_options
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/terms-popup-on-user-login/admin/partials/terms-popup-on-user-login-admin-display.php
- > /wp-content/plugins/terms-popup-on-user-login/public/partials/terms-popup-on-user-login-public-display.php
- > /wp-content/plugins/terms-popup-on-user-login/email-templates/default.php
- 50× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/terms-popup-on-user-login/vendor/guzzlehttp/promises/src/Promise.php:10
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/terms-popup-on-user-login/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php:10
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/terms-popup-on-user-login/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/terms-popup-on-user-login/vendor/guzzlehttp/psr7/src/BufferStream.php:17
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/terms-popup-on-user-login/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php:8
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/terms-popup-on-user-login/vendor/guzzlehttp/promises/src/CancellationException.php:8
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/terms-popup-on-user-login/vendor/guzzlehttp/guzzle/src/Pool.php:24
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/terms-popup-on-user-login/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php:8
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/terms-popup-on-user-login/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestFactoryInterface' not found in wp-content/plugins/terms-popup-on-user-login/vendor/guzzlehttp/psr7/src/HttpFactory.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Donate link: Invalid URI ("")
terms-popup-on-user-login/terms-popup-on-user-login.php Passed 13 tests
Analyzing the main PHP file in "Terms and Conditions Popup on User Login or at WooCommerce checkout" version 1.0.47
127 characters long description:
Creates a popup with a scrollable window that will show your own custom Terms and Conditions when users logs in to your website
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
Good job! No executable or dangerous file extensions detected22,725 lines of code in 217 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 173 | 3,907 | 8,308 | 15,874 |
Markdown | 18 | 1,381 | 0 | 3,934 |
JavaScript | 11 | 206 | 277 | 1,295 |
JSON | 11 | 0 | 0 | 1,121 |
CSS | 4 | 137 | 63 | 501 |
PHP code Passed 2 tests
Analyzing 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.36 |
Average class complexity | 13.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 48.00 |
Code structure | ||
---|---|---|
Namespaces | 21 | |
Interfaces | 27 | |
Traits | 3 | |
Classes | 123 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 123 | 100.00% |
▷ Final classes | 35 | 28.46% |
Methods | 1,121 | |
▷ Static methods | 183 | 16.32% |
▷ Public methods | 984 | 87.78% |
▷ Protected methods | 5 | 0.45% |
▷ Private methods | 132 | 11.78% |
Functions | 130 | |
▷ Named functions | 37 | 28.46% |
▷ Anonymous functions | 93 | 71.54% |
Constants | 64 | |
▷ Global constants | 1 | 1.56% |
▷ Class constants | 63 | 98.44% |
▷ Public constants | 52 | 82.54% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin