90% eu-cookie-policy

Code Review | EU Cookie Policy

WordPress plugin EU Cookie Policy scored 90% from 54 tests.

About plugin

  • Plugin page: eu-cookie-policy
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.9.6
  • WordPress version: 5.8.1
  • First release: Aug 20, 2018
  • Latest release: Aug 20, 2018
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: maghodiya.paresh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 452 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼145.92ms] Passed 4 tests

A check of server-side resources used by EU Cookie Policy
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.92 ▲0.1934.26 ▲8.91
Dashboard /wp-admin3.24 ▲0.1843.96 ▲0.39
Posts /wp-admin/edit.php3.36 ▲0.2445.62 ▼6.99
Add New Post /wp-admin/post-new.php5.60 ▲0.1690.03 ▼575.40
Media Library /wp-admin/upload.php3.19 ▲0.1833.29 ▼1.69
EU Cookie Policy /wp-admin/options-general.php?page=ecp3.1625.12

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 4 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for EU Cookie Policy
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,871 ▲23416.62 ▲0.9015.42 ▲6.0246.74 ▼7.02
Dashboard /wp-admin3,005 ▲746.55 ▲0.48132.28 ▼21.03108.61 ▼10.12
Posts /wp-admin/edit.php2,771 ▲322.76 ▲0.0462.89 ▼2.5892.54 ▼57.96
Add New Post /wp-admin/post-new.php1,692 ▲918.96 ▲0.43376.59 ▼8.26124.35 ▲12.77
Media Library /wp-admin/upload.php1,839 ▲325.18 ▲0.15139.66 ▼13.09121.42 ▲8.42
EU Cookie Policy /wp-admin/options-general.php?page=ecp1,2762.5855.9585.99

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 4 options in the database
    • ecp_more_info_page
    • ecp_options_settings
    • ecp_content_settings
    • ecp_styles_settings

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: cookie notification, cookie policy, cookie privacy, cookie compliance, cookie law...

eu-cookie-policy/eu-cookie-policy.php Passed 13 tests

"EU Cookie Policy" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
75 characters long description:
EU Cookie Policy plugin to make easier to display cookie policy on website.

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
Everything looks great! No dangerous files found in this plugin1,535 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity28.67
▷ Minimum class complexity19.00
▷ Maximum class complexity44.00
Average method complexity2.41
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods59100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin