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: ▲0.90MB] [CPU: ▲3.37ms] Passed 4 tests
Server-side resources used by Complianz - Terms and Conditions
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.03 ▲0.56 | 46.53 ▲0.51 |
Dashboard /wp-admin | 4.32 ▲1.02 | 54.93 ▲5.57 |
Posts /wp-admin/edit.php | 4.37 ▲1.02 | 62.33 ▲14.12 |
Add New Post /wp-admin/post-new.php | 6.91 ▲1.03 | 92.89 ▼0.79 |
Media Library /wp-admin/upload.php | 4.25 ▲1.02 | 43.84 ▲8.20 |
Terms & Conditions /wp-admin/tools.php?page=terms-conditions | 4.34 | 49.38 |
Server storage [IO: ▲13.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 745 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_theysaidso_widget |
cmplz_tc_activation_time |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
cmplz-tc-current-version |
cmplz_pdf_dir_token |
can_compress_scripts |
widget_recent-posts |
cmplz_generate_pdf_languages |
Browser metrics Passed 4 tests
Complianz - Terms and Conditions: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.40 ▲0.05 | 1.61 ▼0.21 | 42.13 ▼0.10 |
Dashboard /wp-admin | 2,196 ▲19 | 5.56 ▼0.10 | 90.14 ▼1.10 | 39.43 ▼1.02 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▼0.02 | 34.12 ▼2.12 | 35.04 ▼3.42 |
Add New Post /wp-admin/post-new.php | 6,197 ▲4,671 | 19.00 ▼4.03 | 932.80 ▲250.51 | 60.47 ▲17.04 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.19 ▼0.02 | 94.04 ▼17.09 | 44.32 ▲1.11 |
Terms & Conditions /wp-admin/tools.php?page=terms-conditions | 2,632 | 2.46 | 27.48 | 49.71 |
Uninstaller [IO: ▲0.46MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 10 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- cmplz-tc-current-version
- db_upgraded
- cmplz_generate_pdf_languages
- cmplz_tc_activation_time
- cmplz_pdf_dir_token
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 take a closer look at the following
- 17× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/complianz-terms-conditions/complianz-terms-conditions.php
- > /wp-content/plugins/complianz-terms-conditions/class-wizard.php
- > /wp-content/plugins/complianz-terms-conditions/rest-api/rest-api.php
- > /wp-content/plugins/complianz-terms-conditions/templates/wizard/other-plugins.php
- > /wp-content/plugins/complianz-terms-conditions/class-review.php
- > /wp-content/plugins/complianz-terms-conditions/download.php
- > /wp-content/plugins/complianz-terms-conditions/config/documents/terms-conditions.php
- > /wp-content/plugins/complianz-terms-conditions/functions.php
- > /wp-content/plugins/complianz-terms-conditions/templates/wizard/section.php
- > /wp-content/plugins/complianz-terms-conditions/class-document.php
- 236× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Mpdf\\Language\\LanguageToFontInterface' not found in wp-content/plugins/complianz-terms-conditions/assets/vendor/mpdf/mpdf/src/Language/LanguageToFont.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Barcode\\AbstractBarcode' not found in wp-content/plugins/complianz-terms-conditions/assets/vendor/mpdf/mpdf/src/Barcode/Code128.php:11
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\InlineTag' not found in wp-content/plugins/complianz-terms-conditions/assets/vendor/mpdf/mpdf/src/Tag/Q.php:5
- > PHP Fatal error
Uncaught Error: Interface 'DeepCopy\\Filter\\Filter' not found in wp-content/plugins/complianz-terms-conditions/assets/vendor/myclabs/deep-copy/src/DeepCopy/Filter/Doctrine/DoctrineCollectionFilter.php:11
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\BlockTag' not found in wp-content/plugins/complianz-terms-conditions/assets/vendor/mpdf/mpdf/src/Tag/FieldSet.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\InlineTag' not found in wp-content/plugins/complianz-terms-conditions/assets/vendor/mpdf/mpdf/src/Tag/Sup.php:5
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\Tcpdf\\Fpdi' not found in wp-content/plugins/complianz-terms-conditions/assets/vendor/setasign/fpdi/src/TcpdfFpdi.php:20
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/complianz-terms-conditions/assets/vendor/mpdf/mpdf/src/Tag/Br.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/complianz-terms-conditions/assets/vendor/mpdf/mpdf/src/Tag/TextCircle.php:8
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\BlockTag' not found in wp-content/plugins/complianz-terms-conditions/assets/vendor/mpdf/mpdf/src/Tag/Div.php:5
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: terms and conditions, terms, conditions, webshop, legal...
complianz-terms-conditions/complianz-terms-conditions.php 92% from 13 tests
The entry point to "Complianz - Terms and Conditions" version 1.2.7 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "5.7")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin123,821 lines of code in 569 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 439 | 12,745 | 13,836 | 82,206 |
JSON | 12 | 3 | 0 | 23,215 |
JavaScript | 65 | 2,556 | 772 | 9,901 |
CSS | 12 | 121 | 112 | 3,897 |
LESS | 18 | 453 | 156 | 2,923 |
Markdown | 15 | 522 | 0 | 1,483 |
SVG | 3 | 1 | 0 | 102 |
XML | 4 | 11 | 0 | 91 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 0% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 7,024)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 460)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 56.63 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7,024.00 |
Average method complexity | 12.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 460.00 |
Code structure | ||
---|---|---|
Namespaces | 49 | |
Interfaces | 25 | |
Traits | 6 | |
Classes | 301 | |
▷ Abstract classes | 9 | 2.99% |
▷ Concrete classes | 292 | 97.01% |
▷ Final classes | 14 | 4.79% |
Methods | 1,704 | |
▷ Static methods | 151 | 8.86% |
▷ Public methods | 1,499 | 87.97% |
▷ Protected methods | 55 | 3.23% |
▷ Private methods | 150 | 8.80% |
Functions | 68 | |
▷ Named functions | 34 | 50.00% |
▷ Anonymous functions | 34 | 50.00% |
Constants | 440 | |
▷ Global constants | 16 | 3.64% |
▷ Class constants | 424 | 96.36% |
▷ Public constants | 424 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/s.png | 2.73KB | 0.09KB | ▼ 96.60% |
assets/images/gutenberg-preview.png | 20.25KB | 12.11KB | ▼ 40.20% |
assets/images/icon-256x256.png | 4.47KB | 1.85KB | ▼ 58.71% |
assets/images/down.png | 2.64KB | 1.63KB | ▼ 38.33% |
assets/images/icon-128x128.png | 2.38KB | 0.94KB | ▼ 60.40% |