78% widg-net-cookies

Code Review | Уведомление о файлах cookie и соответствие требованиям закона о персональных данных в РФ (№ 152-ФЗ)

WordPress plugin Уведомление о файлах cookie и соответствие требованиям закона о персональных данных в РФ (№ 152-ФЗ) scored78%from 54 tests.

About plugin

  • Plugin page: widg-net-cookies
  • Plugin version: 1.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Feb 18, 2022
  • Latest release: Feb 18, 2022
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: widgnet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,218 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.22ms] Passed 4 tests

An overview of server-side resources used by Уведомление о файлах cookie и соответствие требованиям закона о персональных данных в РФ (№ 152-ФЗ)
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.13 ▼3.08
Dashboard /wp-admin3.32 ▲0.0244.44 ▼5.63
Posts /wp-admin/edit.php3.37 ▲0.0243.49 ▼3.71
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.58 ▼3.04
Media Library /wp-admin/upload.php3.24 ▲0.0132.58 ▼4.45

Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Уведомление о файлах cookie и соответствие требованиям закона о персональных данных в РФ (№ 152-ФЗ)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.34 ▼0.011.94 ▲0.3239.91 ▼7.56
Dashboard /wp-admin2,202 ▲255.67 ▲0.1084.14 ▼8.2037.46 ▼2.66
Posts /wp-admin/edit.php2,104 ▲72.16 ▲0.1939.40 ▲2.2735.30 ▲0.85
Add New Post /wp-admin/post-new.php1,536 ▲123.03 ▲4.85654.51 ▲38.5454.14 ▼24.66
Media Library /wp-admin/upload.php1,401 ▼24.19 ▲0.03111.36 ▲15.5548.36 ▲7.15
WIDG.net - Уведомление о cookies /wp-admin/widgnet_1020_setting.php260.420.0714.63

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/widg-net-cookies/widgnet_1020.php:25

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
    • > GET request to /wp-admin/widgnet_1020_setting.php
    • > Network (severe)
    wp-admin/widgnet_1020_setting.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: cookies, ccpa, gdpr, cookie, widgnet_1020...

widg-net-cookies/widgnet_1020.php 85% from 13 tests

"Уведомление о файлах cookie и соответствие требованиям закона о персональных данных в РФ (№ 152-ФЗ)" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 164 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("widg-net-cookies.php" instead of "widgnet_1020.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin124 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP32931124

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity6.50
▷ Minimum class complexity4.00
▷ Maximum class complexity9.00
Average method complexity1.92
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods216.67%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin