84% consent-wow-consent-solution

Code Review | Consent Wow | All-in-One PDPA Consent Solution

WordPress plugin Consent Wow | All-in-One PDPA Consent Solution scored84%from 54 tests.

About plugin

  • Plugin page: consent-wow-conse...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.4.21+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.16-6.0.3
  • WordPress version: 6.3.1
  • First release: Oct 14, 2022
  • Latest release: Oct 20, 2022
  • Number of updates: 5
  • Update frequency: every 1.4 days
  • Top authors: jsice (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /225 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.56ms] Passed 4 tests

Server-side resources used by Consent Wow | All-in-One PDPA Consent Solution
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.30 ▼9.07
Dashboard /wp-admin3.31 ▲0.0045.40 ▼4.23
Posts /wp-admin/edit.php3.36 ▲0.0047.35 ▲4.23
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.66 ▼7.80
Media Library /wp-admin/upload.php3.23 ▲0.0038.36 ▲2.87

Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Consent Wow | All-in-One PDPA Consent Solution
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.21 ▼1.161.59 ▼0.5941.98 ▼2.81
Dashboard /wp-admin2,209 ▲174.86 ▼0.12109.96 ▼3.8443.03 ▲0.55
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0540.31 ▲6.1534.90 ▲2.07
Add New Post /wp-admin/post-new.php1,542 ▲518.19 ▼0.12596.89 ▼6.3750.19 ▼23.79
Media Library /wp-admin/upload.php1,388 ▲64.23 ▼0.0995.50 ▼2.1240.59 ▼0.03

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/consent-wow-consent-solution/pages/api-token-settings-page.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/consent-wow-consent-solution/pages/form-page.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/consent-wow-consent-solution/pages/form-list-page.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/consent-wow-consent-solution/includes/class-consent-wow-form-list-table.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/consent-wow-consent-solution/consent-wow-consent-solution.php:395

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: pdpa, consent

consent-wow-consent-solution/consent-wow-consent-solution.php Passed 13 tests

This is the main PHP file of "Consent Wow | All-in-One PDPA Consent Solution" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
53 characters long description:
PDPA-compliant consent management for your web forms.

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 plugin899 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity11.00
▷ Minimum class complexity6.00
▷ Maximum class complexity16.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods1381.25%
▷ Protected methods00.00%
▷ Private methods318.75%
▷ Named functions3697.30%
▷ Anonymous functions12.70%
▷ Global constants6100.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
No PNG images were found in this plugin