Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.26MB] [CPU: ▲8.00ms] Passed 4 tests
This is a short check of server-side resources used by My Agile Privacy - The only GDPR solution for WordPress that you can truly trust
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.96 ▲1.49 | 53.09 ▲13.23 |
Dashboard /wp-admin | 4.60 ▲1.30 | 53.02 ▲4.21 |
Posts /wp-admin/edit.php | 4.65 ▲1.29 | 52.77 ▲6.97 |
Add New Post /wp-admin/post-new.php | 7.12 ▲1.23 | 99.21 ▲7.60 |
Media Library /wp-admin/upload.php | 4.46 ▲1.23 | 50.38 ▲16.95 |
Cookie List /wp-admin/edit.php?post_type=my-agile-privacy-c&post_status=publish | 4.57 | 47.10 |
Backup & Restore /wp-admin/edit.php?post_type=my-agile-privacy-c&page=my-agile-privacy-c_backup_restore | 4.47 | 42.75 |
Policies List /wp-admin/edit.php?post_type=my-agile-privacy-p | 4.64 | 48.46 |
Privacy Settings /wp-admin/edit.php?post_type=my-agile-privacy-c&page=my-agile-privacy-c_settings | 4.67 | 44.77 |
Server storage [IO: ▲10.09MB] [DB: ▲0.04MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 88 new files
Database: no new tables, 15 new options
New WordPress options |
---|
MyAgilePrivacy-1.0.0 |
widget_theysaidso_widget |
MyAgilePrivacy-do_sync_last_execution |
db_upgraded |
MyAgilePrivacy-_compliance_report |
MyAgilePrivacy-_rconfig |
theysaidso_admin_options |
MyAgilePrivacy-do_parity_check_now |
MyAgilePrivacy-sync_in_progress |
MyAgilePrivacy-do_sync_now |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for My Agile Privacy - The only GDPR solution for WordPress that you can truly trust
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,088 ▲341 | 13.56 ▼0.65 | 18.99 ▲17.24 | 57.24 ▲13.55 |
Dashboard /wp-admin | 2,234 ▲53 | 5.50 ▼0.15 | 95.32 ▼13.05 | 71.12 ▲27.15 |
Posts /wp-admin/edit.php | 2,151 ▲51 | 1.99 ▲0.03 | 36.11 ▲0.08 | 33.27 ▼2.31 |
Add New Post /wp-admin/post-new.php | 1,568 ▲42 | 23.61 ▲0.61 | 729.90 ▲64.17 | 47.77 ▼8.11 |
Media Library /wp-admin/upload.php | 1,448 ▲48 | 4.32 ▲0.16 | 100.56 ▲4.19 | 66.21 ▲21.36 |
Cookie List /wp-admin/edit.php?post_type=my-agile-privacy-c&post_status=publish | 3,381 | 3.75 | 76.22 | 101.65 |
Backup & Restore /wp-admin/edit.php?post_type=my-agile-privacy-c&page=my-agile-privacy-c_backup_restore | 1,206 | 2.48 | 45.02 | 26.49 |
Policies List /wp-admin/edit.php?post_type=my-agile-privacy-p | 1,810 | 2.29 | 35.64 | 34.70 |
Privacy Settings /wp-admin/edit.php?post_type=my-agile-privacy-c&page=my-agile-privacy-c_settings | 4,422 | 2.71 | 63.04 | 56.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.04MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 15 options
- can_compress_scripts
- MyAgilePrivacy-db_version_number
- MyAgilePrivacy-sync_in_progress
- MyAgilePrivacy-do_sync_now
- MyAgilePrivacy-do_sync_last_execution
- widget_theysaidso_widget
- MyAgilePrivacy-1.0.0
- db_upgraded
- MyAgilePrivacy-do_parity_check_now
- MyAgilePrivacy-_rconfig
- ...
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 20× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/myagileprivacy/admin/views/inc/inc.admin_sidebar.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/myagileprivacy/admin/views/backup_restore_html.php:2
- > PHP Notice
Undefined variable: css_compatibility_fix in wp-content/plugins/myagileprivacy/admin/views/compliance_report_html.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/myagileprivacy/admin/views/inc/inc.admin_sidebar.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_pages() in wp-content/plugins/myagileprivacy/admin/views/admin_page_html.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/myagileprivacy/admin/views/inc/inc.backup_restore_tab.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/myagileprivacy/admin/views/inc/inc.advanced_tab.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/myagileprivacy/admin/views/inc/inc.identity_tab.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/myagileprivacy/admin/views/inc/inc.license_tab.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/myagileprivacy/admin/views/inc/inc.cookie_banner_tab.php:9
- > 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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
myagileprivacy/my-agile-privacy.php 92% from 13 tests
The main file in "My Agile Privacy - The only GDPR solution for WordPress that you can truly trust" v. 2.1.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("myagileprivacy.php" instead of "my-agile-privacy.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin40,724 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 9,146 | 58 | 19,646 |
PHP | 20 | 3,299 | 1,444 | 12,466 |
PO File | 5 | 1,872 | 2,365 | 5,060 |
JavaScript | 8 | 855 | 142 | 3,514 |
XML | 1 | 0 | 0 | 30 |
SVG | 5 | 0 | 0 | 8 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
It is recommended to fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 353)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 442.80 |
▷ Minimum class complexity | 138.00 |
▷ Maximum class complexity | 919.00 |
Average method complexity | 11.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 353.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 197 | |
▷ Static methods | 26 | 13.20% |
▷ Public methods | 173 | 87.82% |
▷ Protected methods | 15 | 7.61% |
▷ Private methods | 9 | 4.57% |
Functions | 11 | |
▷ Named functions | 4 | 36.36% |
▷ Anonymous functions | 7 | 63.64% |
Constants | 52 | |
▷ Global constants | 52 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
17 PNG files occupy 0.48MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/banner_eng.png | 56.27KB | 18.05KB | ▼ 67.92% |
admin/img/google-cmp-badge.png | 52.58KB | 14.71KB | ▼ 72.01% |
admin/img/fox.png | 35.77KB | 14.33KB | ▼ 59.94% |
admin/img/banner-pixel-en.png | 67.37KB | 28.09KB | ▼ 58.31% |
admin/img/logo-cookieshield.png | 2.44KB | 1.24KB | ▼ 49.34% |