Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.14MB] [CPU: ▼2.54ms] Passed 4 tests
An overview of server-side resources used by Privacy Policy Generator, Terms & Conditions Generator WordPress Plugin : WPLegalPages
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 36.79 ▼2.99 |
Dashboard /wp-admin | 3.47 ▲0.17 | 45.49 ▼3.80 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 51.74 ▲5.14 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 84.44 ▼6.19 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 35.89 ▲2.83 |
Server storage [IO: ▲6.69MB] [DB: ▲0.12MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 230 new files
Database: 2 new tables, 27 new options
New tables |
---|
wp_lp_popups |
wp_legal_pages |
New WordPress options |
---|
widget_theysaidso_widget |
analytics_activation_redirect_wplegalpages |
lp_eu_button_text_color |
_lp_effective_date_templates_updated |
wplegalpages-usage-setup |
wplegalpages_free_version |
lp_eu_button_color |
lp_eu_box_color |
lp_general |
_lp_templates_updated |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Privacy Policy Generator, Terms & Conditions Generator WordPress Plugin : WPLegalPages
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲146 | 13.77 ▼0.41 | 7.63 ▲5.93 | 36.75 ▼3.81 |
Dashboard /wp-admin | 2,210 ▲32 | 5.61 ▼0.09 | 84.14 ▼30.16 | 38.13 ▼7.65 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 1.94 ▼0.07 | 38.34 ▲0.21 | 35.28 ▲2.63 |
Add New Post /wp-admin/post-new.php | 1,541 ▲10 | 23.02 ▲0.28 | 624.99 ▼63.16 | 54.63 ▼8.58 |
Media Library /wp-admin/upload.php | 1,412 ▲15 | 4.17 ▲0.01 | 97.99 ▼11.67 | 41.19 ▼5.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 14 options in the database
- widget_legal_pages
- widget_recent-posts
- widget_theysaidso_widget
- wplegalpages-usage-setup
- lp_eu_button_text
- theysaidso_admin_options
- _lp_effective_date_templates_updated
- can_compress_scripts
- widget_recent-comments
- lp_eu_theme_css
- ...
Smoke tests 75% 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 no errors were found, this is by no means an exhaustive test
SRP 50% 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 take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wplegalpages/widgets/class-wp-widget-legal-pages.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wplegalpages/admin/wplegalpages-admin-settings.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Tags: Too many tags (42 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: These screenshots do not have images: #1 (Create Legal Page), #2 (Manage Legal Pages), #3 (Configure Settings), #4 (Advanced Settings), #5 (Shortcodes Tab), #6 (Enable Compliances tab), #7 (Affiliate Disclosure)
wplegalpages/wplegalpages.php Passed 13 tests
The main PHP script in "Privacy Policy Generator, Terms & Conditions Generator WordPress Plugin : WPLegalPages" version 2.9.4 is automatically included on every request by WordPress
122 characters long description:
WPLegalPages is a simple 1 click legal page management plugin. You can quickly add in legal pages to your WordPress sites.
Code Analysis 97% from 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
No dangerous file extensions were detected30,465 lines of code in 108 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 37 | 1,592 | 1,862 | 14,578 |
PHP | 31 | 776 | 2,084 | 9,484 |
CSS | 27 | 158 | 46 | 3,701 |
JSON | 1 | 0 | 0 | 1,434 |
SVG | 3 | 0 | 0 | 482 |
HTML | 7 | 0 | 0 | 397 |
PO File | 1 | 138 | 191 | 371 |
XML | 1 | 0 | 0 | 18 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 146)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 84.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 629.00 |
Average method complexity | 8.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 146.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 157 | |
▷ Static methods | 16 | 10.19% |
▷ Public methods | 134 | 85.35% |
▷ Protected methods | 6 | 3.82% |
▷ Private methods | 17 | 10.83% |
Functions | 32 | |
▷ Named functions | 32 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 21 | |
▷ Global constants | 19 | 90.48% |
▷ Class constants | 2 | 9.52% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
98 PNG files occupy 1.89MB with 0.88MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/js/vue/images/powerful-yet-simple.png | 2.32KB | 1.65KB | ▼ 28.63% |
admin/js/vue/wizard_images/gdpr_cookie_policy.png | 4.28KB | 2.06KB | ▼ 51.83% |
admin/js/vue/wizard_images/general_disclaimer.png | 6.31KB | 2.75KB | ▼ 56.40% |
admin/js/vue/images/help_center.png | 30.22KB | 14.03KB | ▼ 53.57% |
admin/images/tooltip-icon.png | 0.42KB | 0.24KB | ▼ 43.12% |