Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.37MB] [CPU: ▲0.48ms] Passed 4 tests
A check of server-side resources used by Legal Text Connector of the IT-Recht Kanzlei
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.39 | 39.53 ▲1.26 |
Dashboard /wp-admin | 3.70 ▲0.39 | 45.78 ▼4.81 |
Posts /wp-admin/edit.php | 3.75 ▲0.39 | 49.35 ▲4.93 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.35 | 94.30 ▲1.93 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 34.16 ▲3.53 |
IT-Recht Kanzlei /wp-admin/options-general.php?page=legal_texts_connector_settings | 3.54 | 31.61 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
itrk_lti_setup_status |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Legal Text Connector of the IT-Recht Kanzlei
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲32 | 14.57 ▲0.31 | 1.68 ▼0.09 | 42.99 ▼2.75 |
Dashboard /wp-admin | 2,199 ▲21 | 5.65 ▼0.13 | 93.17 ▼21.81 | 41.00 ▼2.42 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.94 ▼0.00 | 40.97 ▲4.36 | 36.01 ▲5.26 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 18.38 ▼4.79 | 609.75 ▼53.95 | 67.69 ▲18.30 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.17 ▼0.00 | 98.06 ▲1.06 | 40.28 ▼3.06 |
IT-Recht Kanzlei /wp-admin/options-general.php?page=legal_texts_connector_settings | 923 | 2.01 | 23.53 | 32.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- itrk_lti_setup_status
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
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 everything seems fine, this is not 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 fix the following
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'ITRechtKanzlei\\LTIResult' not found in wp-content/plugins/legal-texts-connector-it-recht-kanzlei/src/sdk/LTIErrorResult.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/legal-texts-connector-it-recht-kanzlei/src/views/settings-header.php:25
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/legal-texts-connector-it-recht-kanzlei/src/views/message.php:4
- > PHP Fatal error
Uncaught Error: Class 'ITRechtKanzlei\\LTIResult' not found in wp-content/plugins/legal-texts-connector-it-recht-kanzlei/src/sdk/LTIAccountListResult.php:10
- > PHP Fatal error
Uncaught Error: Class 'ITRechtKanzlei\\LTIResult' not found in wp-content/plugins/legal-texts-connector-it-recht-kanzlei/src/sdk/LTIPushResult.php:10
- > PHP Fatal error
Uncaught Error: Class 'ITRechtKanzlei\\LegalTextsConnector\\ShortCodes' not found in wp-content/plugins/legal-texts-connector-it-recht-kanzlei/src/views/settings-page.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/legal-texts-connector-it-recht-kanzlei/src/views/login.php:8
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/legal-texts-connector-it-recht-kanzlei/src/views/messages.php:2
- > PHP Fatal error
Uncaught Error: Class 'ITRechtKanzlei\\LTIResult' not found in wp-content/plugins/legal-texts-connector-it-recht-kanzlei/src/sdk/LTIVersionResult.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/legal-texts-connector-it-recht-kanzlei/src/views/uninstall-old-plugin.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: rechtstexte, agb, abmahnsicher, impressum, datenschutz
legal-texts-connector-it-recht-kanzlei/legal-texts-connector-it-recht-kanzlei.php 92% from 13 tests
"Legal Text Connector of the IT-Recht Kanzlei" version 1.0.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 164 characters long)
Code Analysis Passed 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
Everything looks great! No dangerous files found in this plugin3,392 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 336 | 215 | 1,902 |
PO File | 2 | 256 | 350 | 689 |
SVG | 2 | 0 | 0 | 405 |
CSS | 1 | 27 | 6 | 396 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 12.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 1 | 5.00% |
▷ Concrete classes | 19 | 95.00% |
▷ Final classes | 0 | 0.00% |
Methods | 117 | |
▷ Static methods | 33 | 28.21% |
▷ Public methods | 95 | 81.20% |
▷ Protected methods | 9 | 7.69% |
▷ Private methods | 13 | 11.11% |
Functions | 13 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 13 | 100.00% |
Constants | 51 | |
▷ Global constants | 1 | 1.96% |
▷ Class constants | 50 | 98.04% |
▷ Public constants | 49 | 98.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
There are no PNG files in this plugin