83% clickskeks

Code Review | clickskeks.at Cookiebanner

WordPress plugin clickskeks.at Cookiebanner scored83%from 54 tests.

About plugin

  • Plugin page: clickskeks
  • Plugin version: 1.3.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 2, 2020
  • Latest release: Oct 27, 2023
  • Number of updates: 23
  • Update frequency: every 46.1 days
  • Top authors: clickskeks (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

600+ active /4,627 total downloads

Benchmarks

Plugin footprint 83% 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.03MB] [CPU: ▲0.17ms] Passed 4 tests

An overview of server-side resources used by clickskeks.at Cookiebanner
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.02 ▼1.37
Dashboard /wp-admin3.34 ▲0.0343.85 ▼2.36
Posts /wp-admin/edit.php3.39 ▲0.0348.07 ▲6.27
Add New Post /wp-admin/post-new.php5.94 ▲0.0581.48 ▲0.88
Media Library /wp-admin/upload.php3.26 ▲0.0337.36 ▲3.54

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for clickskeks.at Cookiebanner
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲7314.36 ▲0.161.66 ▼0.1938.89 ▼2.01
Dashboard /wp-admin2,234 ▲565.56 ▼0.1583.59 ▼14.3237.22 ▼3.10
Posts /wp-admin/edit.php2,145 ▲452.04 ▲0.0534.72 ▼0.3731.74 ▼3.05
Add New Post /wp-admin/post-new.php1,381 ▼15617.09 ▼1.44562.09 ▼81.8046.70 ▼27.05
Media Library /wp-admin/upload.php1,442 ▲394.15 ▼0.08100.28 ▼2.9044.16 ▼2.34

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/clickskeks/index.php:35

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Requires at least: Invalid plugin version format
The official readme.txt is a good inspiration

clickskeks/index.php 85% from 13 tests

The main file in "clickskeks.at Cookiebanner" v. 1.3.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("clickskeks.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin210 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP13630131
CSS18044
JavaScript16022
SVG10013

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity2.55
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods1090.91%
▷ Protected methods00.00%
▷ Private methods19.09%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/keks.png12.83KB11.67KB▼ 9.03%
img/logo.png16.41KB6.14KB▼ 62.58%
img/screenshot.png14.96KB5.67KB▼ 62.12%