90% ilmenite-cookie-consent

Code Review | Ilmenite Cookie Consent

WordPress plugin Ilmenite Cookie Consent scored 90% from 54 tests.

About plugin

  • Plugin page: ilmenite-cookie-c...
  • Plugin version: 3.2.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Jul 23, 2015
  • Latest release: Jan 29, 2022
  • Number of updates: 48
  • Update frequency: every 49.7 days
  • Top authors: Erik Bernskiold (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

2,000+ active / 28,729 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.17MB] [CPU: ▼0.88ms] Passed 4 tests

An overview of server-side resources used by Ilmenite Cookie Consent
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1942.78 ▼7.38
Dashboard /wp-admin3.46 ▲0.1655.39 ▲6.10
Posts /wp-admin/edit.php3.58 ▲0.2250.65 ▲4.76
Add New Post /wp-admin/post-new.php6.04 ▲0.1697.41 ▼0.38
Media Library /wp-admin/upload.php3.38 ▲0.1634.01 ▼0.50
Tracker Control /wp-admin/options-general.php?page=ilcc-trackers3.3532.57

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Ilmenite Cookie Consent
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,982 ▲23613.69 ▼0.709.35 ▲7.7053.08 ▲10.47
Dashboard /wp-admin2,213 ▲284.88 ▼0.94109.20 ▲1.1640.55 ▼5.65
Posts /wp-admin/edit.php2,096 ▲72.01 ▼0.0340.88 ▲4.4132.53 ▼4.78
Add New Post /wp-admin/post-new.php1,517 ▼1617.66 ▼5.62597.70 ▼67.7954.62 ▲0.65
Media Library /wp-admin/upload.php1,392 ▲44.23 ▲0.0296.60 ▼2.8141.11 ▼5.23
Tracker Control /wp-admin/options-general.php?page=ilcc-trackers8552.0524.1135.13

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 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 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

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
10 plugin tags: cookie notice, gdpr, eu cookie law, privacy, tracker prevention...

ilmenite-cookie-consent/ilmenite-cookie-consent.php Passed 13 tests

Analyzing the main PHP file in "Ilmenite Cookie Consent" version 3.2.0
101 characters long description:
A simple, developer-friendly WordPress plugin that lets visitors know that the site is using cookies.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,811 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PO File102783641,023
PHP4193368671
Markdown1620106
XML1008
JavaScript2002
CSS1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity12.75
▷ Minimum class complexity6.00
▷ Maximum class complexity18.00
Average method complexity2.09
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods45
▷ Static methods3782.22%
▷ Public methods4497.78%
▷ Protected methods12.22%
▷ Private methods00.00%
Functions8
▷ Named functions112.50%
▷ Anonymous functions787.50%
Constants1
▷ Global constants1100.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
No PNG files were detected