Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲1.39MB] [CPU: ▲7.43ms] Passed 4 tests
An overview of server-side resources used by WP AutoTerms: Privacy Policy Generator (GDPR & CCPA), Terms & Conditions Generator, Cookie Notice Banner
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.10 ▲0.64 | 43.65 ▲6.62 |
Dashboard /wp-admin | 4.95 ▲1.64 | 59.10 ▲12.52 |
Posts /wp-admin/edit.php | 5.00 ▲1.64 | 61.84 ▲3.31 |
Add New Post /wp-admin/post-new.php | 7.57 ▲1.68 | 103.61 ▲7.25 |
Media Library /wp-admin/upload.php | 4.87 ▲1.64 | 50.95 ▲17.59 |
Compliance Kits /wp-admin/edit.php?post_type=wpautoterms_page&page=wpautoterms_compliancekits | 4.85 | 44.53 |
Add Legal Pages /wp-admin/post-new.php?post_type=wpautoterms_page | 5.09 | 71.64 |
Help /wp-admin/edit.php?post_type=wpautoterms_page&page=wpautoterms_help | 4.88 | 46.75 |
All Legal Pages /wp-admin/edit.php?post_type=wpautoterms_page | 4.93 | 50.65 |
License /wp-admin/edit.php?post_type=wpautoterms_page&page=wpautoterms_license_settings | 4.88 | 44.70 |
/wp-admin/admin.php?page=wpautoterms_settings_advanced | 4.88 | 42.77 |
Settings /wp-admin/edit.php?post_type=wpautoterms_page&page=wpautoterms_settings | 4.85 | 47.18 |
Server storage [IO: ▲11.18MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 448 new files
Database: no new tables, 55 new options
New WordPress options |
---|
theysaidso_admin_options |
wpautoterms_update_notice_bar_position |
wpautoterms_links_target_blank |
wpautoterms_company_name |
wpautoterms_update_notice_links_color |
wpautoterms_activated |
wpautoterms_cookies_notice_close_message |
widget_theysaidso_widget |
wpautoterms_state |
wpautoterms_country |
... |
Browser metrics Passed 4 tests
A check of browser resources used by WP AutoTerms: Privacy Policy Generator (GDPR & CCPA), Terms & Conditions Generator, Cookie Notice Banner
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,973 ▲227 | 14.14 ▼0.48 | 8.75 ▲6.81 | 41.05 ▼2.96 |
Dashboard /wp-admin | 2,257 ▲66 | 5.12 ▼0.76 | 103.33 ▼0.66 | 80.02 ▲37.97 |
Posts /wp-admin/edit.php | 2,153 ▲64 | 2.51 ▲0.50 | 36.45 ▼3.83 | 36.92 ▼0.38 |
Add New Post /wp-admin/post-new.php | 1,558 ▲25 | 17.62 ▼5.70 | 697.28 ▲7.92 | 37.17 ▼15.35 |
Media Library /wp-admin/upload.php | 1,439 ▲51 | 4.39 ▲0.18 | 102.23 ▲2.27 | 79.14 ▲35.31 |
Compliance Kits /wp-admin/edit.php?post_type=wpautoterms_page&page=wpautoterms_compliancekits | 953 | 1.94 | 25.59 | 32.09 |
Add Legal Pages /wp-admin/post-new.php?post_type=wpautoterms_page | 2,614 | 8.12 | 187.82 | 93.97 |
Help /wp-admin/edit.php?post_type=wpautoterms_page&page=wpautoterms_help | 1,320 | 2.45 | 41.43 | 57.41 |
All Legal Pages /wp-admin/edit.php?post_type=wpautoterms_page | 1,267 | 2.48 | 33.83 | 37.73 |
License /wp-admin/edit.php?post_type=wpautoterms_page&page=wpautoterms_license_settings | 1,150 | 2.12 | 25.89 | 30.96 |
/wp-admin/admin.php?page=wpautoterms_settings_advanced | 863 | 1.93 | 24.89 | 27.03 |
Settings /wp-admin/edit.php?post_type=wpautoterms_page&page=wpautoterms_settings | 11,506 | 2.10 | 50.10 | 32.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_wpautoterms_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/auto-terms-of-service-and-privacy-policy/templates/endorsements.php
- > /wp-content/plugins/auto-terms-of-service-and-privacy-policy/templates/legacy/coming-soon.php
- > /wp-content/plugins/auto-terms-of-service-and-privacy-policy/templates/pages/help-q-a.php
- > /wp-content/plugins/auto-terms-of-service-and-privacy-policy/templates/legacy/shortcode-prologue.php
- 36× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/auto-terms-of-service-and-privacy-policy/templates/legal-pages/admin/submit.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/auto-terms-of-service-and-privacy-policy/templates/legacy/coming-soon-admin.php:1
- > PHP Warning
include_once(WPAUTOTERMS_PLUGIN_DIRdata/countries.php): failed to open stream: No such file or directory in wp-content/plugins/auto-terms-of-service-and-privacy-policy/includes/countries.php on line 7
- > PHP Notice
Undefined variable: atospp_pp_heading in wp-content/plugins/auto-terms-of-service-and-privacy-policy/templates/legacy/tos-and-pp.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'wpautoterms\\Action_Base' not found in wp-content/plugins/auto-terms-of-service-and-privacy-policy/includes/admin/action/transfer-license.php:10
- > PHP Notice
Undefined variable: class_escaped in wp-content/plugins/auto-terms-of-service-and-privacy-policy/templates/cookies-notice.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'wpautoterms\\admin\\form\\Legal_Page' not found in wp-content/plugins/auto-terms-of-service-and-privacy-policy/includes/admin/form/licensed-legal-page.php:9
- > PHP Fatal error
Uncaught Error: Class 'wpautoterms\\admin\\page\\Base' not found in wp-content/plugins/auto-terms-of-service-and-privacy-policy/includes/admin/page/help.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/auto-terms-of-service-and-privacy-policy/templates/legacy/privacy-policy.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/auto-terms-of-service-and-privacy-policy/templates/legacy/terms-of-service.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues 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:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
auto-terms-of-service-and-privacy-policy/auto-terms-of-service-privacy-policy.php 77% from 13 tests
The entry point to "WP AutoTerms: Privacy Policy Generator (GDPR & CCPA), Terms & Conditions Generator, Cookie Notice Banner" version 2.5.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("auto-terms-of-service-and-privacy-policy.php" instead of "auto-terms-of-service-privacy-policy.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 165 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin350,342 lines of code in 402 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 261 | 1,320 | 557 | 197,161 |
JavaScript | 120 | 1,357 | 1,173 | 149,476 |
CSS | 16 | 200 | 89 | 1,889 |
JSON | 2 | 0 | 0 | 1,719 |
Python | 1 | 24 | 19 | 94 |
Bourne Shell | 1 | 0 | 0 | 2 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 5.53 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 1.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 87 | |
▷ Abstract classes | 22 | 25.29% |
▷ Concrete classes | 65 | 74.71% |
▷ Final classes | 0 | 0.00% |
Methods | 400 | |
▷ Static methods | 122 | 30.50% |
▷ Public methods | 310 | 77.50% |
▷ Protected methods | 90 | 22.50% |
▷ Private methods | 0 | 0.00% |
Functions | 133 | |
▷ Named functions | 114 | 85.71% |
▷ Anonymous functions | 19 | 14.29% |
Constants | 165 | |
▷ Global constants | 15 | 9.09% |
▷ Class constants | 150 | 90.91% |
▷ Public constants | 150 | 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
11 compressed PNG files occupy 0.39MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 51.57KB | 56.26KB | 0.00% |
screenshot-2.png | 51.57KB | 56.26KB | 0.00% |
banner-1544x500.png | 54.50KB | 58.67KB | 0.00% |
images/icon.png | 0.26KB | 0.29KB | 0.00% |
screenshot-5.png | 52.19KB | 56.76KB | 0.00% |