94% cookie-law-info-accepting-by-scroll

Code Review | Cookie Law Info Accepting By Scroll [Unmaintained]

WordPress plugin Cookie Law Info Accepting By Scroll [Unmaintained] scored 94% from 54 tests.

About plugin

  • Plugin page: cookie-law-info-a...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.3
  • WordPress version: 5.9.2
  • First release: May 27, 2015
  • Latest release: Aug 19, 2015
  • Number of updates: 20
  • Update frequency: every 4.2 days
  • Top authors: carminericco (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 4,224 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.02MB] [CPU: ▼296.08ms] Passed 4 tests

This is a short check of server-side resources used by Cookie Law Info Accepting By Scroll [Unmaintained]
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0155.66 ▲2.47
Dashboard /wp-admin3.41 ▲0.0032.14 ▼1.53
Posts /wp-admin/edit.php3.64 ▲0.0036.17 ▼2.60
Add New Post /wp-admin/post-new.php6.92 ▼0.0896.39 ▼1,173.49
Media Library /wp-admin/upload.php3.29 ▼0.0124.19 ▼6.71

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Cookie Law Info Accepting By Scroll [Unmaintained]
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,766 ▲1215.92 ▲0.305.56 ▼0.612.32 ▼0.30
Dashboard /wp-admin2,895 ▲446.18 ▼0.03115.43 ▼16.66157.95 ▼1.45
Posts /wp-admin/edit.php2,694 ▲63.24 ▼0.0063.79 ▼1.81138.71 ▼5.43
Add New Post /wp-admin/post-new.php1,668 ▼8418.09 ▼3.33377.77 ▼57.83160.30 ▲2.73
Media Library /wp-admin/upload.php1,698 ▼35.53 ▲0.07138.17 ▼4.26188.67 ▼3.47

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/cookie-law-info-accepting-by-scroll/main.php:14

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% 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
5 plugin tags: cookielaw, scroll, cookie, cookie law, accept

cookie-law-info-accepting-by-scroll/main.php 92% from 13 tests

The primary PHP file in "Cookie Law Info Accepting By Scroll [Unmaintained]" version 1.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cookie-law-info-accepting-by-scroll.php" instead of "main.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 plugin136 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2262282
PHP3191532
PO File124048021
CSS1011

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin