Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▲2.23ms] Passed 4 tests
Analyzing server-side resources used by WP Terms Popup - Terms and Conditions and Privacy Policy WordPress Popups
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 45.06 ▲0.97 |
Dashboard /wp-admin | 3.42 ▲0.11 | 49.19 ▲0.99 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 48.85 ▲1.58 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 107.54 ▲11.45 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 39.86 ▲5.36 |
Settings /wp-admin/edit.php?post_type=termpopup&page=wp-terms-popup-settings | 3.41 | 40.67 |
Add New /wp-admin/post-new.php?post_type=termpopup | 3.50 | 53.07 |
All Popups /wp-admin/edit.php?post_type=termpopup | 3.44 | 41.99 |
Designer /wp-admin/edit.php?post_type=termpopup&page=wp-terms-popup-designer | 3.36 | 36.43 |
Collector /wp-admin/edit.php?post_type=termpopup&page=wp-terms-popup-collector | 3.36 | 35.07 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 7 new options
New WordPress options |
---|
wptp_version |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by WP Terms Popup - Terms and Conditions and Privacy Policy WordPress Popups
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,871 ▲136 | 13.60 ▼0.99 | 1.81 ▼0.35 | 42.48 ▼5.37 |
Dashboard /wp-admin | 2,269 ▲78 | 4.89 ▼1.07 | 120.23 ▲5.06 | 41.22 ▼5.31 |
Posts /wp-admin/edit.php | 2,155 ▲69 | 2.12 ▲0.11 | 37.43 ▲1.76 | 32.42 ▼4.23 |
Add New Post /wp-admin/post-new.php | 6,524 ▲4,991 | 20.26 ▼2.97 | 974.88 ▲304.15 | 55.29 ▲5.82 |
Media Library /wp-admin/upload.php | 1,457 ▲69 | 4.25 ▼0.02 | 99.74 ▲0.04 | 42.25 ▲0.34 |
Settings /wp-admin/edit.php?post_type=termpopup&page=wp-terms-popup-settings | 1,265 | 1.72 | 26.16 | 42.59 |
Add New /wp-admin/post-new.php?post_type=termpopup | 2,414 | 7.65 | 188.50 | 70.17 |
All Popups /wp-admin/edit.php?post_type=termpopup | 1,138 | 2.08 | 35.34 | 27.68 |
Designer /wp-admin/edit.php?post_type=termpopup&page=wp-terms-popup-designer | 917 | 1.66 | 27.16 | 33.98 |
Collector /wp-admin/edit.php?post_type=termpopup&page=wp-terms-popup-collector | 918 | 1.70 | 25.17 | 31.73 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- wptp_version
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-terms-popup/admin/partials/wp-terms-popup-admin-display.php
- > /wp-content/plugins/wp-terms-popup/public/partials/wp-terms-popup-public-age-verification.php
- > /wp-content/plugins/wp-terms-popup/public/partials/wp-terms-popup-public-popup.php
- 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-terms-popup/public/partials/wp-terms-popup-public-css.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wp-terms-popup/admin/partials/wp-terms-popup-admin-collector.php:17
- > PHP Notice
Undefined variable: columns in wp-content/plugins/wp-terms-popup/public/partials/wp-terms-popup-public-age-verification.php on line 14
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/wp-terms-popup/admin/partials/wp-terms-popup-admin-settings.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/wp-terms-popup/admin/partials/wp-terms-popup-admin-post-type-meta-boxes.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-terms-popup/admin/partials/wp-terms-popup-admin-footer.php:14
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-terms-popup/admin/partials/wp-terms-popup-admin-settings.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-terms-popup/public/partials/wp-terms-popup-public-popup-buttons.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-terms-popup/admin/partials/wp-terms-popup-admin-post-meta-boxes.php:12
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wp-terms-popup/public/partials/wp-terms-popup-public-age-verification.php on line 14
- > 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 errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: terms and conditions, privacy policy, age verification, terms of service, popup
wp-terms-popup/index.php 92% from 13 tests
The main PHP file in "WP Terms Popup - Terms and Conditions and Privacy Policy WordPress Popups" ver. 2.7.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-terms-popup.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,727 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 288 | 735 | 1,253 |
PO File | 1 | 91 | 107 | 325 |
JavaScript | 3 | 20 | 31 | 82 |
CSS | 2 | 6 | 0 | 67 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 22.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 89.00 |
Average method complexity | 4.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.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 | 49 | |
▷ Static methods | 2 | 4.08% |
▷ Public methods | 38 | 77.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 22.45% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
8 compressed PNG files occupy 0.08MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/wptp-icon.png | 1.28KB | 0.59KB | ▼ 53.66% |
admin/img/collector-2.png | 16.22KB | 15.40KB | ▼ 5.04% |
admin/img/designer-2.png | 12.81KB | 12.41KB | ▼ 3.15% |
admin/img/age-1.png | 11.25KB | 10.70KB | ▼ 4.88% |
admin/img/collector-1.png | 16.94KB | 15.77KB | ▼ 6.93% |