10% wcookie

Code Review | wCookie

WordPress plugin wCookie scored10%from 54 tests.

About plugin

  • Plugin page: wcookie
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Jul 30, 2019
  • Latest release: Jul 30, 2019
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: ajaylulia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /493 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Error in wp-content/plugins/wcookie/wcookie.php+16
    Uncaught Error: Call to undefined function wcookie_defualt_configuration_array() in wp-content/plugins/wcookie/wcookie.php:16
    Stack trace:
    #0 wp-includes/class-wp-hook.php(310): wcookie_activate()
    #1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #2 wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 wp-admin/includes/plugin.php(693): do_action()

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.27ms] Passed 4 tests

This is a short check of server-side resources used by wCookie
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.22 ▼3.05
Dashboard /wp-admin3.31 ▲0.0046.63 ▼6.87
Posts /wp-admin/edit.php3.36 ▲0.0050.48 ▼1.75
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.40 ▼17.40
Media Library /wp-admin/upload.php3.23 ▲0.0036.44 ▲1.82

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by wCookie
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.28 ▲0.081.64 ▲0.0839.48 ▼1.77
Dashboard /wp-admin2,195 ▲185.68 ▲0.1889.97 ▼2.4741.15 ▼5.65
Posts /wp-admin/edit.php2,097 ▼32.02 ▲0.0037.68 ▲0.1836.59 ▼2.95
Add New Post /wp-admin/post-new.php1,527 ▲123.37 ▲0.13670.97 ▲47.1861.35 ▲5.16
Media Library /wp-admin/upload.php1,400 ▲64.20 ▼0.0795.63 ▼13.2340.68 ▼5.42

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: No descriptions were found for these screenshots #1, #2 in wcookie/assets to your readme.txt
You can look at the official readme.txt

wcookie/wcookie.php 92% from 13 tests

"wCookie" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 161 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin372 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP15111243
CSS11270116
JavaScript116013

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions8
▷ Named functions8100.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
There were not PNG files found in your plugin