68% asd-cookie-consent

Code Review | ASD Cookie Consent

WordPress plugin ASD Cookie Consent scored68%from 54 tests.

About plugin

  • Plugin page: asd-cookie-consent
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.1
  • WordPress version: 6.3.1
  • First release: Jun 12, 2018
  • Latest release: Mar 2, 2019
  • Number of updates: 26
  • Update frequency: every 10.1 days
  • Top authors: hydra74 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /753 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.89MB] [CPU: ▼34.00ms] Passed 4 tests

An overview of server-side resources used by ASD Cookie Consent
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0638.17 ▼2.01
Dashboard /wp-admin3.05 ▼0.2524.10 ▼25.75
Posts /wp-admin/edit.php3.06 ▼0.3023.66 ▼21.21
Add New Post /wp-admin/post-new.php3.05 ▼2.8425.57 ▼75.74
Media Library /wp-admin/upload.php3.05 ▼0.1822.62 ▼13.31
ASDCookieConsent /wp-admin/options-general.php?page=asd-cookie-consent3.0623.25

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
asd_cookie_consent
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for ASD Cookie Consent
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲11013.68 ▼0.706.38 ▲4.7058.09 ▲10.26
Dashboard /wp-admin2,210 ▲225.90 ▲1.00106.51 ▼7.0744.57 ▲0.81
Posts /wp-admin/edit.php2,096 ▲72.05 ▼0.0040.23 ▲6.5238.24 ▲2.44
Add New Post /wp-admin/post-new.php1,517 ▼2517.64 ▼0.62695.43 ▲67.3055.23 ▼5.99
Media Library /wp-admin/upload.php1,386 ▼24.23 ▲0.0596.76 ▲0.6541.49 ▲1.10
ASDCookieConsent /wp-admin/options-general.php?page=asd-cookie-consent9452.0624.9827.23

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=asd-cookie-consent
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

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
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/asd-cookie-consent/includes/config.php
    • > /wp-content/plugins/asd-cookie-consent/asd-cookie-consent.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 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
4 plugin tags: cookie, cookie compliance, cookie privacy, cookies

asd-cookie-consent/asd-cookie-consent.php 92% from 13 tests

This is the main PHP file of "ASD Cookie Consent" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Domain Path: The domain path folder was not found ("/asd-cookie-consent/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,729 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript32792281,044
PHP45736373
CSS75724239
PO File1283473

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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