Benchmarks
Plugin footprint 83% 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.12MB] [CPU: ▼5.10ms] Passed 4 tests
An overview of server-side resources used by Docular. Create GDPR-ready privacy policies and terms & conditions for your site quickly and easily.
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 41.68 ▼2.40 |
Dashboard /wp-admin | 3.42 ▲0.12 | 54.27 ▲0.41 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 52.38 ▼5.02 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 86.98 ▼13.23 |
Media Library /wp-admin/upload.php | 3.34 ▲0.12 | 37.22 ▲0.25 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Docular. Create GDPR-ready privacy policies and terms & conditions for your site quickly and easily.
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,895 ▲134 | 13.38 ▼0.55 | 7.96 ▲6.17 | 46.38 ▲4.61 |
Dashboard /wp-admin | 2,215 ▲35 | 5.57 ▼0.09 | 99.45 ▲8.69 | 42.98 ▲3.60 |
Posts /wp-admin/edit.php | 2,126 ▲23 | 2.00 ▼0.02 | 38.54 ▼3.32 | 33.94 ▼2.96 |
Add New Post /wp-admin/post-new.php | 1,547 ▲21 | 23.42 ▲0.34 | 671.85 ▼34.64 | 63.13 ▲6.76 |
Media Library /wp-admin/upload.php | 1,420 ▲29 | 4.18 ▼0.10 | 100.28 ▼0.61 | 44.89 ▲2.96 |
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 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/docular/public/partials/docular-public-display.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/docular/admin/partials/docular-admin-page-settings.php:32
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: docular, terms, gdpr, disclaimer, conditions...
docular/docular.php Passed 13 tests
This is the main PHP file of "Docular. Create GDPR-ready privacy policies and terms & conditions for your site quickly and easily." version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
119 characters long description:
Add GDPR-friendly privacy policies and terms and conditions to your website, using the FREE Docular document generator.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin912 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 257 | 640 | 557 |
CSS | 2 | 89 | 8 | 250 |
JavaScript | 2 | 49 | 27 | 105 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 8.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 37 | |
▷ Static methods | 2 | 5.41% |
▷ Public methods | 32 | 86.49% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.51% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.36MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/document_key.png | 43.84KB | 41.58KB | ▼ 5.16% |
admin/assets/docular_logo.png | 5.13KB | 2.76KB | ▼ 46.26% |
admin/assets/docular_roundel.png | 1.11KB | 0.65KB | ▼ 41.93% |
admin/assets/docular_logo_black.png | 9.95KB | 9.30KB | ▼ 6.59% |
admin/assets/banner.png | 312.13KB | 316.92KB | 0.00% |