90% cookies-ck

Code Review | Cookies CK

WordPress plugin Cookies CK scored90%from 54 tests.

About plugin

  • Plugin page: cookies-ck
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0.0
  • WordPress version: 6.3.1
  • First release: Oct 14, 2016
  • Latest release: Dec 9, 2018
  • Number of updates: 15
  • Update frequency: every 52.4 days
  • Top authors: ced1870 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,504 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

An overview of server-side resources used by Cookies CK
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.32 ▼6.53
Dashboard /wp-admin3.32 ▲0.0149.46 ▼10.64
Posts /wp-admin/edit.php3.37 ▲0.0153.74 ▲1.36
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.34 ▼13.13
Media Library /wp-admin/upload.php3.24 ▲0.0135.35 ▲0.15
Cookies CK /wp-admin/options-general.php?page=cookies-ck3.1934.85

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Cookies CK
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,951 ▲19013.44 ▼0.979.87 ▲8.0541.85 ▼2.34
Dashboard /wp-admin2,199 ▲225.66 ▼0.0397.14 ▲5.5642.20 ▼1.53
Posts /wp-admin/edit.php2,104 ▲12.02 ▼0.0137.14 ▼3.0129.46 ▼4.87
Add New Post /wp-admin/post-new.php1,548 ▲1723.16 ▼0.08660.24 ▼11.4154.68 ▲2.24
Media Library /wp-admin/upload.php1,398 ▼24.25 ▲0.01100.97 ▼2.0342.68 ▼1.06
Cookies CK /wp-admin/options-general.php?page=cookies-ck8762.0235.7351.54

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • cookies-ck_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 | A shallow check that no browser errors were triggered
No browser errors were detected


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: slideshow, image, carousel, diaporama

cookies-ck/cookies-ck.php Passed 13 tests

The main PHP script in "Cookies CK" version 1.1.0 is automatically included on every request by WordPress
78 characters long description:
Cookies CK creates a popup to inform the visitor that the website uses cookies

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
Everything looks great! No dangerous files found in this plugin637 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PO File110221551

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods110.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants13100.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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logo_cookiesck_64.png4.09KB2.91KB▼ 28.71%