Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.40MB] [CPU: ▼1.09ms] Passed 4 tests
A check of server-side resources used by Legal Pages – Privacy Policy, Terms & Conditions, GDPR, CCPA, and Cookie Notice Generator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.43 | 38.14 ▼3.35 |
Dashboard /wp-admin | 3.73 ▲0.43 | 54.27 ▲4.36 |
Posts /wp-admin/edit.php | 3.78 ▲0.43 | 54.15 ▲1.39 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.36 | 91.59 ▼6.76 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 40.97 ▲5.16 |
Add New Legal Page /wp-admin/admin.php?page=createLegalPage | 3.72 | 40.70 |
Upgrade to Pro /wp-admin/admin.php?page=adl-lp-upgrade | 3.59 | 36.71 |
Help & Support /wp-admin/admin.php?page=legal-page-support | 3.59 | 37.81 |
Legal Page Templates /wp-admin/admin.php?page=legal-page-template | 3.67 | 40.95 |
All Legal Pages /wp-admin/admin.php?page=all-legal-Pages | 3.61 | 39.69 |
Settings /wp-admin/admin.php?page=adl-legal-pages | 3.68 | 40.05 |
Server storage [IO: ▲0.61MB] [DB: ▲0.04MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 45 new files
Database: 1 new table, 13 new options
New tables |
---|
wp_adl_lp_templates |
New WordPress options |
---|
adl_lp_excludePage |
adl_demo_inserted |
adl_lp_general |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
adl_lp_social |
adl_lp_misc |
db_upgraded |
adl_lp_accept_term |
... |
Browser metrics Passed 4 tests
Legal Pages – Privacy Policy, Terms & Conditions, GDPR, CCPA, and Cookie Notice Generator: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲121 | 13.29 ▼1.38 | 1.58 ▼0.25 | 37.20 ▼16.23 |
Dashboard /wp-admin | 2,257 ▲66 | 5.86 ▲0.01 | 109.79 ▲6.88 | 89.03 ▲43.05 |
Posts /wp-admin/edit.php | 2,131 ▲42 | 1.99 ▲0.03 | 33.73 ▼7.76 | 35.34 ▼4.97 |
Add New Post /wp-admin/post-new.php | 1,562 ▲29 | 23.25 ▲0.03 | 680.81 ▼13.69 | 57.22 ▲2.82 |
Media Library /wp-admin/upload.php | 1,430 ▲42 | 4.13 ▼0.03 | 108.68 ▲0.06 | 42.90 ▼2.77 |
Add New Legal Page /wp-admin/admin.php?page=createLegalPage | 1,752 | 7.00 | 135.88 | 66.15 |
Upgrade to Pro /wp-admin/admin.php?page=adl-lp-upgrade | 1,054 | 3.30 | 45.09 | 60.07 |
Help & Support /wp-admin/admin.php?page=legal-page-support | 1,025 | 3.24 | 40.15 | 27.75 |
Legal Page Templates /wp-admin/admin.php?page=legal-page-template | 1,993 | 3.70 | 50.92 | 34.77 |
All Legal Pages /wp-admin/admin.php?page=all-legal-Pages | 1,046 | 3.33 | 39.74 | 33.42 |
Settings /wp-admin/admin.php?page=adl-legal-pages | 1,031 | 3.37 | 38.59 | 38.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.04MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie tables were found after uninstall: 1 table
- wp_adl_lp_templates
- Zombie WordPress options detected upon uninstall: 13 options
- widget_recent-posts
- widget_recent-comments
- adl_lp_excludePage
- adl_lp_misc
- widget_theysaidso_widget
- adl_lp_social
- theysaidso_admin_options
- adl_lp_accept_term
- adl_demo_inserted
- can_compress_scripts
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
Please fix the following items
- 10× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/legal-pages/includes/classes/ADL_LP_general.php
- > /wp-content/plugins/legal-pages/views/disclaimer.php
- > /wp-content/plugins/legal-pages/views/support.php
- > /wp-content/plugins/legal-pages/includes/classes/ADL_LP_database.php
- > /wp-content/plugins/legal-pages/config.php
- > /wp-content/plugins/legal-pages/views/upgrade-template-lists.php
- > /wp-content/plugins/legal-pages/main.php
- > /wp-content/plugins/legal-pages/includes/classes/ADL_LP_helper.php
- > /wp-content/plugins/legal-pages/includes/classes/ADL_LP_ajax_handler.php
- > /wp-content/plugins/legal-pages/adl-legal-pages.php
- 48× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant WPLP_URL - assumed 'WPLP_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/legal-pages/views/upgrade-template-lists.php on line 57
- > PHP Warning
Use of undefined constant WPLP_URL - assumed 'WPLP_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/legal-pages/views/upgrade-template-lists.php on line 69
- > PHP Warning
Use of undefined constant WPLP_URL - assumed 'WPLP_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/legal-pages/views/upgrade-template-lists.php on line 75
- > PHP Warning
Use of undefined constant WPLP_URL - assumed 'WPLP_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/legal-pages/views/upgrade-features.php on line 7
- > PHP Warning
Use of undefined constant WPLP_URL - assumed 'WPLP_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/legal-pages/views/upgrade-template-lists.php on line 27
- > PHP Warning
Use of undefined constant WPLP_URL - assumed 'WPLP_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/legal-pages/views/upgrade-template-lists.php on line 42
- > PHP Warning
Use of undefined constant WPLP_URL - assumed 'WPLP_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/legal-pages/views/upgrade-template-lists.php on line 48
- > PHP Warning
Use of undefined constant WPLP_URL - assumed 'WPLP_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/legal-pages/views/upgrade-template-lists.php on line 90
- > PHP Warning
Use of undefined constant WPLP_URL - assumed 'WPLP_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/legal-pages/views/upgrade-features.php on line 11
- > PHP Warning
Use of undefined constant WPLP_URL - assumed 'WPLP_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/legal-pages/views/upgrade-template-lists.php on line 51
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
legal-pages/adl-legal-pages.php 85% from 13 tests
Analyzing the main PHP file in "Legal Pages – Privacy Policy, Terms & Conditions, GDPR, CCPA, and Cookie Notice Generator" version 1.3.8
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("legal-pages.php" instead of "adl-legal-pages.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 259 characters long)
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
Success! There were no dangerous files found in this plugin4,973 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 701 | 794 | 2,964 |
CSS | 5 | 194 | 75 | 1,164 |
JavaScript | 2 | 86 | 60 | 297 |
SVG | 1 | 0 | 0 | 288 |
HTML | 5 | 19 | 0 | 260 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 28.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 1 | 10.00% |
Methods | 151 | |
▷ Static methods | 1 | 0.66% |
▷ Public methods | 116 | 76.82% |
▷ Protected methods | 6 | 3.97% |
▷ Private methods | 29 | 19.21% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 13 | 92.86% |
▷ Class constants | 1 | 7.14% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/img/premium.png | 2.46KB | 1.48KB | ▼ 40.03% |
admin/assets/img/check.png | 0.49KB | 0.32KB | ▼ 35.00% |