67% seers-cookie-consent-banner-privacy-policy

Code Review | Seers | GDPR & CCPA Cookie Consent & Compliance

WordPress plugin Seers | GDPR & CCPA Cookie Consent & Compliance scored67%from 54 tests.

About plugin

  • Plugin page: seers-cookie-cons...
  • Plugin version: 8.0.6
  • PHP compatiblity: 5.3.3+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 17, 2019
  • Latest release: Feb 2, 2023
  • Number of updates: 175
  • Update frequency: every 7.1 days
  • Top authors: seersco (100%)

Code review

54 tests

User reviews

64 reviews

Install metrics

1,000+ active /52,080 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.64MB] [CPU: ▲1.75ms] Passed 4 tests

This is a short check of server-side resources used by Seers | GDPR & CCPA Cookie Consent & Compliance
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.51 ▲1.0551.10 ▲11.87
Dashboard /wp-admin3.93 ▲0.6350.89 ▲2.96
Posts /wp-admin/edit.php4.04 ▲0.6953.87 ▲4.76
Add New Post /wp-admin/post-new.php6.51 ▲0.6291.22 ▼5.16
Media Library /wp-admin/upload.php3.85 ▲0.6239.05 ▲4.42

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 168 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
SCCBPP_cookie_consent_defaultsettings
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Seers | GDPR & CCPA Cookie Consent & Compliance
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,070 ▲30914.56 ▲0.292.94 ▲1.3761.83 ▲22.64
Dashboard /wp-admin2,213 ▲415.62 ▼0.1089.95 ▼15.1058.67 ▲15.81
Posts /wp-admin/edit.php2,118 ▲152.03 ▲0.0039.35 ▼0.7735.35 ▲3.34
Add New Post /wp-admin/post-new.php1,541 ▲1023.31 ▲0.16637.14 ▼40.1858.66 ▲5.71
Media Library /wp-admin/upload.php1,421 ▲214.19 ▲0.0792.68 ▼19.9143.85 ▼4.97

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 168 files (4.51MB) in the plugin directory
    • (new file) fonts/seers-plugin-font-icons.eot
    • (new file) css/popup.css
    • (new file) images/Choose your Covid-19.svg
    • (new file) fonts/seers-plugin-font-icons.svg
    • (new file) images/5 cookie consent banner design.svg
    • (new file) images/----seers-logo.svg
    • (new file) css/cookie-style.css
    • (new file) css/seers-plugin-font-icons.css
    • (new file) fonts/seers-plugin-font-icons.ttf
    • (new file) fonts/seers-plugin-font-icons.woff
    • ...
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • SCCBPP_cookie_consent_defaultsettings
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/seers-cookie-consent-banner-privacy-policy/seers-cookie-consent-banner-privacy-policy.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/seers-cookie-consent-banner-privacy-policy/templates/frontend-popup.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 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
Attributes that require attention: You can look at the official readme.txt

seers-cookie-consent-banner-privacy-policy/seers-cookie-consent-banner-privacy-policy.php 77% from 13 tests

This is the main PHP file of "Seers | GDPR & CCPA Cookie Consent & Compliance" version 8.0.6, 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:
  • Description: Keep the plugin description shorter than 140 characters (currently 143 characters long)
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("/Languages")
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin42,402 lines of code in 90 files:
LanguageFilesBlank linesComment linesLines of code
PO File6013,27916,75833,912
PHP81,1286016,442
CSS31651061,630
SVG1700406
JavaScript206212

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Please fix the following
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 224)
Cyclomatic complexity
Average complexity per logical line of code0.68
Average class complexity149.75
▷ Minimum class complexity1.00
▷ Maximum class complexity576.00
Average method complexity23.04
▷ Minimum method complexity1.00
▷ Maximum method complexity224.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods27
▷ Static methods27.41%
▷ Public methods2592.59%
▷ Protected methods00.00%
▷ Private methods27.41%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
10 PNG files occupy 0.15MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/Seers-logo1.png6.30KB3.09KB▼ 50.97%
images/plugin-player1.png3.35KB1.11KB▼ 66.78%
images/Solid256dot32_2_navy.png3.71KB0.16KB▼ 95.60%
images/Seers-logo.png6.30KB3.09KB▼ 50.97%
images/play.png5.98KB5.62KB▼ 6.12%