Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.38MB] [CPU: ▼5.92ms] Passed 4 tests
Server-side resources used by WebMe Cookie & Privacy
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.43 | 42.99 ▲6.10 |
Dashboard /wp-admin | 3.73 ▲0.38 | 46.98 ▼11.36 |
Posts /wp-admin/edit.php | 3.78 ▲0.42 | 50.03 ▼0.34 |
Add New Post /wp-admin/post-new.php | 6.26 ▲0.37 | 90.25 ▼18.06 |
Media Library /wp-admin/upload.php | 3.58 ▲0.35 | 37.03 ▲6.64 |
Cookie & Privacy /wp-admin/admin.php?page=webme-cookie-privacy | 3.63 | 329.40 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 37 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
webme-cookie-privacy |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
WebMe Cookie & Privacy: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲77 | 13.42 ▼0.87 | 1.66 ▼0.67 | 44.16 ▲3.08 |
Dashboard /wp-admin | 2,243 ▲52 | 5.07 ▲0.22 | 101.84 ▲0.25 | 38.22 ▼4.48 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 2.34 ▲0.28 | 34.93 ▼6.07 | 33.63 ▼2.70 |
Add New Post /wp-admin/post-new.php | 1,718 ▲179 | 24.60 ▲1.50 | 589.40 ▼12.32 | 34.77 ▼29.58 |
Media Library /wp-admin/upload.php | 1,432 ▲44 | 4.37 ▲0.17 | 89.25 ▼5.60 | 41.92 ▼0.72 |
Cookie & Privacy /wp-admin/admin.php?page=webme-cookie-privacy | 1,141 | 2.24 | 53.72 | 41.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- webme-cookie-privacy
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/webme-cookie-privacy/includes/iubenda-cookie-class/test.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/webme-cookie-privacy/public/partials/wm-gdpr-public-display.php:53
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/webme-cookie-privacy/admin/partials/wm-gdpr-admin-display.php:3
- > PHP Notice
Undefined variable: url in wp-content/plugins/webme-cookie-privacy/includes/iubenda-cookie-class/test.php on line 58
- > 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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: iubenda, gdpr, cookie law info, privacy
webme-cookie-privacy/wm-gdpr.php 85% from 13 tests
This is the main PHP file of "WebMe Cookie & Privacy" version 2.0.15, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("webme-cookie-privacy.php" instead of "wm-gdpr.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin4,629 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 937 | 1,539 | 4,280 |
Markdown | 2 | 76 | 0 | 205 |
PO File | 1 | 41 | 70 | 72 |
CSS | 1 | 11 | 4 | 47 |
JSON | 1 | 0 | 0 | 16 |
JavaScript | 2 | 2 | 0 | 9 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 51.53 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 246.00 |
Average method complexity | 4.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 203 | |
▷ Static methods | 10 | 4.93% |
▷ Public methods | 177 | 87.19% |
▷ Protected methods | 15 | 7.39% |
▷ Private methods | 11 | 5.42% |
Functions | 13 | |
▷ Named functions | 9 | 69.23% |
▷ Anonymous functions | 4 | 30.77% |
Constants | 31 | |
▷ Global constants | 23 | 74.19% |
▷ Class constants | 8 | 25.81% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin