83% myagileprivacy

Code Review | My Agile Privacy - The only GDPR solution for WordPress that you can truly trust

WordPress plugin My Agile Privacy - The only GDPR solution for WordPress that you can truly trust scored83%from 54 tests.

About plugin

  • Plugin page: myagileprivacy
  • Plugin version: 2.1.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-6.4
  • WordPress version: 6.3.1
  • First release: Oct 2, 2021
  • Latest release: Nov 9, 2023
  • Number of updates: 193
  • Update frequency: every 4.0 days
  • Top authors: formulaagile (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

4,000+ active /60,474 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /4.96 ▲1.4953.09 ▲13.23
Dashboard /wp-admin4.60 ▲1.3053.02 ▲4.21
Posts /wp-admin/edit.php4.65 ▲1.2952.77 ▲6.97
Add New Post /wp-admin/post-new.php7.12 ▲1.2399.21 ▲7.60
Media Library /wp-admin/upload.php4.46 ▲1.2350.38 ▲16.95
Cookie List /wp-admin/edit.php?post_type=my-agile-privacy-c&post_status=publish4.5747.10
Backup & Restore /wp-admin/edit.php?post_type=my-agile-privacy-c&page=my-agile-privacy-c_backup_restore4.4742.75
Policies List /wp-admin/edit.php?post_type=my-agile-privacy-p4.6448.46
Privacy Settings /wp-admin/edit.php?post_type=my-agile-privacy-c&page=my-agile-privacy-c_settings4.6744.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,088 ▲34113.56 ▼0.6518.99 ▲17.2457.24 ▲13.55
Dashboard /wp-admin2,234 ▲535.50 ▼0.1595.32 ▼13.0571.12 ▲27.15
Posts /wp-admin/edit.php2,151 ▲511.99 ▲0.0336.11 ▲0.0833.27 ▼2.31
Add New Post /wp-admin/post-new.php1,568 ▲4223.61 ▲0.61729.90 ▲64.1747.77 ▼8.11
Media Library /wp-admin/upload.php1,448 ▲484.32 ▲0.16100.56 ▲4.1966.21 ▲21.36
Cookie List /wp-admin/edit.php?post_type=my-agile-privacy-c&post_status=publish3,3813.7576.22101.65
Backup & Restore /wp-admin/edit.php?post_type=my-agile-privacy-c&page=my-agile-privacy-c_backup_restore1,2062.4845.0226.49
Policies List /wp-admin/edit.php?post_type=my-agile-privacy-p1,8102.2935.6434.70
Privacy Settings /wp-admin/edit.php?post_type=my-agile-privacy-c&page=my-agile-privacy-c_settings4,4222.7163.0456.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

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
The official readme.txt might help

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:
LanguageFilesBlank linesComment linesLines of code
CSS89,1465819,646
PHP203,2991,44412,466
PO File51,8722,3655,060
JavaScript88551423,514
XML10030
SVG5008

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 code0.59
Average class complexity442.80
▷ Minimum class complexity138.00
▷ Maximum class complexity919.00
Average method complexity11.07
▷ Minimum method complexity1.00
▷ Maximum method complexity353.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods197
▷ Static methods2613.20%
▷ Public methods17387.82%
▷ Protected methods157.61%
▷ Private methods94.57%
Functions11
▷ Named functions436.36%
▷ Anonymous functions763.64%
Constants52
▷ Global constants52100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
admin/img/banner_eng.png56.27KB18.05KB▼ 67.92%
admin/img/google-cmp-badge.png52.58KB14.71KB▼ 72.01%
admin/img/fox.png35.77KB14.33KB▼ 59.94%
admin/img/banner-pixel-en.png67.37KB28.09KB▼ 58.31%
admin/img/logo-cookieshield.png2.44KB1.24KB▼ 49.34%