84% cookie-law-script-italiano

Code Review | Cookie Law Script Italiano

WordPress plugin Cookie Law Script Italiano scored 84% from 54 tests.

About plugin

  • Plugin page: cookie-law-script...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.7
  • WordPress version: 6.3.1
  • First release: Feb 5, 2018
  • Latest release: Feb 5, 2018
  • Number of updates: 2
  • Update frequency: every 54.0 days
  • Top authors: albertoolla (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 1,313 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Cookie Law Script Italiano
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0627.01 ▼18.10
Dashboard /wp-admin3.33 ▲0.0347.52 ▼4.72
Posts /wp-admin/edit.php3.38 ▲0.0344.39 ▼1.62
Add New Post /wp-admin/post-new.php5.91 ▲0.0382.49 ▼16.20
Media Library /wp-admin/upload.php3.26 ▲0.0331.86 ▼3.37

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Cookie Law Script Italiano
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,920 ▲18513.83 ▼0.775.44 ▲3.4441.71 ▼2.80
Dashboard /wp-admin2,246 ▲615.11 ▲0.20119.38 ▲18.9445.17 ▲0.19
Posts /wp-admin/edit.php2,131 ▲422.30 ▲0.3139.25 ▲2.3935.96 ▲0.84
Add New Post /wp-admin/post-new.php1,544 ▲1117.69 ▼5.70688.57 ▲22.8437.54 ▼16.90
Media Library /wp-admin/upload.php1,419 ▲314.34 ▲0.1195.82 ▼5.6742.90 ▼0.84

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/cookie-law-script-italiano/cookie-law-script-italiano.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 97% 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
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Pannello persoalizzabile del plugin), #2 (Voce nel menù amministrativo di Wordpress)
Please take inspiration from this readme.txt

cookie-law-script-italiano/cookie-law-script-italiano.php Passed 13 tests

This is the main PHP file of "Cookie Law Script Italiano" 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
76 characters long description:
La soluzione più semplice per adempiere alla normativa italiana sui cookie.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin291 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP127274291

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity1.63
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods27100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG files were detected