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 gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▼9.77ms] Passed 4 tests
Server-side resources used by LegalWeb Cloud
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 41.84 ▼3.86 |
Dashboard /wp-admin | 3.42 ▲0.07 | 51.90 ▼20.65 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 59.15 ▲5.10 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.25 | 92.05 ▼15.23 |
Media Library /wp-admin/upload.php | 3.37 ▲0.15 | 42.80 ▲0.67 |
Common /wp-admin/admin.php?page=legalweb-cloud | 3.59 | 37.46 |
Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 58 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
legalweb_cloud_api_data_last_refresh_date |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by LegalWeb Cloud
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,866 ▲80 | 14.38 ▲0.01 | 1.77 ▼0.31 | 42.15 ▼2.27 |
Dashboard /wp-admin | 2,275 ▲95 | 4.93 ▼0.74 | 95.80 ▼1.45 | 37.66 ▼5.59 |
Posts /wp-admin/edit.php | 2,177 ▲74 | 2.47 ▲0.46 | 40.87 ▲2.94 | 37.14 ▲3.50 |
Add New Post /wp-admin/post-new.php | 1,559 ▲33 | 17.68 ▲0.03 | 733.27 ▲63.88 | 37.34 ▼18.93 |
Media Library /wp-admin/upload.php | 1,480 ▲83 | 4.46 ▲0.22 | 109.49 ▲4.35 | 45.42 ▼1.03 |
Common /wp-admin/admin.php?page=legalweb-cloud | 1,051 | 1.93 | 29.27 | 80.79 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 75% 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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 18× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/legalweb-cloud/includes/shortcodes/class-legalweb-cloud-content-block-shortcode.php:63
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/legalweb-cloud/includes/shortcodes/class-legalweb-cloud-privacy-policy-shortcode.php:32
- > PHP Fatal error
Uncaught Error: Class 'LegalWebCloudAjaxAction' not found in wp-content/plugins/legalweb-cloud/includes/class-legalweb-cloud-api-action.php:3
- > PHP Fatal error
Uncaught Error: Class 'LegalWebCloudCron' not found in wp-content/plugins/legalweb-cloud/includes/cron/class-legalweb-cloud-api-cron.php:3
- > PHP Fatal error
Uncaught Error: Class 'LegalWebCloudAdminTab' not found in wp-content/plugins/legalweb-cloud/admin/tabs/common-settings/class-legalweb-cloud-common-settings-tab.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/legalweb-cloud/includes/shortcodes/class-legalweb-cloud-contract-terms-shortcode.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/legalweb-cloud/includes/shortcodes/class-legalweb-cloud-seal-shortcode.php:61
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/legalweb-cloud/admin/tabs/common-settings/page.php:2
- > PHP Fatal error
Uncaught Error: Class 'LegalWebCloudAjaxAction' not found in wp-content/plugins/legalweb-cloud/admin/tabs/common-settings/class-legalweb-cloud-common-settings-action.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/legalweb-cloud/includes/shortcodes/class-legalweb-cloud-imprint-shortcode.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: wordpress
legalweb-cloud/legalweb-cloud.php Passed 13 tests
The main PHP file in "LegalWeb Cloud" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
122 characters long description:
Wordpress Plugin for GDPR/DSGVO, Imprint & Privacy Policy and other legal texts to use with the legalweb.io cloud service.
Code Analysis Passed 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
There were no executable files found in this plugin2,358 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 538 | 404 | 1,910 |
PO File | 1 | 74 | 124 | 245 |
CSS | 2 | 14 | 19 | 89 |
SVG | 2 | 0 | 2 | 78 |
JavaScript | 2 | 17 | 12 | 36 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 10.61 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 2 | 11.11% |
▷ Concrete classes | 16 | 88.89% |
▷ Final classes | 0 | 0.00% |
Methods | 103 | |
▷ Static methods | 29 | 28.16% |
▷ Public methods | 90 | 87.38% |
▷ Protected methods | 9 | 8.74% |
▷ Private methods | 4 | 3.88% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 5 | 50.00% |
▷ Class constants | 5 | 50.00% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/legalweb.io-icon.png | 16.62KB | 8.51KB | ▼ 48.78% |
public/images/legalweb.io-icon-white.png | 10.45KB | 5.20KB | ▼ 50.25% |
public/images/legalwebio-icon-white.png | 10.45KB | 5.20KB | ▼ 50.25% |
public/images/legalwebio-icon.png | 16.62KB | 8.51KB | ▼ 48.78% |